--- title: Rag Transparency Lab emoji: ๐Ÿ’ป colorFrom: blue colorTo: purple sdk: gradio sdk_version: 6.11.0 app_file: app.py pinned: false license: mit short_description: 'See inside every step of a RAG pipeline ' --- # ๐Ÿ”ฌ RAG Transparency Lab **See inside every step of a RAG pipeline โ€” applied to scientific papers.** Upload any scientific PDF, ask a question, and watch the entire pipeline unfold โ€” chunking strategies, hybrid retrieval scores, reranking decisions, filtering logic, and the exact prompt sent to the LLM. Built by **Zalina Dezhina, PhD** โ€” AI Evaluation Scientist *RAG Education Series ยท Project 1 of 3* --- ## What this tool shows | Stage | What you see | |---|---| | ๐Ÿ“„ Chunking | All chunks with word count, sentence count, strategy comparison | | ๐Ÿ” Retrieval | Dense score, BM25 score, hybrid score per chunk | | โš–๏ธ Reranking | Before/after rank, filter decisions with reasons | | ๐Ÿ’ฌ Generation | Answer with citations + full prompt transparency | ## Stack `sentence-transformers` ยท `rank-bm25` ยท `pypdf` ยท `Anthropic API` ยท `Gradio` ## RAG Education Series 1. ๐Ÿ”ฌ **RAG Transparency Lab** โ† this Space 2. โšก Classic vs Advanced RAG โ€” side-by-side 3. ๐Ÿงช Scientific Claim Verifier --- [LinkedIn](https://linkedin.com/in/zalina-dezhina) ยท [GitHub](https://github.com/Mioulin)