haiku.rag/examples
Yiorgis Gozadinos 597808c56e
Fix chat analysis-model selection, AG-UI example state, and chat docs
Drive analysis-only chat with analysis.model (falling back to qa.model) so
the running model matches the one the analysis capability configures,
including its vision flag; RAG-bearing chats still run on qa.model.

Give the AG-UI example state-bearing deps and a final STATE_SNAPSHOT so
registered citations reach the client, mirroring the app backend.

Update chat docs: haiku-rag chat uses --capability/-c, and drop the removed
"View state" command-palette entry.
2026-07-24 15:27:20 +03:00
..
docker Add a docker-compose for integration test services 2026-06-04 11:13:16 +03:00
samples Use biome on the frontend for linting, add to CI 2026-01-16 15:03:41 +02:00
custom_agent.py Load capabilities eagerly for dedicated single-agent consumers 2026-07-24 15:26:17 +03:00
custom_agent_agui.py Fix chat analysis-model selection, AG-UI example state, and chat docs 2026-07-24 15:27:20 +03:00
README.md fix capability execution limits and chat loading 2026-07-24 15:26:17 +03:00

haiku.rag Examples

This directory contains example scripts demonstrating various features of haiku.rag.

Docker Example

Directory: docker/

Complete Docker setup for running haiku.rag with all services:

  • Continuous ingestion from a watched directory via haiku-ingester
  • MCP server for AI assistant integration

See docker/README.md for setup instructions.

Custom Agent

Script: custom_agent.py

Uses the eagerly loaded RAG capability to build a conversational agent.

uv run python examples/custom_agent.py /path/to/db.lancedb

Custom Agent with AG-UI Streaming

Script: custom_agent_agui.py

A Starlette app that adapts a native RAG-capable agent to AG-UI.

DB_PATH=/path/to/db.lancedb uv run uvicorn examples.custom_agent_agui:app --reload --port 8000