🦉
AI Engineering Handbook
About
  • Hey
  • Tech Stack
  • ML to AI Shift
  • Agentic Systems
  • Anti Patterns
  • AI Engineer
  • Roles Reimagined
  • Dream Team
  • System
    • Architecture
    • Start Simple
    • Enhance Context
    • Implement Guardrails
    • Add Routing and Gateway
    • Optimise with Caching
    • Enable Agent Patterns
Powered by GitBook
On this page
  1. System

Add Routing and Gateway

Manage complexity and costs with smarter routing:

  • Router: Direct queries to the optimal model based on intent or type

  • Gateway: Provide unified, secure access to multiple models

  • Centralised security: Improve maintainability and logging

This layer optimises resource usage by directing different types of queries to the most appropriate models, while providing a single access point for security and monitoring.

PreviousImplement GuardrailsNextOptimise with Caching

Last updated 7 days ago