rebase from main

This commit is contained in:
Yiorgis Gozadinos 2026-06-11 10:29:45 +03:00
parent 3366a6d383
commit df8af54298
No known key found for this signature in database
8 changed files with 21 additions and 21 deletions

View file

@ -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",
]

View file

@ -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"

View file

@ -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)

View file

@ -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",
)

View file

@ -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" }

View file

@ -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"]

View file

@ -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()

View file

@ -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" },