Ragi

•

Cultivate, measure, and ship RAG stacks with an eval-first, agent-agnostic toolkit that exports portable retrieval contracts.

Ragi is an eval-first, agent-agnostic RAG toolkit designed to streamline the development and deployment of robust retrieval systems. It empowers users to define a retrieval stack, rigorously measure its performance against real information retrieval golden sets offline, and iterate with statistical confidence. Unlike traditional build-first RAG libraries, ragi prioritizes evaluation, allowing you to validate retrieval quality *before* incurring costs for embeddings. The tuned retrieval stack can then be shipped as a portable contract, consumable by any agent framework like LangChain, LlamaIndex, OpenAI, Claude SDKs, or MCP clients, ensuring flexibility and broad integration.

주요 기능

01Agent-Agnostic Portability: Exports retrieval stacks as portable contracts (Python library, MCP server, or tool-schema) for seamless consumption by any agent framework.
02Dual-Mode Evaluation: Offers Mode A for rigorous retrieval quality assessment and Mode B for end-to-end answer quality (faithfulness, correctness) using NLI claim-decomposition.
03Scalable VectorStore Backends: Integrates with various vector store backends like FAISS, Chroma, PgVector, and memory, alongside a SemanticChunker for efficient data management.
04Eval-first RAG Development: Prioritizes measurement and iteration with reproducible baselines and statistical confidence, enabling precise tuning of retrieval stacks.
05Comprehensive Retrieval Strategies: Supports a wide array of retrieval techniques including lexical (BM25), semantic, hybrid, cross-encoder reranking, and query rewriting.
060 GitHub stars

사용 사례

01Developing and optimizing Retrieval Augmented Generation (RAG) systems with a focus on measurable performance and iterative improvement.
02Benchmarking and A/B testing different retrieval pipeline configurations using real IR golden sets and statistical confidence metrics.
03Integrating a high-quality, pre-tuned retrieval component into diverse AI agent architectures via standardized interfaces like MCP servers or tool-schemas.