RAG intelligence platform β generate challenge datasets, stress-test live RAG endpoints, and design optimal RAG pipelines with statistically rigorous experiments.
This repo is the public overview of a private codebase. For source access or collaboration: ayushchhoker15@gmail.com
Every team shipping a RAG product faces the same question: "did this change actually make our RAG better?" Most answer it by eyeballing a few queries. Manthan answers it with controlled test data and designed experiments.
βββββββββββββββββββββββββββββββββββββ
β RAG SPECTRUM β
β (core synthetic-data engine) β
β topic + challenge type β β
β documents + ground-truth Q/A β
β 25-type taxonomy (D01βD25) β
βββββββββββββββββ¬ββββββββββββββββββββββ
β "give me a dataset"
βββββββββββββββββββββββΌββββββββββββββββββββββ
βΌ βΌ βΌ
ββββββββββββββββββββ ββββββββββββββββββββ ββββββββββββββββββββ
β 1. GENERATE β β 2. TEST A RAG β β 3. BUILD A RAG β
β synthetic datasetsβ β stress-test your β β find the best β
β in JSON, CSV, β β live endpoint β β β pipeline config β
β JSONL, Parquet, β β ranked weakness β β via designed β
β HuggingFaceβ¦ β β profile β β experiments (DoE) β
ββββββββββββββββββββ ββββββββββββββββββββ ββββββββββββββββββββ
1 β Generate. Pick challenge types from a 25-type taxonomy (atomic facts β cross-document reasoning β adversarial hallucination bait), get documents plus ground-truth Q/A pairs, download in multiple formats. Powered by the RAG Spectrum engine.
2 β Test a RAG. Point Manthan at your RAG endpoint. It ingests generated documents into your system first (testing on unseen documents produces meaningless results), fires questions across all 25 challenge types, and uses LLM-as-judge scoring against ground truth. Output: a ranked weakness profile with severity bands and remediation hints, streamed live to the UI.
3 β Build a RAG. Bring a document or a goal. Manthan runs candidate pipeline configurations β chunking strategy, embedding model, retrieval method, top_k, hybrid alpha β and recommends the best one. With a sweep configured, it uses a statistically designed experiment (fractional factorial, blocked ANOVA, Tukey HSD, bootstrap confidence intervals) and reports which factors actually move the score, not just which config won.
Comparing two RAG configs on 20 questions and picking the higher number is noise, not evidence. Manthan treats RAG tuning as an experiment-design problem: factor screening separates what matters (usually chunking and retrieval method) from what doesn't, and effect sizes with confidence intervals tell you whether a difference is real before you ship it.
Python Β· FastAPI Β· React Β· asyncio Β· PostgreSQL Β· Qdrant Β· Design of Experiments Β· LLM-as-judge