Overview of ML-Based Model Selection E2E Profile
mainThe ML-Based Model Selection E2E Profile demonstrates how to use pretrained machine learning models for intelligent model selection at runtime. This implementation follows concepts from the FusionFactory and Avengers-Pro research papers to optimize performance and efficiency by selecting the best model for a specific query.
This profile is production-ready and includes a full stack:
- Envoy Gateway: Gateway API implementation.
- Envoy AI Gateway: AI-specific Custom Resource Definitions (CRDs) and routing.
- gRPC ExtProc: The semantic router acting as an external processor.
- Custom AIGatewayRoute: Routes requests based on the
x-selected-modelheader to a backend (e.g., a mock-llm).