customercore / src /rag /__init__.py
Saibalaji Namburi
feat: initial commit β€” CustomerCore Phases 1-9 complete
3cfefe7
Raw
History Blame Contribute Delete
628 Bytes
"""
src/rag/__init__.py
CustomerCore RAG (Retrieval-Augmented Generation) package.
Modules:
hybrid_retriever β€” ChromaDB dense search + BM25 with tenant isolation
semantic_cache β€” 3-layer cache (L0 embedding, L1 Redis exact, L2 vector)
reranker β€” Cross-encoder reranking of merged retrieval results
tool_rag β€” Dynamic semantic tool schema retrieval (Phase 8)
graph_rag β€” Unified B2B graph-RAG: semantic + relational traversal (Phase 8)
router β€” SLA-aware multi-model LLM routing (Phase 7)
llm_client β€” LiteLLM wrapper routing to Ollama/OpenRouter
"""