$git clone https://github.com/kolhesamiksha/Hybrid-Search-RAGBuild production-ready RAG solutions effortlessly with just a few lines of code! Hybrid RAG is designed to streamline your Retrieval-Augmented Generation (RAG) pipeline, making it easy to track, evaluate, and optimize your system for real-world applications, Explicit Asyncio supp
| 1 | # 🚀 Hybrid RAG (v0.1.0): Advanced Retrieval & Generation Python Package |
| 2 | |
| 3 | Build production-ready RAG solutions effortlessly with just a few lines of code! Hybrid RAG is designed to streamline your Retrieval-Augmented Generation (RAG) pipeline, making it easy to track, evaluate, and optimize your system for real-world applications, Explicit Asyncio support!!!! |
| 4 | |
| 5 |  |
| 6 | |
| 7 | |
| 8 | <span style="background-color: yellow;"> If you wanted in-depth understanding of Advance RAG, Code Packaging and best practices to built efficient and scalable RAG, I'll be writing the blogs on each and every concept used in this project and how one can also start building such packaged systems.. Please Subscribe or follow my blogs community, to read them.. link provided at the End!!</span>. |
| 9 | |
| 10 | |
| 11 | ### 🔥 Why Hybrid RAG? |
| 12 | --- |
| 13 | |
| 14 | - ✅ **Ingestion Pipeline** - End to End support to insert your vector data inside Milvus VectorDB. find the pipeline inside notebooks/ingestion_pipeline/Python_Feature_Pipeline.ipynb. In v0.1.1 support for kubeflow, pyspark pipelines to speed up Ingestion pipelines. |
| 15 | - ✅ **Experiment Tracking & Tracing with MLflow** – Log experiments, parameters, and traces for every LLM and retrieval step, ensuring efficient latency & cost tracking. |
| 16 | - ✅ **RAG Evaluation with Ragas** – Measure performance using faithfulness, answer relevance, and context precision, with future support for MLflow evaluation. |
| 17 | - ✅ **Cost Monitoring** – Keep track of API usage by setting LLM pricing inside API parameters to optimize expenses. |
| 18 | - ✅ **Hybrid Search Capability** – Semantic (dense) & keyword (sparse) retrieval, query expansion, Milvus-optimized retrieval, self-query retrieval, reranking, and auto-metadata filtering. |
| 19 | - ✅ **Nemo Guardrails (v0.1.1)** – Uses vector similarity for question classification, reducing middleware time, preventing prompt injection attacks, and enforcing policy restrictions. available in v0.1.1 |
| 20 | - ✅ **Smart Summarization & Q&A Handling** – Supports direct QA over documents, metadata filtering, and map-reduce summarization for extracting insights across document chunks. |
| 21 | - ✅ **Follow-up Question Generation** – Auto-generate follow-up questions to improve engagement with users. |
| 22 | - ✅ **Custom PyFunc Hybrid-RAG MLflow Model** – Register, deploy, and serve the best model directly as an MLflow API for production-grade scenarios. |
| 23 | - ✅ **Optimized Modules with Async Code** – Fully asynchronous support for high-performance execution on Python 3.11+. |
| 24 | - ✅ **Speech-to-Text Model** – Supports local multilingual models, Hugging Face Inference API, and custom endpoints for speech-to-text conversion. |
| 25 | - ✅ **Enhanced Logger Support** – Detailed success/error logs stored in log/ with timestamped logs for full traceability. |
| 26 | - ✅ **Intelligent Modular Documentation** – Well-structured developer-friendly documentation with modular examples. |
| 27 | - ✅ **CI/CD Support** – Seamless model integration & deployment with GitHub Actions for Build-Test-Deploy pipelines. |
| 28 | - ✅ **Utility Functions for API/Streamlit apps** – Enables response storage on GitHub or AWS S3 for fine-tuning datasets and evaluation tracking. |
| 29 | - ✅ **Poetry, Makefile & Pre-commit Hooks** – Ensures best practices with pre-commit checks, packaging support, and agile development workflows. |
| 30 | |
| 31 | Please Find detailed information about the strategy and usage of each module inside its respective README.md file. Each module has its own documentation to guide you through its functionality and implementation. |
| 32 | |
| 33 | --- |
| 34 | |
| 35 | ### 🚀 Get Started in Minutes |
| 36 | |
| 37 | ``` |
| 38 | git clone https://github.com/kolhesamiksha/Hybrid-Search-RAG |
| 39 | cd Hybrid-Search-RAG |
| 40 | pip install poetry |
| 41 | poetry build |
| 42 | pip install dist/hybrid_rag-0.1.0-py3-none-any.whl |
| 43 | ``` |
| 44 | **Note: I'll provide the blog links for each of the features discussed in this repo in future, Stay tuned and fork the repository for future updates...** |
| 45 | |
| 46 | ### 🔧 How to use Hybrid-RAG Package |
| 47 | |
| 48 | Configure retrieval models, em |