# Building a better RAG pipeline: Introducing the open-source RAG-Framework-2026 💡

**URL:** <https://discuss.ai.google.dev/t/building-a-better-rag-pipeline-introducing-the-open-source-rag-framework-2026/169161>\
**Category:** Gemini API\
**Tags:** datasets, models, gemini\
**Created:** [June 3, 2026, 4:06am UTC](https://discuss.ai.google.dev/t/building-a-better-rag-pipeline-introducing-the-open-source-rag-framework-2026/169161 "2026-06-03T04:06:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tai\_Van](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/tai_van/32/114086_2.png) [@Tai\_Van](https://discuss.ai.google.dev/u/Tai_Van)\
**Post date:** [June 3, 2026, 4:06am UTC](https://discuss.ai.google.dev/t/building-a-better-rag-pipeline-introducing-the-open-source-rag-framework-2026/169161/1 "2026-06-03T04:06:22Z")

</div>

Hi everyone,

I’m sure many of us in the community are using LLMs (especially Gemini) to tackle RAG (Retrieval-Augmented Generation) challenges. However, transitioning from a Proof of Concept (PoC) to a production-ready application often brings up hurdles related to code structure, context management, and optimizing the data ingestion pipeline.

To address these pain points and save fellow developers some time, I want to share a project I’ve been working on: **RAG Framework 2026**.

🎯 **Key Highlights of the Framework:**

- **Modular Design:** Easily swap out or upgrade components (Embedding models, Vector DBs, LLMs) without breaking the rest of your system.

- **Optimized for Google AI:** Designed to be plug-and-play with Google APIs, helping you easily maximize Gemini’s potential.

- **Clear Processing Pipelines:** Smoothly handles the entire flow from document ingestion to user querying.

🔥 **My Goal:** I hope this repo serves as a valuable resource—making it easier for newcomers to approach RAG, while saving experienced developers hours of boilerplate setup.

🔗 **You can check out the code and clone it here:** [https://github.com/Taitv01/rag-framework-2026.git](https://www.google.com/search?q=https://github.com/Taitv01/rag-framework-2026.git&authuser=1)

Feel free to fork it and play around! If you find it useful, dropping a ⭐ on the repo would be a huge motivation boost. I also highly welcome Pull Requests or Issues from the community so we can make this framework even better together.

Thanks for reading!

---

<div class="post-metadata">

**Author:** ![Tai\_Van](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/tai_van/32/114086_2.png) [@Tai\_Van](https://discuss.ai.google.dev/u/Tai_Van)\
**Post date:** [June 6, 2026, 6:22am UTC](https://discuss.ai.google.dev/t/building-a-better-rag-pipeline-introducing-the-open-source-rag-framework-2026/169161/2 "2026-06-06T06:22:55Z")

</div>

Hi team, the system has been fully updated with all items from Phase A to F. Here are the latest changes and new features:

### 🌟 Highlights

- 🧠 **`adaptive_rag.py` (776 lines):** Automatically selects the optimal pipeline based on the complexity of the question.

- ⭐ **Default Embedding Updated:** Switched to `BAAI/bge-m3` – the best baseline for Vietnamese RAG in 2026.

- 🌳 **Advanced Chunking Techniques:** Integrated state-of-the-art techniques including **RAPTOR** and **Late Chunking**.

### ✅ Completed Items Summary

- **Bug Fixes & Code Optimization:** Resolved 3 critical bugs (missing imports, typos) and 6 code quality issues (CORS, duplication, side effects…).

- **Model Catalog:** Updated the catalog (set BGE-M3 as default, added 3 new embeddings and 2 rerankers).

- **Documentation:** Fully updated `PHASES.md` and `README.md`.

💡 **Important Note:** There are 5 new dependencies added in version 1.1.0. After pulling the latest code, please make sure to run the following command to install them:

> `pip install -r requirements.txt`

---

<div class="post-metadata">

**Author:** ![system](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/system/32/1_2.png) [@system](https://discuss.ai.google.dev/u/system)\
**Post date:** [November 5, 2026, 6:41pm UTC](https://discuss.ai.google.dev/t/building-a-better-rag-pipeline-introducing-the-open-source-rag-framework-2026/169161/3 "2026-11-05T18:41:23Z")

</div>

Closed on November 5, 2026, 6:41pm UTC

This thread was automatically closed 60 days after the last reply. If you are running into an issue, please create a new post.
