
haiku.rag
io.github.ggozadPublished by GitHub account ggozadv0.109.0Updated Nov 7, 2026
Local-first agentic RAG with citations - hybrid search, reranking, multimodal document retrieval
Overview
Local-first RAG server that lets an assistant search, read and answer questions about your own documents with page- and heading-level citations.
- What you can do
- Search indexed documents with hybrid vector and full-text retrieval, optional reranking and section-aware context, across several named databases.
- Read and answer questions over ingested documents, with citations to page numbers and headings.
- Run sandboxed Python over the documents for counting and aggregation, and pass figures to vision models.
- Ingest PDFs, office documents, HTML, Markdown and images, keeping headings, tables, pictures and page provenance.
- When to use it
- Use it when you want an assistant to answer questions grounded in a private document collection, such as papers, reports or manuals, and to show where each answer came from. It suits local, offline-friendly setups where documents should stay on your machine.
- Requirements
- Runs locally as a stdio process, installed from PyPI with uvx or pip; Python 3.12 or newer. By default it uses Ollama for embeddings and answers, so models must be pulled locally; other providers and S3, GCS, Azure or LanceDB Cloud storage are optional extras. A database must be initialized and documents indexed first.
Installation
In SourceWeft
- Open haiku.rag in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
haiku.rag
[PyPI] [Python] [Downloads] [Docs] [Tests] [codecov]
Agentic RAG that answers questions about your own documents with citations to page numbers and section headings. It runs on an embedded LanceDB database with open models through Ollama by default, so no server or API key is needed. Any provider Pydantic AI supports works in their place, and the same database can live on S3, GCS, Azure or LanceDB Cloud.
Built on LanceDB, Pydantic AI and Docling. Documentation: ggozad.github.io/haiku.rag.
Features
- Ingest PDFs, office documents, HTML, Markdown and images with Docling, in-process or on docling-serve. The stored DoclingDocument keeps headings, tables, pictures and page provenance.
- Search with hybrid vector and full-text retrieval, optional reranking (cross-encoders, Jina, Cohere, Zero Entropy, vLLM, OpenRouter), section-aware context expansion, and image search with a multimodal embedder (vLLM, OpenRouter, VoyageAI, Cohere). Across several named databases at once.
- Answer with the RAG capability: it searches, runs sandboxed Python over the documents for counting and aggregation, and cites page numbers and headings. Vision models receive the figures. Optional capabilities compact earlier evidence in long conversations and require every answer to declare its grounding.
- Check a citation by drawing its chunk on the page image, from the CLI, the chat TUI or Python.
- Integrate through the Python API, native Pydantic AI capabilities, plugin hooks that observe document writes and transform searches, an MCP server for Claude Code, Codex and Claude Desktop, and a reference web app.
- Operate with the
haiku-ingesterservice (filesystem, HTTP, S3 and WebDAV sources, a SQLite or Postgres job queue with retries, a control plane and dashboard), tags and rollback, vacuum, andhaiku-rag doctorhealth checks.
Installation
Python 3.12 or newer.
The ingester, S3 access and model providers other than Ollama and OpenAI-compatible endpoints are extras. See Installation.
Quick start
The default configuration uses Ollama for embeddings and answers. The quickstart covers the models to pull and using OpenAI instead.
Continuous ingestion from configured sources runs as a separate service, with the ingester extra (pip install 'haiku.rag[ingester]'):
Python API
To compose your own agent, see Capabilities.
MCP server
The server gives an assistant search, document reading and a Python sandbox over the documents. In Claude Code, the plugin registers it with a skill:
Codex and Claude Desktop setup is in the MCP docs.
Examples
- Docker setup: docling-serve, the ingester and the MCP server
- Web application: chat, ingestion, inspector and doctor in the browser
Documentation
- Quickstart: install, index, chat
- Installation: packages and extras
- Architecture: how a document becomes a cited answer
- CLI and Chat and inspector
- Capabilities: native Pydantic AI capabilities
- Configuration: every setting, and tuning
- Ingester, MCP and remote processing
- Python API and custom pipelines
- Benchmarks and the changelog
License
MIT.
mcp-name: io.github.ggozad/haiku-rag
Source: README.md at commit ee0c087
Tools
0Version history
27- v0.109.0LatestNov 7, 2026
- v0.108.0Nov 5, 2026
- v0.107.0Nov 4, 2026
- v0.106.0Nov 3, 2026
- v0.105.0Nov 3, 2026
- v0.104.0Oct 30, 2026
- v0.103.0Oct 29, 2026
- v0.101.1Oct 26, 2026
- v0.101.0Oct 23, 2026
- v0.100.0Oct 22, 2026
- v0.99.0Oct 21, 2026
- v0.98.0Oct 16, 2026
- v0.97.0Oct 12, 2026
- v0.96.1Oct 9, 2026
- v0.96.0Oct 9, 2026
- v0.95.0Oct 8, 2026
- v0.94.0Oct 7, 2026
- v0.93.0Oct 6, 2026
- v0.92.0Oct 2, 2026
- v0.91.0Sep 30, 2026
- v0.90.0Sep 28, 2026
- v0.89.0Sep 25, 2026
- v0.88.2Sep 24, 2026
- v0.88.1Sep 23, 2026
- v0.88.0Sep 21, 2026
- v0.87.0Sep 17, 2026
- v0.86.0Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
