Hey everyone,
Building a RAG pipeline is easy. Choosing the right one is the hard part. I kept hitting the same problems on client projects:
- Plain vector search misses the product codes and error IDs that customers actually type
- Internal docs leak into answers for users who shouldn't see them
- Someone ships a "better" pipeline with no evidence that it's actually better
So I built **ragpick**, which makes the architecture an explicit, testable decision:
**Recommend.** Describe your requirements and get a blueprint, the reasons for it, alternatives, and warnings.
**Build.** The pipeline is a validated `rag.yaml` (architecture as code), with document-level access control built in.
**Evaluate.** Compare blueprints on your own questions: hit rate, MRR, faithfulness, latency and cost, side by side.
**11 stable blueprints:** naive, hybrid (BM25 + vector + RRF + optional cross-encoder), parent_child, sql (read-only text-to-SQL), graph (GraphRAG), agentic, multimodal, conversational, hierarchical (RAPTOR), long_context, and corrective (grades retrieval and says "I don't know" instead of guessing).
The feature I'm proudest of is `ragpick bench`. It tries every stable blueprint on your data and writes out the winner:
```
ragpick bench eval.jsonl --data ./docs --write best.yaml
```
Don't have eval questions yet? `ragpick generate-eval ./docs` creates a starter set from your documents.
**Try it in 60 seconds, offline, no API key:**
```
pip install ragpick
git clone https://github.com/kavishkakalhara1/ragpick && cd ragpick
ragpick init --blueprint naive --yes
ragpick ingest examples/data
ragpick query "How do I reset my password?"
```
**Other things it does:**
- **Routing and serving:** a router sends each question to a docs pipeline or a SQL pipeline. `ragpick serve` exposes it as an HTTP API, with API keys mapped to access groups.
- Multi-tenancy (an isolated index per tenant), streaming, and chat sessions that rewrite follow-up questions using the conversation
- `--trace` shows where time goes, and caching stops you paying twice for the same embeddings and LLM calls. Traces can be exported to OpenTelemetry.
- `ragpick eval --fail-under hit_rate@k=0.8` turns retrieval quality into a CI check
- Thumbs-up/down feedback can be exported as regression tests
- **Works alongside LangChain and LlamaIndex** rather than replacing them: their loaders, embedders and LLMs plug in as components
- Supports OpenAI, Ollama and sentence-transformers, plus Qdrant, pgvector, Chroma and LanceDB
1.0 is stable, so configs, the Python API, the CLI and the HTTP API only change compatibly within 1.x. Next up (v1.1) is an adaptive blueprint that picks the cheapest strategy per question, an Anthropic generator with prompt caching, and an Elasticsearch/OpenSearch store.
- GitHub: https://github.com/kavishkakalhara1/ragpick
- PyPI: https://pypi.org/project/ragpick/
- Full write-up on why I built it and how it works: https://medium.com/@kavishkakalhara/choosing-a-rag-architecture-is-the-hard-part-so-i-built-a-tool-for-it-5cffce329a0e
I'm the author and maintainer. I'd love honest feedback, especially on whether the recommendations match what you've seen work in production, and which blueprints or stores you'd want added. Contributions are very welcome too.