aurelio-labs/semantic-router

Superfast AI decision making and intelligent processing of multi-modal data.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 25 minutes ago
Added to GitGenius on September 17th, 2026
Created on October 30th, 2023
Open Issues & Pull Requests: 92 (+0)
GitHub issues: Enabled
Number of forks: 373
Total Stargazers: 3,912 (+0)
Total Subscribers: 31 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 12.3 hours
Mean response time: 34.2 days
90th percentile: 58.0 days
Tracked items: 109

Most active contributors

Sign in to see contributor activity.

How this project is maintained

67% of open issues come from outside the core team, a mix of external reports and the maintainers' own roadmap. Three people close 87% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 46
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 690 days
Stale 30+ days: 40
Stale 90+ days: 38

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 2
Events in 7 days: 4

Top labels

  • enhancement (13)
  • ci (3)
  • good first issue (3)
  • documentation (2)
  • question (2)
  • integration (1)

Most active issues this week

Detailed Description

Semantic Router is a decision-making layer for large language models and AI agents that uses semantic vector space to route requests without waiting for slow LLM generations.

The tool solves the problem of inefficient tool-use decisions in LLM pipelines by replacing generation-based routing with semantic similarity matching. Rather than having an LLM generate text to decide which action to take, Semantic Router embeds user queries and compares them against pre-defined route embeddings in vector space, making routing decisions nearly instantaneously. Users define Route objects representing decision paths, initialize an encoder model, and create a RouteLayer that performs the semantic matching. When a query arrives, the layer returns the matching route or None if no suitable match exists.

Adoption suits teams building LLM applications and agents where decision latency matters and routing logic can be expressed through semantic examples. The tool works well for systems that need to classify user intent or direct requests to specific handlers before invoking expensive LLM calls. It supports multiple embedding providers including Cohere, OpenAI, Hugging Face, and FastEmbed, with options for fully local execution using HuggingFaceEncoder and LlamaCppLLM. Multi-modal routing is supported for applications processing images alongside text. A HybridRouteLayer variant is available for more complex routing scenarios.

The project maintains active development with regular commits and ongoing issue resolution. The codebase shows consistent expansion of encoder integrations and documentation coverage. Pull requests are regularly processed, indicating responsive maintenance of contributed changes.