Python
12 stars
Open-source RAG platform for pluggable document ingestion, multimodal indexing, hybrid search, tenant-isolated APIs, RBAC, citations, and MCP-based AI agent integration.
### Overview: Today-Hbw/rag-platform is an open-source RAG platform designed for pluggable document ingestion, multimodal indexing, hybrid search, tenant-isolated APIs, RBAC, citations, and MCP-based AI agent integration. It separates ingestion, indexing, retrieval, lifecycle management, and agent integration into independently deployable services, supporting dense and lexical retrieval, tenant and knowledge-base isolation, role-based filtering, asynchronous document ingestion, and an MCP client for model-facing tool use.
### Key features:
- **Pluggable Ingestion**: Supports Yuque, local Markdown connectors, and custom connectors.
- **Hybrid Retrieval**: Combines vector similarity, BM25, and title relevance with reciprocal rank fusion.
- **Agent-Ready API**: Provides versioned, tenant-isolated document ingestion, search, update, deletion, and ingestion-job endpoints.
- **Stable Citations**: Returns document IDs, chunk IDs, source URLs, scores, metadata, and real character locations when available.
- **Recoverable Writes**: Persists ingestion jobs and request snapshots before processing, with idempotency checks and stale-job recovery.
- **Access Control**: Supports knowledge-base and document-level RBAC, public collections, user-token introspection, and service-token protection.
- **MCP Integration**: Exposes remote retrieval and health checks as MCP tools without coupling the client to the platform internals.
- **Evaluation Tooling**: Includes offline hit rate, recall, precision, MRR, and NDCG evaluation with baseline comparison.
- **Deployment Flexibility**: Each runtime component has