RAG in 3 Lines of Python
Details
- External ID
- 46142050
- Source
- HN
- Company
- —
- Product
- RAG in 3 Lines of Python
- Website domain
- pypi.org
- Launched
- Dec. 4, 2025
- Cohort
- —
- Upvotes
- 41
- Upvotes percentile
- 0.7891221374045801
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:25 p.m.
- Updated at
- Sept. 7, 2026, 9:25 p.m.
Description
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?
Enrichment
- Theme
- Claude integrations and coding agents
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- AI feature
- Project type
- Hobby / open-source project
- Normalized one-liner
- rag implementation in minimal python
- Manually corrected
- False
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 — 40 launches clear the similarity bar, closest 8 shown.
Attention rank: #6 of 41 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 26 days after the earliest competitor.
- I built a RAG engine to search Singaporean laws · hn · 2026-02-07 · 5 upvotes · similarity 0.40
- RAG-based Tutoring Chatbot · ph · 2026-09-17 · 2 upvotes · similarity 0.39
- The biggest achievement of my life so far · hn · 2026-02-08 · 9 upvotes · similarity 0.39
- OpenFable · hn · 2026-04-08 · 5 upvotes · similarity 0.38
- GibRAM an in-memory ephemeral GraphRAG runtime for retrieval · hn · 2026-01-18 · 60 upvotes · similarity 0.37
- I built Wool, a lightweight distributed Python runtime · hn · 2026-03-14 · 15 upvotes · similarity 0.36
- Hm · hn · 2026-05-27 · 12 upvotes · similarity 0.35
- I got tired of print(x.shape) so I built runtime type hints for Python · hn · 2026-03-18 · 7 upvotes · similarity 0.35
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.