Skip to content

Latest commit

Β 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 

Repository files navigation

Manthan βš—οΈ

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


The problem

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.

One engine, three features

                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚           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.

Why the statistics matter

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.

Tech stack

Python Β· FastAPI Β· React Β· asyncio Β· PostgreSQL Β· Qdrant Β· Design of Experiments Β· LLM-as-judge


Author: Ayush Chhoker β€” Portfolio Β· LinkedIn Β· GitHub

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors