FASTRAG
Efficient RAG framework with optimized retrieval and generation
ABOUT
Building production-ready RAG applications requires integrating multiple components — document retrievers, embedding models, LLMs, and generation pipelines — with careful optimization for latency, relevance, and scalability. Existing RAG frameworks are either too complex to configure or lack optimization for specific hardware platforms. FastRAG solves this by providing a modular RAG framework with built-in support for dense retrievers (DPR, ColBERT, BGE), sparse retrievers (SPLADE, BM25), and hybrid retrieval strategies, multi-step reasoning patterns (query rewriting, HyDE, self-RAG), optimized inference pipelines for Intel CPUs and GPUs with ONNX Runtime and OpenVINO integration, and a clean Python API for composing retrieval and generation workflows — enabling teams to deploy efficient RAG pipelines without deep expertise in each component.
pip install fastrag