haiku.rag/examples/ag-ui-research
2025-10-17 14:16:38 +03:00
..
backend state synchronization between backend agent and frontend 2025-10-17 14:05:26 +03:00
frontend Use proper chat widget instead of sidebar 2025-10-17 14:16:38 +03:00
.env.example state synchronization between backend agent and frontend 2025-10-17 14:05:26 +03:00
docker-compose.yml state synchronization between backend agent and frontend 2025-10-17 14:05:26 +03:00
package-lock.json Basic skeleton for running an ag-ui demo using starlette and nextjs 2025-10-17 12:43:27 +03:00
README.md Basic skeleton for running an ag-ui demo using starlette and nextjs 2025-10-17 12:43:27 +03:00

Haiku.rag Interactive Research Assistant

Interactive research assistant powered by Haiku.rag, Pydantic AI, and AG-UI protocol. Ask complex questions and watch the multi-agent research process unfold in real-time with synchronized state between backend and frontend.

Quick Start

Prerequisites

  • Docker and Docker Compose
  • Ollama running on host (or configure another QA provider)

Setup

  1. Clone the repository

    git clone <repository-url>
    cd haiku.rag/examples/ag-ui-research
    
  2. Configure environment (optional, defaults to Ollama with gpt-oss:latest)

    cp .env.example .env
    # Edit .env to customize provider/model or add API keys
    

    See haiku.rag configuration docs for provider setup.

  3. Prepare your knowledge base

    Create and populate a haiku.rag database:

    # Create a data directory
    mkdir -p data
    # Add documents (requires haiku-rag installed locally)
    haiku-rag add "Your documents here" --db data/haiku_rag.lancedb
    # Or add from files
    haiku-rag add-src document.pdf --db data/haiku_rag.lancedb
    
  4. Start the application

    docker compose up --build
    
  5. Open the application