haiku.rag/docs/overview.md
Yiorgis Gozadinos 771ac9c96c
Register the optional capabilities where agents are composed
The README feature list and the overview stopped at the analysis capability.
Both examples and the app backend composed agents without the capabilities the
documentation recommends alongside an evidence capability.

custom_agent.py ran each input as an independent agent run, so it needed a state
dict and a carried history before compaction could mean anything there: without
state the evidence record is empty, and earlier evidence would reduce to
receipts retaining nothing.
2026-08-13 15:04:05 +03:00

2.7 KiB

Overview

haiku.rag is an agentic RAG that runs locally and scales to production. Index PDFs, web pages, or whole directories. Ask questions and get cited answers. Build agents, capabilities, and MCP integrations on top.

haiku.rag is open-source first. The defaults run open models through Ollama so the full pipeline works without external API keys. Any provider Pydantic AI supports works in its place.

Built on LanceDB, Pydantic AI, and Docling. Embedded database, no servers required.

See it work

uv pip install haiku.rag

ollama pull qwen3-embedding:4b
ollama pull gpt-oss

haiku-rag init
haiku-rag add-src ~/Documents/some-paper.pdf
haiku-rag chat

The chat TUI is one way to interact with the database. haiku-rag ask and haiku-rag search cover one-shot CLI usage. Python integrations, capabilities, and the MCP server work against the same database.

What it does

Ingest. PDFs, DOCX, HTML, images, and 40+ formats via Docling. Add files, URLs, or whole directories with haiku-rag add-src, or run the haiku-ingester service for continuous, queue-backed ingestion from filesystem, HTTP, S3, or WebDAV sources.

Search. Hybrid retrieval (vector + full-text with reciprocal rank fusion), optional cross-encoder reranking, structure-aware context expansion. Image-as-query and cross-modal retrieval when configured with a multimodal embedder.

Answer. RAG capability with citations including page numbers, section headings, and visual grounding. Vision-capable models receive figure bytes alongside chunk text. Analysis capability with a sandboxed Python interpreter for aggregation and computation across documents. Optional capabilities compact a long conversation down to the evidence it cited, and require every answer to declare its grounding.

Integrate. Use it from Python, the CLI, the MCP server, or through composable native Pydantic AI capabilities.

Operate. Embedded LanceDB by default. Also runs on S3, GCS, Azure, or LanceDB Cloud. Time-travel queries via LanceDB versioning. The haiku-ingester service runs continuously for production deployments.

Where to go next

License

MIT. Source on GitHub.