zero-config RAG for Python
python3
>>> from piragi import Ragi
>>> kb = Ragi("./docs")
indexing 847 chunks...
>>> kb.retrieve("deploy to production")
[Citation(source="deploy.md", score=0.94), ...]
zero config
Works with free local models out of the box
all formats
PDF, Word, Excel, Markdown, code, URLs, images, audio
remote storage
Read from S3, GCS, Azure, HDFS with glob patterns
web crawling
Recursively crawl websites with /** syntax
auto-updates
Background refresh, queries never blocked
citations
Every answer includes scored sources
vector stores
Lance, Postgres, Qdrant, Pinecone, Supabase
retrieval
HyDE, hybrid search, cross-encoder reranking
chunking
Semantic, hierarchical, and contextual strategies
knowledge graph
Entity/relationship extraction for deeper answers
onnx
2-5x faster embeddings on CPU via ONNX Runtime
async
Non-blocking API for web frameworks
v0.8.1
connecting…
pip install piragi
Basic RAG python
demo mode — pip install piragi && piragi playground for live execution
Output