# haiku.rag

Agentic RAG for local and self-hosted document search: hybrid retrieval, reranking and multimodal RAG on embedded LanceDB, with Docling parsing and an MCP server

Canonical page: https://www.reposhelf.co.uk/projects/github/ggozad/haiku.rag.html

- Project ID: ggozad/haiku.rag
- Source: GitHub
- Original project: https://github.com/ggozad/haiku.rag
- Description attribution: project author metadata
- Categories: Developer tools, MCP servers &amp; agents, Self-hosted apps
- Technologies: Python
- Licence: MIT
- Repository availability checked: 2026-11-04T14:46:42.414Z
- Demo page loaded: 2026-11-06T00:51:28.204Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> 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.

- 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,…
- 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…
- 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.

## Author-documented requirements and audience

> 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.



- External API key — Not required: It runs on an embedded LanceDB database with open models through Ollama by default, so no server or API key is needed.

Not recorded: Account, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/ggozad/haiku.rag/blob/main/README.md

Extraction checked: 2026-10-20T15:41:34.116Z

Last recorded source update: 2026-11-04T14:46:31.000Z

Saved release: 0.94.0 — 2026-10-07T13:23:05.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=ggozad%2Fhaiku.rag). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
