feature: Introducing AO-Hybrid Orchestrator#202
Open
anoopchandra538 wants to merge 15 commits intomainfrom
Open
feature: Introducing AO-Hybrid Orchestrator#202anoopchandra538 wants to merge 15 commits intomainfrom
anoopchandra538 wants to merge 15 commits intomainfrom
Conversation
…arization for multi agents 2. tfidf content extraction for the agent responses in websockets
- renamed ao.sh to ao-hybrid.sh and updated dockerfile - add latest vars to env.example - comments cleanup - removed ao-hybrid-celery.Dockerfile and ChromaDB references
…orrect ao-hybrid.sh file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces the Assistant Orchestrator Hybrid, a new orchestrator designed to address scalability limitations of the existing
assistant-orchestratorwhen managing large numbers of agents. The hybrid approach combines semantic search (pgvector embeddings) with BM25 lexical matching to provide accurate and efficient agent selection at scale.Problem Statement
The original assistant-orchestrator relies on LLM-based agent selection, which becomes increasingly expensive and slow as the number of agents grows. This hybrid approach pre-filters candidates using fast retrieval methods before LLM reranking, significantly improving both performance and cost efficiency.
Key Features
Hybrid Search for Agent Selection
rank_bm25library for efficient initial retrievalConcurrent Execution & Response Synthesis
asynciowithThreadPoolExecutorAgent Registry with PostgreSQL
AgentRegistrytable with metadata, tags, keywords, and vector embeddingsAgentRegistryManagerBackground Content Extraction (Celery)
skip_embeddingsmodeChanges
New Components
integration/openai_client.py- Azure OpenAI client for embeddings and chatmodel/search.py- Search result dataclassescontent_update/- Celery tasks and TF-IDF learning serviceprompts/- Agent selection, query analysis, and reranking promptsConfiguration
Deployment
Type of Change
Architecture Diagram
Additional Comments