BRAG LangChain provides five notebooks that walk from basic RAG setups to advanced multi-query, routing, indexing, and reranking techniques. This compact, hands-on guide helps developers learn and build real RAG apps without hunting through scattered examples. For a broader view of how retrieval systems fit into agentic workflows, see how to use Chroma Context-1 for local agentic search.

What It Is
BRAG LangChain is a curated collection of notebooks that demonstrate Retrieval-Augmented Generation workflows using LangChain building blocks. The repo escalates from a simple RAG demo to advanced topics like multi-query orchestration, custom indexing strategies, routing, and reranking, making it a useful study corpus for both beginners and practitioners.
Available Notebooks
- Intro to RAG — Basic retrieval pipeline and single-document QA
- Multi-query — Send parallel queries and aggregate results
- Routing — Route queries to specialized indices or models
- Indexing — Custom index strategies for long documents
- Reranking — Re-rank candidate passages for higher precision
Run the notebooks on a small dataset first, then scale to representative documents. Compare simple embedding-based retrieval to the advanced routing and reranking notebooks to see the trade-offs. These notebooks are ideal for engineers who want to prototype RAG systems quickly and compare retrieval strategies side by side.
Why This Matters
This repository consolidates practical RAG patterns into one place and teaches comparison between retrieval strategies, not just embeddings. It helps bridge the gap between toy demos and production RAG systems. For another approach to agent-powered automation, see how to use Activepieces for no-code AI agent automation.
Try It Locally
- Clone the repo and inspect the notebooks:
git clone https://github.com/bragai/bRAG-langchain.git - Run them in Jupyter, Colab, or nteract, and adapt indexing settings to your data
- Use the reranking and routing notebooks to evaluate against a baseline vector search
Project link:
https://github.com/bragai/bRAG-langchain
- How to Build an MVP in 3 Hours with Vibe Coding Prompts
Badge Vibe Coding Prompt Template provides structured, copy-paste prompt templates that guide an idea through market research, a PRD, implementation..
- How to Build Safer Agents with Parlant Conversation Modeling
Badge Parlant promises to stop the “roll of the dice” approach by enforcing contextual guidelines that activate based on conversation..
- How to Build Interactive UIs for Agents with MCP Apps
Badge MCP Apps is an extension proposal, SEP-1865, that aims to standardize interactive user interfaces inside MCP hosts. The effort..
- How to Build AI Apps with Genkit and Firebase Studio
Badge Genkit is the open-source framework that powers Firebase Studio, and it provides SDKs for JS/TS, Go, and an alpha..
- How to Build a Local Multi-Agent Workforce with Eigent
Badge I ran into this project while evaluating desktop-first agent platforms that coordinate many workers in parallel. Eigent is a..
- How to Build and Scale AI Agents with OpenHands Development Platform
OpenHands is a community-driven development platform for building and scaling AI agents. It provides a unified ecosystem that includes a..
