9.8 KiB
9.8 KiB
Changelog
Unreleased
[0.16.1] - 2025-11-14
Changed
- BREAKING: Chunking Tokenizer: Switched from tiktoken to HuggingFace tokenizers for consistency with docling-serve
- Default tokenizer changed from tiktoken "gpt-4o" to "Qwen/Qwen3-Embedding-0.6B"
- New
chunking_tokenizerconfig option inProcessingConfigfor customization - Removed
tiktokendependency download-modelsCLI command now also downloads the configured HuggingFace tokenizer
- Evaluations: Refactored QA benchmark to run entire dataset as single evaluation for better Logfire experiment tracking
- Evaluations: Added
.envfile loading support viapython-dotenvdependency
[0.16.0] - 2025-11-13
Added
- AG-UI Protocol Support: Full AG-UI (Agent-UI) protocol implementation for graph execution with event streaming
- New
AGUIEmitterclass for emitting AG-UI events from graphs - Support for all AG-UI event types: lifecycle events (
RUN_STARTED,RUN_FINISHED,RUN_ERROR), step events (STEP_STARTED,STEP_FINISHED), state updates (STATE_SNAPSHOT,STATE_DELTA), activity narration (ACTIVITY_SNAPSHOT), and text messages (TEXT_MESSAGE_CHUNK) AGUIConsoleRendererfor rendering AG-UI event streams to terminal with Rich formattingstream_graph()utility function for executing graphs with AG-UI event emission- State diff computation for efficient state synchronization
- Delta State Updates: AG-UI emitter now supports incremental state updates via JSON Patch operations (
STATE_DELTAevents) to reduce bandwidth, configurable viause_deltasparameter (enabled by default)
- New
- AG-UI Server: Starlette-based HTTP server for serving graphs via AG-UI protocol
- Server-Sent Events (SSE) streaming endpoint at
/v1/agent/stream - Health check endpoint at
/health - Full CORS support configurable via
aguiconfig section create_agui_server()function for programmatic server creation
- Server-Sent Events (SSE) streaming endpoint at
- Deep QA AG-UI Support: Deep QA graph now fully supports AG-UI event streaming
- Integration with
AGUIEmitterfor progress tracking - Step-by-step execution visibility via AG-UI events
- Integration with
- CLI AG-UI Flag: New
--aguiflag forservecommand to start AG-UI server - Graph Module: New unified
haiku.rag.graphmodule containing all graph-related functionality - Common Graph Nodes: New factory functions (
create_plan_node,create_search_node) inhaiku.rag.graph.common.nodesfor reusable graph components - AG-UI Research Example: New full-stack example (
examples/ag-ui-research) demonstrating agent+graph architecture with CopilotKit frontend- Pydantic AI agent with research tool that invokes the research graph
- Custom AG-UI streaming endpoint with anyio memory streams
- React/Next.js frontend with split-pane UI showing live research state
- Real-time progress tracking of questions, answers, insights, and gaps
- Docker Compose setup for easy local development
Changed
- Vacuum Retention: Default
vacuum_retention_secondsincreased from 60 seconds to 86400 seconds (1 day) for better version retention in typical workflows - BREAKING: Major refactoring of graph-related code into unified
haiku.rag.graphmodule structure:haiku.rag.research→haiku.rag.graph.researchhaiku.rag.qa.deep→haiku.rag.graph.deep_qahaiku.rag.agui→haiku.rag.graph.aguihaiku.rag.graph_common→haiku.rag.graph.common
- BREAKING: Research and Deep QA graphs now use AG-UI event protocol instead of direct console logging
- Removed
consoleandstreamparameters from graph dependencies - All progress updates now emit through
AGUIEmitter
- Removed
- BREAKING:
ResearchStateconverted from dataclass to PydanticBaseModelfor JSON serialization and AG-UI compatibility - Research and Deep QA graphs now emit detailed execution events for better observability
- CLI research command now uses AG-UI event rendering for
--verboseoutput - Improved graph execution visibility with step-by-step progress tracking
- Updated all documentation to reflect new import paths and AG-UI usage
- Updated examples (ag-ui-research, a2a-server) to use new import paths
Fixed
- Document Creation: Optimized
create_documentto skip unnecessary DoclingDocument conversion when chunks are pre-provided - FileReader: Error messages now include both original exception details and file path for easier debugging
- Database Auto-creation: Read operations (search, list, get, ask, research) no longer auto-create empty databases. Write operations (add, add-src, delete, rebuild) still create the database as needed. This prevents the confusing scenario where a search query creates an empty database. Fixes issue #137.
Removed
- BREAKING: Removed
disable_autocreateconfig option - the behavior is now automatic based on operation type - BREAKING: Removed legacy
ResearchStreamandResearchStreamEventclasses (replaced by AG-UI event protocol)
[0.15.0] - 2025-11-07
Added
- File Monitor: Orphan deletion feature - automatically removes documents from database when source files are deleted (enabled via
monitor.delete_orphansconfig option, default: false)
Changed
- Configuration: All CLI commands now properly support
--configparameter for specifying custom configuration files - Configuration loading consolidated across CLI, app, and client with consistent resolution order
HaikuRAGAppand MCP server now acceptconfigparameter for programmatic configuration- Updated CLI documentation to clarify global vs per-command options
- BREAKING: Standardized configuration filename to
haiku.rag.yamlin user directories (was incorrectly usingconfig.yaml). Users with existingconfig.yamlin their user directory will need to rename it tohaiku.rag.yaml
Fixed
- File Monitor: Fixed incorrect "Updated document" logging for unchanged files - monitor now properly skips files when MD5 hash hasn't changed
Removed
- BREAKING: A2A (Agent-to-Agent) protocol support has been moved to a separate self-contained package in
examples/a2a-server/. The A2A server is no longer part of the main haiku.rag package. Users who need A2A functionality can install and run it from the examples directory withcd examples/a2a-server && uv sync. - BREAKING: Removed deprecated
.env-based configuration system. Thehaiku-rag init-config --from-envcommand andload_config_from_env()function have been removed. All configuration must now be done via YAML files. Environment variables for API keys (e.g.,OPENAI_API_KEY,ANTHROPIC_API_KEY) and service URLs (e.g.,OLLAMA_BASE_URL) are still supported and can be set via.envfiles.
[0.14.1] - 2025-11-06
Added
- Migrated research and deep QA agents to use Pydantic Graph beta API for better graph execution
- Automatic semaphore-based concurrency control for parallel sub-question processing
max_concurrencyparameter for controlling parallel execution in research and deep QA (default: 1)
Changed
- BREAKING: Research and Deep QA graphs now use
pydantic_graph.betainstead of the class-based graph implementation - Refactored graph common patterns into
graph_commonmodule - Sub-questions now process using
.map()for true parallel execution - Improved graph structure with cleaner node definitions and flow control
- Pinned critical dependencies:
docling-core,lancedb,docling
0.14.0 - 2024-11-05
Added
- New
haiku.rag-slimpackage with minimal dependencies for users who want to install only what they need - Evaluations package (
haiku.rag-evals) for internal benchmarking and testing - Improved search filtering performance by using pandas DataFrames for joins instead of SQL WHERE IN clauses
Changed
- BREAKING: Restructured project into UV workspace with three packages:
haiku.rag-slim- Core package with minimal dependencieshaiku.rag- Full package with all extras (recommended for most users)haiku.rag-evals- Internal benchmarking and evaluation tools
- Migrated from
pydantic-aitopydantic-ai-slimwith extras system - Docling is now an optional dependency (install with
haiku.rag-slim[docling]) - Package metadata checks now use
haiku.rag-slim(always present) instead ofhaiku.rag - Docker image optimized: removed evaluations package, reducing installed packages from 307 to 259
- Improved vector search performance through optimized score normalization
Fixed
- ImportError now properly raised when optional docling dependency is missing
0.13.3 - 2024-11-04
Added
- Support for Zero Entropy reranker
- Filter parameter to
search()for filtering documents before search - Filter parameter to CLI
searchcommand - Filter parameter to CLI
listcommand for filtering document listings - Config option to pass custom configuration files to evaluation commands
- Document filtering now respects configured include/exclude patterns when using
add-srcwith directories - Max retries to insight_agent when producing structured output
Fixed
- CLI now loads
.envfiles at startup - Info command no longer attempts to use deprecated
.envsettings - Documentation typos
0.13.2 - 2024-11-04
Added
- Gitignore-style pattern filtering for file monitoring using pathspec
- Include/exclude pattern documentation for FileMonitor
Changed
- Moved monitor configuration to its own section in config
- Improved configuration documentation
- Updated dependencies
0.13.1 - 2024-11-03
Added
- Initial version tracking