HomeExploreRAG & Retrieval
📚

Ground LLMs with your own knowledge

Retrieval-Augmented Generation (RAG) pipelines connect LLMs to vector databases, knowledge graphs, and document stores — enabling accurate, source-cited answers over private data.

1 RAG frameworks trackedLive dataBrowse all →

Top RAG & Retrieval

Ranked by GitHub stars

See all →
langchain
ActivePython
95

LangChain is a Python library that provides a modular framework for building, chaining, and orchestrating AI agents and language model pipelines. It is used by developers to create custom agent workflows and integrate various LLMs and tools.

frameworkOpen Source
145.3k

Production-ready picks

OSI-approved license · actively maintained

L
langchain
LangChain is a Python library that provides a modular framework for building, chaining, and orchestrating AI agents and language model pipelines. It is used by developers to create custom agent workflows and integrate various LLMs and tools.
OSI ✓MIT

Frequently asked questions about RAG & Retrieval

What is RAG (Retrieval-Augmented Generation)?+
RAG is a technique where an LLM retrieves relevant documents from a knowledge base before generating a response. This grounds the model in real, up-to-date information and reduces hallucinations.
LlamaIndex vs LangChain for RAG — which is better?+
LlamaIndex is purpose-built for RAG and offers more retrieval primitives (hybrid search, query routing, reranking). LangChain is better if you need RAG as part of a larger agent pipeline.
What vector databases work best with RAG agents?+
Chroma and FAISS are popular for local development. Pinecone, Weaviate, Qdrant, and pgvector (PostgreSQL extension) are production choices. Most RAG frameworks support multiple backends.
How do I improve RAG accuracy?+
Key techniques: chunking strategy (semantic > fixed-size), embedding model choice, hybrid search (dense + sparse), reranking with a cross-encoder, and query expansion. Evals with RAGAS help measure improvements.

Explore related categories

🕸️Multi-Agent Frameworks📊LLM Observability💻Coding Agents