RAG in 3 Lines of Python
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
Got tired of wiring up vector stores, embedding models, and chunking logic every time I needed RAG. So I built piragi. from piragi import Ragi kb = Ragi(\["./docs", "./code/\*\*/\*.py", "https://api.example.com/docs"\]) answer = kb.ask("How do I deploy this?") That's the entire setup. No API keys required - runs on Ollama + sentence-transformers locally.What it does: - All formats - PDF, Word, Excel, Markdown, code, URLs, images, audio - Auto-updates - watches sources, refreshes in background, zero query latency - Citations - every answer includes sources - Advanced retrieval - HyDE, hybrid search (BM25 + vector), cross-encoder reranking - Smart chunking - semantic, contextual, hierarchical strategies - OpenAI compatible - swap in GPT/Claude whenever you want Quick examples: # Filter by metadata answer = kb.filter(file_type="pdf").ask("What's in the contracts?") #Enable advanced retrieval kb = Ragi("./docs", config={ "retrieval": { "use_hyde": True, "use_hybrid_search": True, "use_cross_encoder": True } }) # Use OpenAI instead kb = Ragi("./docs", config={"llm": {"model": "gpt-4o-mini", "api_key": "sk-..."}}) Install: pip install piragi PyPI: https://pypi.org/project/piragi/ Would love feedback. What's missing? What would make this actually useful for your projects?
HN · launched Dec 4, 2025 · 41 upvotes (top 21%) · 0 views
Niche: rag developer frameworks and tools · 59 launches, 3 in the last 7 days · Explore this niche →
Category and tags
- Horizontal
- Search & retrieval
- Developer
- AI-native
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 59 launches in rag developer frameworks and tools →
Could you build this?
Yes Piragi is a lightweight Python developer convenience wrapper combining existing libraries like LanceDB, LiteLLM/Ollama, and LangChain/LlamaIndex chunking utilities.
Discussion
6 comments analyzed.
Competitors mentioned: AWS Bedrock
Concerns raised: RAG acronym not defined on landing page, Unclear if graph/RDF support is planned
Feature requests: AWS Bedrock integration, Graph (RDF) support
Competitors
Other products that read as similar to this one : 69 launches clear the similarity bar, closest 8 shown.
Attention rank: #11 of 70 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 31 days after the earliest competitor.
- ReportIQ · ph · 2026-10-30 · 2 upvotes · similarity 0.47
- Full-Stack Python for AI Developers · ph · 2026-10-13 · 2 upvotes · similarity 0.43
- RAGReader · ph · 2026-11-12 · 1 upvotes · similarity 0.42
- I built a RAG engine to search Singaporean laws · hn · 2026-02-07 · 5 upvotes · similarity 0.41
- ragbox · ph · 2026-10-30 · 1 upvotes · similarity 0.41
- rag_control · ph · 2026-10-13 · 11 upvotes · similarity 0.41
- Agentic Multi-PDF RAG Assistant · ph · 2026-10-09 · 1 upvotes · similarity 0.41
- RAG-based Tutoring Chatbot · ph · 2026-09-17 · 2 upvotes · similarity 0.41
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.