Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Retrieval Augmented Generation Python Packages

Python packages with the GitHub topic retrieval-augmented-generation. Sorted by monthly downloads, with stars and forks.
qdrant
fastembed

Fast, Accurate, Lightweight Python library to make State of the Art Embedding

8.4M 3K 316
redis
redisvl

Redis Vector Library. The AI-native Python client for Redis.

2.3M 435 119
deepset-ai
haystack-ai

Open-source AI orchestration framework for building context-engineered, production-ready LLM applications. Design modular pipelines and agent workflows with explicit control over retrieval, routing, memory, and generation. Built for scalable agents, RAG, multimodal applications, semantic search, and conversational systems.

751K 27K 4K
PrithivirajDamodaran
flashrank

Lite & Super-fast re-ranking for your search & retrieval pipelines. Supports SoTA Listwise and Pairwise reranking based on LLMs and cross-encoders and more. Created by Prithivi Da, open for PRs & Collaborations.

577K 1K 75
FlagOpen
flagembedding

Retrieval and Retrieval-augmented LLMs

483K 12K 955
datastax
graph-retriever

Graph traversal for improved RAG

197K 91 29
datastax
langchain-graph-retriever

Graph traversal for improved RAG

197K 91 29
HKUDS
lightrag-hku

[EMNLP2025] LightRAG: Simple and Fast Retrieval-Augmented Generation

178K 41K 6K
VectifyAI
pageindex

📑 PageIndex: Document Index for Vectorless, Reasoning-based RAG

164K 41K 4K
illuin-tech
colpali-engine

The code used to train and run inference with the ColVision models, e.g. ColPali, ColQwen2, and ColSmol.

82K 3K 271
oeken
needle-python

Needle simplifies building RAG pipelines.

48K 45 3
deepset-ai
farm-haystack

Open-source AI orchestration framework for building context-engineered, production-ready LLM applications. Design modular pipelines and agent workflows with explicit control over retrieval, routing, memory, and generation. Built for scalable agents, RAG, multimodal applications, semantic search, and conversational systems.

44K 27K 4K
The-Pocket
pocketflow

Pocket Flow: 100-line LLM framework. Let Agents build Agents!

29K 11K 1K
awslabs
cdklabs-generative-ai-cdk-constructs

AWS Generative AI CDK Constructs are sample implementations of AWS CDK for common generative AI patterns.

21K 543 77
Blaizzy
mlx-embeddings

MLX-Embeddings is the best package for running Vision and Language Embedding models locally on your Mac using MLX.

20K 456 67
Clarifai
clarifai

Experience the power of Clarifai’s AI platform with the python SDK. 🌟 Star to support our work!

16K 46 9
neuml
txtai

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

15K 14K 1K
LearningCircuit
local-deep-research

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

15K 10K 963
qdrant
fastembed-gpu

Fast, Accurate, Lightweight Python library to make State of the Art Embedding

14K 3K 316
mixedbread-ai
mxbai-rerank

Crispy reranking models by Mixedbread

14K 55 7
aion7891
rag-titan

Many RAG types, one simple Python API. Runs locally with Ollama or with Claude.

12K 5 2
crajah
post-graph-rag

High-Precision GraphRAG. Native to PostgreSQL.

11K 13 3
kameh0use
text-chipper

High-performance, Markdown-aware, strictly budget-enforced text chunking for RAG and LLM pipelines. Built in Rust with Python bindings.

10K 4 0
tobiaswuerth
sift-rag

Local RAG search engine and MCP server for AI agents (Claude Code, Cursor, VS Code): hybrid BM25 + semantic search with reranking over Markdown and Obsidian notes, PDF, Office files and emails, fast at tens of millions of passages. Backlinks, metadata filters, browser UI. Runs on your own GPU or CPU: no cloud, no API keys.

10K 2 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology