| 🛡️ Input Security
&
AST Guard |
security/sanitizer.py |
PII redaction, prompt injection
guardrails, rate limiting |
| ⚡ Semantic Vector
Cache
|
cost_optimization/semantic_cache.py |
<1ms sub-millisecond cache
hits for recurring queries (>=0.92 cosine sim) |
| 🚦 Intent
Classification
Agent |
agents/classification_agent.py |
Traffic controller routing query
to RAG, SQL DB, or REST API Action |
| 🔍 RAG Retrieval
Agent
|
agents/rag_agent.py & rag_pipeline/ |
Multi-Query Expansion (4
variations) + Hybrid Search (FAISS + BM25) + RRF Reranking |
| 🗄️ SQL Analytics
Agent
|
agents/sql_agent.py & tools/sql_engine.py |
AST parse tree validation (100%
read-only) + SQLite query execution |
| ⚡ API Action Agent
|
agents/api_agent.py & tools/function_registry.py |
Structured JSON schema tool
calling for PTO, Invoices, and HR actions |
| 💰 Dynamic Cost &
Model Router |
llm_router/model_router.py |
Payload & complexity
analysis routing between Tier 1 Flash vs Tier 2 Pro |
| 🤖 Reasoning &
Synthesis Agent |
agents/reasoning_agent.py |
LLM generation &
multi-source context synthesis |
| 🛡️ Validation &
Groundedness Agent |
agents/validation_agent.py |
Hallucination prevention &
claim verification with automatic retries |
| 📝 Response Agent
&
Visualizer |
agents/response_agent.py |
Persona view formatting
(Employee Q&A vs Workbench) + SVG bar charts |
| 🔄 n8n Enterprise
Workflows |
workflows/n8n_integrator.py & pdf_generator.py |
ReportLab executive PDF
generation, SMTP email dispatching, webhook triggers |
| 🎯 RAGAS & Phase
2
Benchmarks |
evaluation/ragas_evaluator.py & phase2_evaluator.py |
Faithfulness, Answer Relevance,
Context Precision/Recall, SQL accuracy |