Haiku RAG is an opinionated agentic RAG server built on LanceDB, Pydantic AI, and Docling. It offers hybrid search (vector + full-text with Reciprocal Rank Fusion), multimodal and cross-modal search (text-as-query → figure hits, image-as-query), question answering with citations (page numbers, section headings), vision QA (vision-capable models receive figure bytes alongside chunk text), reranking (local cross-encoders, Cohere, Zero Entropy, or vLLM), analysis capability (complex analytical tasks via sandboxed Python execution), conversational RAG (chat TUI and web application), and document structure storage. It supports multiple embedding providers (Ollama, OpenAI, VoyageAI, Cohere, LM Studio, vLLM) and is local-first with embedded LanceDB, also supporting S3, GCS, Azure, and LanceDB Cloud. It provides a CLI, Python API, and MCP server to expose tools for AI assistants like Claude Desktop.
Use cases
Smart search and Q&A over PDF documents
Multimodal retrieval over document collections, including image queries
Local-first RAG applications via CLI or Python API
Exposing document management, search, QA, and analysis tools to AI assistants like Claude Desktop