How mahadyrayhan/otr works
This is a multi-agent research assistant: a user submits a question, the orchestrator decomposes it into dependent tasks, routes work to specialist agents, and returns a synthesized answer. A separate RAG service exposes search and topic-discovery capabilities, backed by biomedical literature retrieval and configurable LLM providers. The graph preserves the documented specialist roles and RAG reasoning modes. Some agent dispatch and RAG internals are unsampled, so uncertain connections are omitted or marked dashed.
Main entry points: engine.py Orchestrator engine · main.py RAG API · llm_provider.py LLM providers · knowledge_base.py Literature retrieval
Components 21
Task orchestration
- Orchestrator engine
orchestrator/engine.py - Task decomposers
orchestrator/decomposers.py - DAG construction
orchestrator/dag_builders.py - System configuration
config.py
Specialist agents
- Knowledge agent
rag_agent/agent.py - Scholar agent
scholar_agent/agent.py - Code agent
code_agent/agent.py - Cloud agent
cloud_agent/agent.py - User profiler
profiler_agent/agent.py
RAG service
- RAG API
rag_agent/main.py - Literature retrieval
rag_agent/knowledge_base.py - Reasoning strategies
rag_agent/react_agent.py - Answer enrichment
rag_agent/rag_responder.py - LLM providers
rag_agent/llm_provider.py - RAG settings
rag_agent/rag_config.py
Communication tracking
- Communication tracker
orchestrator/evaluation/communication_log.py - Communication evaluator
orchestrator/evaluation/communication_evaluator.py
Other components
- Researcher
- Interactive CLI
main.py - PubMed and Semantic Scholar
- External LLM services
Connections 21
- Researcher → Interactive CLI: asks
main.py - Interactive CLI → Orchestrator engine: submits query
main.py - Orchestrator engine → Task decomposers: decomposes
orchestrator/engine.py - Orchestrator engine → DAG construction: builds task graph
orchestrator/engine.py - Orchestrator engine → System configuration: reads settings
orchestrator/engine.py - Orchestrator engine → Knowledge agent: dispatches query
orchestrator/engine.py - Orchestrator engine → Scholar agent: dispatches task
orchestrator/engine.py - Orchestrator engine → Code agent: dispatches task
orchestrator/engine.py - Orchestrator engine → Cloud agent: dispatches task
orchestrator/engine.py - Orchestrator engine → User profiler: updates profile
orchestrator/engine.py - Orchestrator engine → Communication tracker: records exchanges
orchestrator/engine.py - Communication evaluator → Communication tracker: scores exchanges
- RAG API → Literature retrieval: queries topics
rag_agent/main.py - RAG API → LLM providers: benchmarks providers
rag_agent/main.py - RAG API → Reasoning strategies: uses for search
rag_agent/main.py - RAG API → Answer enrichment: enriches results
rag_agent/main.py - Reasoning strategies → Literature retrieval: retrieves evidence
rag_agent/react_agent.py - Answer enrichment → LLM providers: requests completions
rag_agent/rag_responder.py - Literature retrieval → PubMed and Semantic Scholar: fetches papers
rag_agent/knowledge_base.py - LLM providers → External LLM services: sends completions
rag_agent/llm_provider.py - RAG settings → LLM providers: configures providers
rag_agent/rag_config.py