From df8af5429825954d964542cb351c2de967a46247 Mon Sep 17 00:00:00 2001 From: Yiorgis Gozadinos Date: Thu, 11 Jun 2026 10:29:45 +0300 Subject: [PATCH] rebase from main --- app/backend/pyproject.toml | 2 +- evaluations/pyproject.toml | 2 +- haiku_rag_slim/haiku/rag/store/upgrades/__init__.py | 6 +++--- .../rag/store/upgrades/{v0_57_0.py => v0_58_0.py} | 2 +- haiku_rag_slim/pyproject.toml | 2 +- pyproject.toml | 10 +++++----- ...0_57_0_migration.py => test_v0_58_0_migration.py} | 12 ++++++------ uv.lock | 6 +++--- 8 files changed, 21 insertions(+), 21 deletions(-) rename haiku_rag_slim/haiku/rag/store/upgrades/{v0_57_0.py => v0_58_0.py} (99%) rename tests/store/{test_v0_57_0_migration.py => test_v0_58_0_migration.py} (92%) diff --git a/app/backend/pyproject.toml b/app/backend/pyproject.toml index 55a90c26..8d447938 100644 --- a/app/backend/pyproject.toml +++ b/app/backend/pyproject.toml @@ -8,7 +8,7 @@ dependencies = [ "uvicorn[standard]>=0.40.0", "pydantic-ai-slim[ag-ui,anthropic,openai]>=1.81.0", "python-dotenv>=1.2.1", - "haiku.rag-slim>=0.57.0", + "haiku.rag-slim>=0.58.0", "logfire[pydantic-ai]>=3.17.0", ] diff --git a/evaluations/pyproject.toml b/evaluations/pyproject.toml index 2924dfca..f983baec 100644 --- a/evaluations/pyproject.toml +++ b/evaluations/pyproject.toml @@ -2,7 +2,7 @@ name = "haiku.rag-evals" description = "Benchmarking and evaluation scripts for haiku.rag" -version = "0.57.0" +version = "0.58.0" authors = [{ name = "Yiorgis Gozadinos", email = "ggozadinos@gmail.com" }] license = { text = "MIT" } requires-python = ">=3.12" diff --git a/haiku_rag_slim/haiku/rag/store/upgrades/__init__.py b/haiku_rag_slim/haiku/rag/store/upgrades/__init__.py index 3c742849..115f9a1c 100644 --- a/haiku_rag_slim/haiku/rag/store/upgrades/__init__.py +++ b/haiku_rag_slim/haiku/rag/store/upgrades/__init__.py @@ -93,8 +93,8 @@ from haiku.rag.store.upgrades.v0_48_0 import ( from haiku.rag.store.upgrades.v0_50_0 import ( upgrade_canonical_metadata_keys as upgrade_0_50_0_canonical_metadata_keys, ) -from haiku.rag.store.upgrades.v0_57_0 import ( - upgrade_split_document_meta as upgrade_0_57_0_split_document_meta, +from haiku.rag.store.upgrades.v0_58_0 import ( + upgrade_split_document_meta as upgrade_0_58_0_split_document_meta, ) upgrades.append(upgrade_0_20_0_docling) @@ -105,4 +105,4 @@ upgrades.append(upgrade_0_40_0_document_items) upgrades.append(upgrade_0_45_0_extract_picture_bytes) upgrades.append(upgrade_0_48_0_heading_hierarchy) upgrades.append(upgrade_0_50_0_canonical_metadata_keys) -upgrades.append(upgrade_0_57_0_split_document_meta) +upgrades.append(upgrade_0_58_0_split_document_meta) diff --git a/haiku_rag_slim/haiku/rag/store/upgrades/v0_57_0.py b/haiku_rag_slim/haiku/rag/store/upgrades/v0_58_0.py similarity index 99% rename from haiku_rag_slim/haiku/rag/store/upgrades/v0_57_0.py rename to haiku_rag_slim/haiku/rag/store/upgrades/v0_58_0.py index 2e98c473..38924db2 100644 --- a/haiku_rag_slim/haiku/rag/store/upgrades/v0_57_0.py +++ b/haiku_rag_slim/haiku/rag/store/upgrades/v0_58_0.py @@ -92,7 +92,7 @@ async def _apply_split_document_meta(store: Store) -> None: upgrade_split_document_meta = Upgrade( - version="0.57.0", + version="0.58.0", apply=_apply_split_document_meta, description="Move mutable document attributes into the document_meta table", ) diff --git a/haiku_rag_slim/pyproject.toml b/haiku_rag_slim/pyproject.toml index 83f1a316..33877d95 100644 --- a/haiku_rag_slim/pyproject.toml +++ b/haiku_rag_slim/pyproject.toml @@ -2,7 +2,7 @@ name = "haiku.rag-slim" description = "Opinionated agentic RAG powered by LanceDB, Pydantic AI, and Docling - Minimal dependencies" -version = "0.57.0" +version = "0.58.0" authors = [{ name = "Yiorgis Gozadinos", email = "ggozadinos@gmail.com" }] license = { text = "MIT" } readme = { file = "README.md", content-type = "text/markdown" } diff --git a/pyproject.toml b/pyproject.toml index 25506992..02ce95de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ name = "haiku.rag" description = "Opinionated agentic RAG powered by LanceDB, Pydantic AI, and Docling" -version = "0.57.0" +version = "0.58.0" authors = [{ name = "Yiorgis Gozadinos", email = "ggozadinos@gmail.com" }] license = { text = "MIT" } readme = { file = "README.md", content-type = "text/markdown" } @@ -30,7 +30,7 @@ classifiers = [ ] dependencies = [ - "haiku.rag-slim[docling,voyageai,mxbai,cohere,zeroentropy,tui,cross-encoder]==0.57.0", + "haiku.rag-slim[docling,voyageai,mxbai,cohere,zeroentropy,tui,cross-encoder]==0.58.0", ] [project.scripts] @@ -38,9 +38,9 @@ haiku-rag = "haiku.rag.cli:cli" [project.optional-dependencies] tui = ["textual>=8.2.4"] -s3 = ["haiku.rag-slim[s3]==0.57.0"] -cross-encoder = ["haiku.rag-slim[cross-encoder]==0.57.0"] -ingester = ["haiku.rag-slim[ingester]==0.57.0"] +s3 = ["haiku.rag-slim[s3]==0.58.0"] +cross-encoder = ["haiku.rag-slim[cross-encoder]==0.58.0"] +ingester = ["haiku.rag-slim[ingester]==0.58.0"] [build-system] requires = ["hatchling"] diff --git a/tests/store/test_v0_57_0_migration.py b/tests/store/test_v0_58_0_migration.py similarity index 92% rename from tests/store/test_v0_57_0_migration.py rename to tests/store/test_v0_58_0_migration.py index bc39122d..0d85d294 100644 --- a/tests/store/test_v0_57_0_migration.py +++ b/tests/store/test_v0_58_0_migration.py @@ -4,7 +4,7 @@ import pytest from haiku.rag.store.engine import Store from haiku.rag.store.repositories.document import DocumentRepository -from haiku.rag.store.upgrades.v0_57_0 import _apply_split_document_meta +from haiku.rag.store.upgrades.v0_58_0 import _apply_split_document_meta from tests.store.legacy_documents import ( LegacyDocumentRecord, seed_legacy_documents, @@ -14,8 +14,8 @@ _LEGACY_COLUMNS = {"uri", "title", "metadata", "created_at", "updated_at"} @pytest.mark.asyncio -class TestV0_57_0Migration: - """v0.57.0 moves mutable attributes out of the documents row into +class TestV0_58_0Migration: + """v0.58.0 moves mutable attributes out of the documents row into document_meta so metadata/title updates stop rewriting the docling blob.""" async def test_moves_attributes_and_drops_columns(self, temp_db_path): @@ -37,11 +37,11 @@ class TestV0_57_0Migration: ) ], ) - await store.set_haiku_version("0.56.0") + await store.set_haiku_version("0.57.0") async with Store(temp_db_path, skip_migration_check=True) as store: applied = await store.migrate() - assert any("0.57.0" in d for d in applied) + assert any("0.58.0" in d for d in applied) # Legacy columns dropped from documents; blobs stay. doc_names = {f.name for f in await store.documents_table.schema()} @@ -86,7 +86,7 @@ class TestV0_57_0Migration: ) ], ) - await store.set_haiku_version("0.56.0") + await store.set_haiku_version("0.57.0") async with Store(temp_db_path, skip_migration_check=True) as store: await store.migrate() diff --git a/uv.lock b/uv.lock index a3983353..7a4be853 100644 --- a/uv.lock +++ b/uv.lock @@ -1564,7 +1564,7 @@ wheels = [ [[package]] name = "haiku-rag" -version = "0.57.0" +version = "0.58.0" source = { editable = "." } dependencies = [ { name = "haiku-rag-slim", extra = ["cohere", "cross-encoder", "docling", "mxbai", "tui", "voyageai", "zeroentropy"] }, @@ -1631,7 +1631,7 @@ dev = [ [[package]] name = "haiku-rag-evals" -version = "0.57.0" +version = "0.58.0" source = { editable = "evaluations" } dependencies = [ { name = "datasets" }, @@ -1654,7 +1654,7 @@ requires-dist = [ [[package]] name = "haiku-rag-slim" -version = "0.57.0" +version = "0.58.0" source = { editable = "haiku_rag_slim" } dependencies = [ { name = "docling-core" },