Open-source inference server and production cluster for all the models your agent needs.
Python bgecolbertdata-pipelinedeep-learningembeddingsinferenceinference-serverinformation-retrievalllmmlmlopsnatural-language-processingnlppythonrerankingretrievalretrieval-augmented-generationsemantic-searchspladevector-search
feat(examples): add multimodal catalog taxonomy agent (#226)
svonava6f36be8147cc
diff --git a/examples/taxonomy-classification/README.md b/examples/taxonomy-classification/README.mdindex 0a8d7ec13..112525863 100644--- a/examples/taxonomy-classification/README.md+++ b/examples/taxonomy-classification/README.md@@ -8,6 +8,69 @@ Taxonomy classification assigns a category path (e.g. `Electronics > Computers >Google's [Custom Taxonomy Classifier](https://github.com/google-marketing-solutions/custom-taxonomy-classifier) demonstrates a minimal version of this: embed flat category names with a single Vertex AI model, retrieve the nearest neighbor. This project goes further: we systematically evaluate multiple approaches across text, vision, with and without reranking on a hierarchical taxonomy.+## Start with the focused catalog agent++`catalog_agent.py` is the shortest path from a product listing to a normalized+category decision:++1. Rank the supplied candidate paths from listing copy.+2. Rank the same paths from the product image and copy.+3. Keep the top two paths from each ranking.+4. Ask `Qwen/Qwen3.6-27B` to select one path or set `needs_review`.++The runnable example sends all three model calls through SIE. The final response+uses a two-field JSON schema, so application code receives one selected index+and one review flag. The published Shopify label never enters the request.++Run one real listing:++```bash+uv sync+uv run predict-catalog-agent --offset 54+```++Evaluate the same 100 train rows used by the+[e-commerce reference page](https://superlinked.com/e-commerce):++```bash+uv run eval-catalog-agent \+ --offset 0 \+ --limit 100 \+ --output eval/catalog-agent.json+```++The recorded run moves exact-path matches from `42/100` for copy alone to+`54/100` for the catalog agent. Macro hierarchical F1 moves from `0.6710` to+`0.7446`; six listings are flagged for review. Shopify recommends hierarchical+F1 for this benchmark because a nearby taxonomy branch and a different+top-level category should not count as the same error.++The run summary is in+[`results/catalog-agent-summary.json`](results/catalog-agent-summary.json).++### What the first 55 misses showed++Image plus copy fixed 10 copy-only mistakes and introduced 7 regressions. Of+the 55 image-plus-copy misses, 27 selected a nearby branch, 18 selected the+wrong top-level branch, 6 selected an ancestor or descendant, and 4 stayed+under the right top-level branch but missed elsewhere.++The reference path was present in every supplied candidate list. It appeared+in the union of the copy-only and image-plus-copy top two for 75 listings, while+the best static blend of both reranker scores reached only 48 exact matches.+That gap led to the verifier step.++Several reference labels also conflict with the listing itself. Examples+include a hydraulic pump labeled as a cone crusher and a decorative banner+labeled as a traditional doll. Those rows should enter a dataset-review queue+instead of silently training the classifier toward the bad label.++The next useful iteration is a hierarchical verifier. It would decide the+top-level branch first, then compare siblings with taxonomy definitions and+merchant attributes. A disagreement rule can send low-margin or contradictory+listings to review. This targets the two largest error groups without adding a+larger model to every request.+## Why SIETaxonomy classification is not a single-model problem. Finding the best approach requires experimenting with fundamentally different model types:diff --git a/examples/taxonomy-classification/pyproject.toml b/examples/taxonomy-classification/pyproject.tomlindex e14661e99..20df9b500 100644--- a/examples/taxonomy-classification/pyproject.toml+++ b/examples/taxonomy-classification/pyproject.toml@@ -6,9 +6,10 @@ readme = "README.md"requires-python = ">=3.12,<3.13"dependencies = ["chromadb>=1.5.9",+ "pillow>=12.2.0","polars>=1.40.0","python-dotenv>=1.2.2",- "sie-sdk==0.2.0",+ "sie-sdk==0.6.24","tqdm>=4.67.3",]@@ -25,9 +26,13 @@ eval-image-retrieval = "taxonomy_classification.classifier.image_retrieval:eval_predict-image-retrieval = "taxonomy_classification.classifier.image_retrieval:predict_main"eval-reranking = "taxonomy_classification.classifier.reranking:eval_main"predict-reranking = "taxonomy_classification.classifier.reranking:predict_main"+eval-catalog-agent = "taxonomy_classification.catalog_agent:eval_main"+predict-catalog-agent = "taxonomy_classification.catalog_agent:predict_main"[dependency-groups]dev = [+ "pytest>=8.0.0",+ "pytest-asyncio","ruff>=0.11.0",]diff --git a/examples/taxonomy-classification/results/catalog-agent-summary.json b/examples/taxonomy-classification/results/catalog-agent-summary.jsonnew file mode 100644index 000000000..77278453b--- /dev/null+++ b/examples/taxonomy-classification/results/catalog-agent-summary.json@@ -0,0 +1,38 @@+{+ "record_type": "sie_catalog_agent_evaluation_summary",+ "run_at": "2026-07-28T05:39:23.578423Z",+ "dataset": {+ "id": "Shopify/product-catalogue",+ "revision": "d5c517c509f5aca99053897ef1de797d6d7e5aa5",+ "split": "train",+ "row_window": [0, 99]+ },+ "models": {+ "reranker": {+ "id": "Qwen/Qwen3-VL-Reranker-2B",+ "revision": "4bd860ac4f15ad1897a214615cccc700f8f71818"+ },+ "verifier": {+ "id": "Qwen/Qwen3.6-27B",+ "revision": "6a9e13bd6fc8f0983b9b99948120bc37f49c13e9"+ }+ },+ "candidate_rule": "Union of the two highest-scoring paths from copy-only and image-plus-copy reranker calls.",+ "response_schema": {+ "type": "object",+ "required": ["selected_index", "needs_review"],+ "additionalProperties": false+ },+ "metrics": {+ "copy_only_exact_path_correct": 42,+ "image_plus_copy_exact_path_correct": 45,+ "agent_exact_path_correct": 54,+ "copy_only_top_level_correct": 81,+ "image_plus_copy_top_level_correct": 82,+ "agent_top_level_correct": 86,+ "copy_only_macro_hierarchical_f1": 0.6709681429681428,+ "image_plus_copy_macro_hierarchical_f1": 0.6881536796536796,+ "agent_macro_hierarchical_f1": 0.7446406926406923,+ "needs_review": 6+ }+}diff --git a/examples/taxonomy-classification/taxonomy_classification/catalog_agent.py b/examples/taxonomy-classification/taxonomy_classification/catalog_agent.pynew file mode 100644index 000000000..e85d4f035--- /dev/null+++ b/examples/taxonomy-classification/taxonomy_classification/catalog_agent.py@@ -0,0 +1,553 @@+from __future__ import annotations++import argparse+import base64+import hashlib+import io+import json+import tempfile+from dataclasses import asdict, dataclass+from datetime import UTC, datetime+from pathlib import Path+from typing import Any+from urllib.parse import urlencode+from urllib.request import Request, urlopen++from PIL import Image+from sie_sdk import SIEClient++from taxonomy_classification.sie_client import create_sie_client++DATASET = "Shopify/product-catalogue"+DATASET_REVISION = "d5c517c509f5aca99053897ef1de797d6d7e5aa5"+DATASET_CONFIG = "default"+DATASET_SPLIT = "train"+DATASET_ROWS_URL = "https://datasets-server.huggingface.co/rows"++RERANKER_MODEL = "Qwen/Qwen3-VL-Reranker-2B"+VERIFIER_MODEL = "Qwen/Qwen3.6-27B"+PROVISION_TIMEOUT_S = 900.0+DESCRIPTION_CHARS = 512+TOP_K_PER_RANKING = 2++RERANK_INSTRUCTION = (+ "Rank Shopify taxonomy paths by which path should categorize the product "+ "listing for an online store. Use both the product image and listing text."+)+VERIFIER_SYSTEM_PROMPT = """You classify e-commerce listings into one supplied Shopify taxonomy path.+Choose the path for the item the merchant is selling. Distinguish a finished product from its accessory, replacement part, digital design, container, ingredient, or depicted subject. Use the listing image and copy together.+Return the zero-based index of exactly one supplied path. If the listing or taxonomy is contradictory, still choose the best path and mark needs_review true. Return only selected_index and needs_review."""+++@dataclass(frozen=True)+class CatalogListing:+ row_idx: int+ title: str+ description: str+ image_bytes: bytes+ image_format: str+ image_sha256: str+ candidate_paths: list[str]+ ground_truth_path: str | None = None+ viewer_url: str | None = None+++@dataclass(frozen=True)+class CatalogDecision:+ row_idx: int+ selected_path: str+ needs_review: bool+ candidate_union: list[str]+ text_scores: list[float]+ image_plus_copy_scores: list[float]+ verifier_response_id: str | None+++def _download(url: str) -> bytes:+ request = Request(url, headers={"User-Agent": "Mozilla/5.0"})+ with urlopen(request, timeout=60) as response:+ return response.read()+++def _image_format(image_bytes: bytes) -> str:+ with Image.open(io.BytesIO(image_bytes)) as image:+ value = (image.format or "jpeg").lower()+ return "jpeg" if value == "jpg" else value+++def _verifier_data_uri(image_bytes: bytes) -> str:+ with Image.open(io.BytesIO(image_bytes)) as image:+ image = image.convert("RGB")+ image.thumbnail((768, 768))+ encoded = io.BytesIO()+ image.save(encoded, format="JPEG", quality=84, optimize=True)+ return "data:image/jpeg;base64," + base64.b64encode(encoded.getvalue()).decode(+ "ascii"+ )+++def _description_excerpt(description: str) -> str:+ value = description.strip()+ if len(value) <= DESCRIPTION_CHARS:+ return value+ return value[:DESCRIPTION_CHARS].rsplit(" ", 1)[0]+++def listing_query(listing: CatalogListing) -> str:+ query = f"Product title: {listing.title}"+ description = _description_excerpt(listing.description)+ if description:+ query += f"\nProduct description: {description}"+ return query+++def load_shopify_rows(+ *,+ offset: int,+ limit: int,+ cache_dir: Path,+) -> list[CatalogListing]:+ query = urlencode(+ {+ "dataset": DATASET,+ "config": DATASET_CONFIG,+ "split": DATASET_SPLIT,+ "offset": offset,+ "length": limit,+ "revision": DATASET_REVISION,+ }+ )+ payload = json.loads(_download(f"{DATASET_ROWS_URL}?{query}"))+ cache_dir.mkdir(parents=True, exist_ok=True)+ listings: list[CatalogListing] = []+ for entry in payload["rows"]:+ row_idx = int(entry["row_idx"])+ row = entry["row"]+ image_path = (+ cache_dir / f"shopify-train-{DATASET_REVISION[:12]}-{row_idx}.image"+ )+ if image_path.exists():+ image_bytes = image_path.read_bytes()+ else:+ image_bytes = _download(row["product_image"]["src"])+ image_path.write_bytes(image_bytes)+ listings.append(+ CatalogListing(+ row_idx=row_idx,+ title=row["product_title"],+ description=row["product_description"],+ image_bytes=image_bytes,+ image_format=_image_format(image_bytes),+ image_sha256=hashlib.sha256(image_bytes).hexdigest(),+ candidate_paths=list(row["potential_product_categories"]),+ ground_truth_path=row["ground_truth_category"],+ viewer_url=(+ "https://huggingface.co/datasets/Shopify/product-catalogue/"+ f"viewer/default/train?row={row_idx}"+ ),+ )+ )+ return listings+++def _scores_in_request_order(+ result: dict[str, Any],+ candidate_count: int,+) -> list[float]:+ scores_by_index = {+ int(score["item_id"]): float(score["score"]) for score in result["scores"]+ }+ if set(scores_by_index) != set(range(candidate_count)):+ raise ValueError("SIE reranker response does not cover every candidate")+ return [scores_by_index[index] for index in range(candidate_count)]+++def _top_indexes(scores: list[float], limit: int) -> list[int]:+ return sorted(+ range(len(scores)),+ key=lambda index: scores[index],+ reverse=True,+ )[:limit]+++def candidate_union(+ paths: list[str],+ text_scores: list[float],+ image_plus_copy_scores: list[float],+ *,+ top_k: int = TOP_K_PER_RANKING,+) -> list[str]:+ indexes: list[int] = []+ for index in [+ *_top_indexes(image_plus_copy_scores, top_k),+ *_top_indexes(text_scores, top_k),+ ]:+ if index not in indexes:+ indexes.append(index)+ return [paths[index] for index in indexes]+++def rerank_listing(+ client: SIEClient,+ listing: CatalogListing,+) -> tuple[list[float], list[float]]:+ query = listing_query(listing)+ candidates = [+ {"id": str(index), "text": path}+ for index, path in enumerate(listing.candidate_paths)+ ]+ text_result = client.score(+ RERANKER_MODEL,+ {"text": query},+ candidates,+ instruction=RERANK_INSTRUCTION,+ wait_for_capacity=True,+ provision_timeout_s=PROVISION_TIMEOUT_S,+ )+ image_result = client.score(+ RERANKER_MODEL,+ {+ "text": query,+ "images": [+ {+ "data": listing.image_bytes,+ "format": listing.image_format,+ }+ ],+ },+ candidates,+ instruction=RERANK_INSTRUCTION,+ wait_for_capacity=True,+ provision_timeout_s=PROVISION_TIMEOUT_S,+ )+ return (+ _scores_in_request_order(text_result, len(candidates)),+ _scores_in_request_order(image_result, len(candidates)),+ )+++def verify_candidates(+ client: SIEClient,+ listing: CatalogListing,+ candidates: list[str],+) -> tuple[int, bool, str | None]:+ if not candidates:+ raise ValueError(f"No candidate paths supplied for row {listing.row_idx}")+ candidate_lines = "\n".join(+ f"{index}: {path}" for index, path in enumerate(candidates)+ )+ user_text = (+ f"TITLE\n{listing.title}\n\n"+ f"DESCRIPTION\n{listing.description.strip() or '(none)'}\n\n"+ f"CANDIDATE PATHS\n{candidate_lines}"+ )+ response = client.chat_completions(+ VERIFIER_MODEL,+ [+ {"role": "system", "content": VERIFIER_SYSTEM_PROMPT},+ {+ "role": "user",+ "content": [+ {+ "type": "image_url",+ "image_url": {"url": _verifier_data_uri(listing.image_bytes)},+ },+ {"type": "text", "text": user_text},+ ],+ },+ ],+ temperature=0,+ max_tokens=512,+ response_format={+ "type": "json_schema",+ "json_schema": {+ "name": "taxonomy_selection",+ "strict": True,+ "schema": {+ "type": "object",+ "properties": {+ "selected_index": {+ "type": "integer",+ "minimum": 0,+ "maximum": len(candidates) - 1,+ },+ "needs_review": {"type": "boolean"},+ },+ "required": ["selected_index", "needs_review"],+ "additionalProperties": False,+ },+ },+ },+ wait_for_capacity=True,+ provision_timeout_s=PROVISION_TIMEOUT_S,+ )+ content = response["choices"][0]["message"]["content"]+ if not isinstance(content, str):+ raise ValueError("SIE verifier returned non-text content")+ selection = json.loads(content)+ selected_index = selection["selected_index"]+ if not isinstance(selected_index, int) or not (+ 0 <= selected_index < len(candidates)+ ):+ raise ValueError(f"Invalid selected_index: {selected_index!r}")+ return selected_index, bool(selection["needs_review"]), response.get("id")+++def classify_listing(+ client: SIEClient,+ listing: CatalogListing,+) -> CatalogDecision:+ text_scores, image_plus_copy_scores = rerank_listing(client, listing)+ candidates = candidate_union(+ listing.candidate_paths,+ text_scores,+ image_plus_copy_scores,+ )+ selected_index, needs_review, response_id = verify_candidates(+ client,+ listing,+ candidates,+ )+ return CatalogDecision(+ row_idx=listing.row_idx,+ selected_path=candidates[selected_index],+ needs_review=needs_review,+ candidate_union=candidates,+ text_scores=text_scores,+ image_plus_copy_scores=image_plus_copy_scores,+ verifier_response_id=response_id,+ )+++def _common_depth(prediction: str, reference: str) -> int:+ predicted_nodes = prediction.split(" > ")+ reference_nodes = reference.split(" > ")+ depth = 0+ while (+ depth < len(predicted_nodes)+ and depth < len(reference_nodes)+ and predicted_nodes[depth] == reference_nodes[depth]+ ):+ depth += 1+ return depth+++def evaluation_metrics(+ listings: list[CatalogListing],+ decisions: list[CatalogDecision],+) -> dict[str, Any]:+ listing_by_row = {listing.row_idx: listing for listing in listings}+ exact = 0+ top_level = 0+ hierarchical_f1_total = 0.0+ for decision in decisions:+ listing = listing_by_row[decision.row_idx]+ reference = listing.ground_truth_path+ if reference is None:+ raise ValueError(f"Missing reference for row {listing.row_idx}")+ if decision.selected_path == reference:+ exact += 1+ if decision.selected_path.split(" > ")[0] == reference.split(" > ")[0]:+ top_level += 1+ common_depth = _common_depth(decision.selected_path, reference)+ precision = common_depth / len(decision.selected_path.split(" > "))+ recall = common_depth / len(reference.split(" > "))+ hierarchical_f1_total += (+ 0.0+ if precision + recall == 0+ else 2 * precision * recall / (precision + recall)+ )+ count = len(decisions)+ return {+ "sample_size": count,+ "exact_path_correct": exact,+ "exact_path_accuracy": exact / count if count else 0.0,+ "top_level_correct": top_level,+ "top_level_accuracy": top_level / count if count else 0.0,+ "macro_hierarchical_f1": (hierarchical_f1_total / count if count else 0.0),+ "needs_review": sum(decision.needs_review for decision in decisions),+ }+++def _common_parser(description: str) -> argparse.ArgumentParser:+ parser = argparse.ArgumentParser(description=description)+ parser.add_argument("--offset", type=int, default=0)+ parser.add_argument("--limit", type=int, default=100)+ parser.add_argument(+ "--cache-dir",+ type=Path,+ default=Path(".cache/catalog-agent"),+ )+ return parser+++def _evaluation_output(+ listings: list[CatalogListing],+ decisions_by_row: dict[int, CatalogDecision],+ *,+ offset: int,+) -> dict[str, Any]:+ completed_listings = [+ listing for listing in listings if listing.row_idx in decisions_by_row+ ]+ decisions = [decisions_by_row[listing.row_idx] for listing in completed_listings]+ return {+ "record_type": "sie_catalog_agent_evaluation",+ "run_at": datetime.now(UTC).isoformat().replace("+00:00", "Z"),+ "dataset": {+ "id": DATASET,+ "revision": DATASET_REVISION,+ "split": DATASET_SPLIT,+ "row_window": [offset, offset + len(listings) - 1],+ },+ "models": {+ "reranker": RERANKER_MODEL,+ "verifier": VERIFIER_MODEL,+ },+ "candidate_rule": (+ "Union of the two highest-scoring paths from copy-only and "+ "image-plus-copy reranker calls."+ ),+ "response_schema": {+ "required": ["selected_index", "needs_review"],+ },+ "metrics": evaluation_metrics(completed_listings, decisions),+ "results": [+ {+ **asdict(decision),+ "ground_truth_path": listing.ground_truth_path,+ }+ for listing, decision in zip(completed_listings, decisions, strict=True)+ ],+ }+++def _write_evaluation_output(path: Path, output: dict[str, Any]) -> None:+ path.parent.mkdir(parents=True, exist_ok=True)+ temporary_path: Path | None = None+ try:+ with tempfile.NamedTemporaryFile(+ mode="w",+ encoding="utf-8",+ prefix=f".{path.name}-",+ suffix=".tmp",+ dir=path.parent,+ delete=False,+ ) as temporary:+ temporary_path = Path(temporary.name)+ json.dump(output, temporary, indent=2, ensure_ascii=False)+ temporary.write("\n")+ temporary_path.replace(path)+ finally:+ if temporary_path is not None:+ temporary_path.unlink(missing_ok=True)+++def _load_checkpoint(+ path: Path,+ listings: list[CatalogListing],+ *,+ offset: int,+) -> dict[int, CatalogDecision]:+ if not path.exists():+ return {}++ payload = json.loads(path.read_text(encoding="utf-8"))+ expected_dataset = {+ "id": DATASET,+ "revision": DATASET_REVISION,+ "split": DATASET_SPLIT,+ "row_window": [offset, offset + len(listings) - 1],+ }+ expected_models = {+ "reranker": RERANKER_MODEL,+ "verifier": VERIFIER_MODEL,+ }+ if payload.get("record_type") != "sie_catalog_agent_evaluation":+ raise ValueError(f"Cannot resume from {path}: unexpected record type")+ if (+ payload.get("dataset") != expected_dataset+ or payload.get("models") != expected_models+ ):+ raise ValueError(f"Cannot resume from {path}: dataset window or models changed")++ listings_by_row = {listing.row_idx: listing for listing in listings}+ decisions: dict[int, CatalogDecision] = {}+ for result in payload.get("results", []):+ row_idx = int(result["row_idx"])+ listing = listings_by_row.get(row_idx)+ if listing is None:+ raise ValueError(f"Cannot resume from {path}: unexpected row {row_idx}")+ if row_idx in decisions:+ raise ValueError(f"Cannot resume from {path}: duplicate row {row_idx}")+ if result.get("ground_truth_path") != listing.ground_truth_path:+ raise ValueError(+ f"Cannot resume from {path}: reference changed for row {row_idx}"+ )+ decisions[row_idx] = CatalogDecision(+ row_idx=row_idx,+ selected_path=result["selected_path"],+ needs_review=result["needs_review"],+ candidate_union=result["candidate_union"],+ text_scores=result["text_scores"],+ image_plus_copy_scores=result["image_plus_copy_scores"],+ verifier_response_id=result["verifier_response_id"],+ )+ return decisions+++def eval_main() -> None:+ parser = _common_parser(+ "Evaluate the focused multimodal catalog agent on Shopify listings."+ )+ parser.add_argument("--output", type=Path, required=True)+ args = parser.parse_args()+ listings = load_shopify_rows(+ offset=args.offset,+ limit=args.limit,+ cache_dir=args.cache_dir,+ )+ decisions_by_row = _load_checkpoint(args.output, listings, offset=args.offset)+ if decisions_by_row:+ print(+ f"Resuming with {len(decisions_by_row)} completed rows from {args.output}"+ )+ pending_listings = [+ listing for listing in listings if listing.row_idx not in decisions_by_row+ ]+ if pending_listings:+ with create_sie_client(timeout_s=600) as client:+ for listing in pending_listings:+ decision = classify_listing(client, listing)+ decisions_by_row[listing.row_idx] = decision+ output = _evaluation_output(+ listings, decisions_by_row, offset=args.offset+ )+ _write_evaluation_output(args.output, output)+ print(+ f"{listing.row_idx:>5} "+ f"{'review' if decision.needs_review else 'accept':>6} "+ f"{decision.selected_path}"+ )++ output = _evaluation_output(listings, decisions_by_row, offset=args.offset)+ _write_evaluation_output(args.output, output)+ print(json.dumps(output["metrics"], indent=2))+++def predict_main() -> None:+ parser = _common_parser("Run the focused catalog agent on one Shopify listing.")+ parser.set_defaults(limit=1)+ args = parser.parse_args()+ listings = load_shopify_rows(+ offset=args.offset,+ limit=args.limit,+ cache_dir=args.cache_dir,+ )+ with create_sie_client(timeout_s=600) as client:+ decision = classify_listing(client, listings[0])+ print(json.dumps(asdict(decision), indent=2, ensure_ascii=False))+++if __name__ == "__main__":+ eval_main()diff --git a/examples/taxonomy-classification/tests/test_catalog_agent.py b/examples/taxonomy-classification/tests/test_catalog_agent.pynew file mode 100644index 000000000..3d1829c4d--- /dev/null+++ b/examples/taxonomy-classification/tests/test_catalog_agent.py@@ -0,0 +1,300 @@+from __future__ import annotations++import json+import io+import sys+from contextlib import contextmanager+from pathlib import Path+from typing import Any++import pytest+from PIL import Image++from taxonomy_classification import catalog_agent+from taxonomy_classification.catalog_agent import (+ CatalogDecision,+ CatalogListing,+ candidate_union,+ classify_listing,+ evaluation_metrics,+ verify_candidates,+)+++def listing(*, reference: str) -> CatalogListing:+ return CatalogListing(+ row_idx=7,+ title="Example",+ description="Example listing",+ image_bytes=b"jpeg",+ image_format="jpeg",+ image_sha256="abc",+ candidate_paths=["A > One", "A > Two", "B > Three", "A > Four"],+ ground_truth_path=reference,+ )+++def test_candidate_union_preserves_image_ranking_then_adds_text_candidates() -> None:+ paths = ["A", "B", "C", "D"]+ assert candidate_union(+ paths,+ text_scores=[0.9, 0.8, 0.2, 0.1],+ image_plus_copy_scores=[0.1, 0.7, 0.95, 0.4],+ ) == ["C", "B", "A"]+++def test_evaluation_reports_exact_top_level_and_macro_hierarchical_f1() -> None:+ source = listing(reference="A > One")+ decision = CatalogDecision(+ row_idx=7,+ selected_path="A > Two",+ needs_review=True,+ candidate_union=["A > Two", "A > One"],+ text_scores=[0.1, 0.2, 0.3, 0.4],+ image_plus_copy_scores=[0.4, 0.3, 0.2, 0.1],+ verifier_response_id="chat-1",+ )++ assert evaluation_metrics([source], [decision]) == {+ "sample_size": 1,+ "exact_path_correct": 0,+ "exact_path_accuracy": 0.0,+ "top_level_correct": 1,+ "top_level_accuracy": 1.0,+ "macro_hierarchical_f1": 0.5,+ "needs_review": 1,+ }+++def test_classify_listing_runs_two_rankings_then_verifies_the_union() -> None:+ encoded = io.BytesIO()+ Image.new("RGB", (2, 2), "white").save(encoded, format="JPEG")+ source = CatalogListing(+ row_idx=54,+ title="Manual floor sweeper",+ description="Push-powered sweeper for hard floors.",+ image_bytes=encoded.getvalue(),+ image_format="jpeg",+ image_sha256="abc",+ candidate_paths=[+ "Home & Garden > Household Supplies > Carpet Sweepers",+ "Home & Garden > Household Supplies > Power Sweepers",+ "Hardware > Tools > Brooms",+ "Vehicles & Parts > Vehicle Parts",+ ],+ ground_truth_path="Home & Garden > Household Supplies > Power Sweepers",+ )++ class FakeClient:+ def __init__(self) -> None:+ self.score_calls: list[dict[str, Any]] = []+ self.chat_calls: list[dict[str, Any]] = []++ def score(+ self,+ model: str,+ query: dict[str, Any],+ items: list[dict[str, Any]],+ **kwargs: Any,+ ) -> dict[str, Any]:+ self.score_calls.append(+ {+ "model": model,+ "query": query,+ "items": items,+ "kwargs": kwargs,+ }+ )+ scores = (+ [0.9, 0.4, 0.2, 0.1]+ if len(self.score_calls) == 1+ else [0.3, 0.95, 0.4, 0.1]+ )+ return {+ "scores": [+ {"item_id": str(index), "score": score}+ for index, score in enumerate(scores)+ ]+ }++ def chat_completions(+ self,+ model: str,+ messages: list[dict[str, Any]],+ **kwargs: Any,+ ) -> dict[str, Any]:+ self.chat_calls.append(+ {"model": model, "messages": messages, "kwargs": kwargs}+ )+ return {+ "id": "chat-54",+ "choices": [+ {+ "message": {+ "content": ('{"selected_index": 0, "needs_review": false}')+ }+ }+ ],+ }++ client = FakeClient()+ decision = classify_listing(client, source) # type: ignore[arg-type]++ assert len(client.score_calls) == 2+ assert "images" not in client.score_calls[0]["query"]+ assert client.score_calls[1]["query"]["images"][0]["format"] == "jpeg"+ assert len(client.chat_calls) == 1+ assert decision.candidate_union == [+ "Home & Garden > Household Supplies > Power Sweepers",+ "Hardware > Tools > Brooms",+ "Home & Garden > Household Supplies > Carpet Sweepers",+ ]+ assert decision.selected_path == (+ "Home & Garden > Household Supplies > Power Sweepers"+ )+ assert decision.needs_review is False+ assert decision.verifier_response_id == "chat-54"+++def test_verify_candidates_rejects_an_empty_union() -> None:+ source = listing(reference="A > One")++ with pytest.raises(ValueError, match="No candidate paths supplied for row 7"):+ verify_candidates(object(), source, []) # type: ignore[arg-type]+++def test_image_cache_key_includes_the_dataset_revision(+ tmp_path: Path, monkeypatch: pytest.MonkeyPatch+) -> None:+ encoded = io.BytesIO()+ Image.new("RGB", (2, 2), "white").save(encoded, format="JPEG")+ rows = {+ "rows": [+ {+ "row_idx": 7,+ "row": {+ "product_title": "Example",+ "product_description": "Example listing",+ "product_image": {"src": "https://example.com/image.jpg"},+ "potential_product_categories": ["A > One"],+ "ground_truth_category": "A > One",+ },+ }+ ]+ }++ def fake_download(url: str) -> bytes:+ if url.startswith(catalog_agent.DATASET_ROWS_URL):+ return json.dumps(rows).encode()+ return encoded.getvalue()++ monkeypatch.setattr(catalog_agent, "_download", fake_download)+ catalog_agent.load_shopify_rows(offset=7, limit=1, cache_dir=tmp_path)++ expected_name = f"shopify-train-{catalog_agent.DATASET_REVISION[:12]}-7.image"+ assert (tmp_path / expected_name).read_bytes() == encoded.getvalue()+++def test_eval_resumes_completed_rows_from_its_checkpoint(+ tmp_path: Path, monkeypatch: pytest.MonkeyPatch+) -> None:+ listings = [+ listing(reference="A > One"),+ CatalogListing(+ **{+ **listing(reference="A > Two").__dict__,+ "row_idx": 8,+ }+ ),+ ]+ first_decision = CatalogDecision(+ row_idx=7,+ selected_path="A > One",+ needs_review=False,+ candidate_union=["A > One"],+ text_scores=[1.0],+ image_plus_copy_scores=[1.0],+ verifier_response_id="chat-7",+ )+ output_path = tmp_path / "evaluation.json"+ checkpoint = catalog_agent._evaluation_output(+ listings, {7: first_decision}, offset=7+ )+ catalog_agent._write_evaluation_output(output_path, checkpoint)+ classified_rows: list[int] = []++ def fake_classify(_client: object, source: CatalogListing) -> CatalogDecision:+ classified_rows.append(source.row_idx)+ return CatalogDecision(+ row_idx=source.row_idx,+ selected_path="A > Two",+ needs_review=False,+ candidate_union=["A > Two"],+ text_scores=[1.0],+ image_plus_copy_scores=[1.0],+ verifier_response_id="chat-8",+ )++ @contextmanager+ def fake_client(*, timeout_s: int) -> Any:+ assert timeout_s == 600+ yield object()++ monkeypatch.setattr(catalog_agent, "load_shopify_rows", lambda **_kwargs: listings)+ monkeypatch.setattr(catalog_agent, "classify_listing", fake_classify)+ monkeypatch.setattr(catalog_agent, "create_sie_client", fake_client)+ monkeypatch.setattr(+ sys,+ "argv",+ [+ "eval-catalog-agent",+ "--offset",+ "7",+ "--limit",+ "2",+ "--output",+ str(output_path),+ ],+ )++ catalog_agent.eval_main()++ assert classified_rows == [8]+ saved = json.loads(output_path.read_text())+ assert [result["row_idx"] for result in saved["results"]] == [7, 8]+++def test_predict_honors_the_requested_limit(monkeypatch: pytest.MonkeyPatch) -> None:+ source = listing(reference="A > One")+ loaded_limits: list[int] = []++ def fake_load(*, offset: int, limit: int, cache_dir: Path) -> list[CatalogListing]:+ assert offset == 0+ assert cache_dir == Path(".cache/catalog-agent")+ loaded_limits.append(limit)+ return [source]++ @contextmanager+ def fake_client(*, timeout_s: int) -> Any:+ assert timeout_s == 600+ yield object()++ decision = CatalogDecision(+ row_idx=7,+ selected_path="A > One",+ needs_review=False,+ candidate_union=["A > One"],+ text_scores=[1.0],+ image_plus_copy_scores=[1.0],+ verifier_response_id="chat-7",+ )+ monkeypatch.setattr(catalog_agent, "load_shopify_rows", fake_load)+ monkeypatch.setattr(catalog_agent, "create_sie_client", fake_client)+ monkeypatch.setattr(+ catalog_agent, "classify_listing", lambda _client, _listing: decision+ )+ monkeypatch.setattr(sys, "argv", ["predict-catalog-agent", "--limit", "5"])++ catalog_agent.predict_main()++ assert loaded_limits == [5]diff --git a/examples/taxonomy-classification/uv.lock b/examples/taxonomy-classification/uv.lockindex 857d31af7..7d4d81a64 100644--- a/examples/taxonomy-classification/uv.lock+++ b/examples/taxonomy-classification/uv.lock@@ -460,6 +460,15 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/8a/db/55a262f3606bebcae07cc14095338471ad7c0bbcaa37707e6f0ee49725b7/importlib_resources-7.1.0-py3-none-any.whl", hash = "sha256:1bd7b48b4088eddb2cd16382150bb515af0bd2c70128194392725f82ad2c96a1", size = 37232, upload-time = "2026-04-12T16:36:08.219Z" },]+[[package]]+name = "iniconfig"+version = "2.3.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/72/34/14ca021ce8e5dfedc35312d08ba8bf51fdd999c576889fc2c24cb97f4f10/iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730", size = 20503, upload-time = "2025-10-18T21:55:43.219Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" },+]+[[package]]name = "jsonschema"version = "4.26.0"@@ -792,21 +801,28 @@ wheels = [[[package]]name = "pillow"-version = "11.3.0"+version = "12.3.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/1c/3d/bb7fca845737cf9d7dbde16ed1843984665ff2e0a518f5db43e77ec540b9/pillow-12.3.0.tar.gz", hash = "sha256:3b8182a766685eaa002637e28b4ec8d6b18819a0c71f579bf0dbaa5830297cce", size = 47025035, upload-time = "2026-07-01T11:56:38.965Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/37/bf/fb3ebff8ddcb76aac5a01389251bbbb9519922a9b520d8247c1ca864a25d/pillow-12.3.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ba09209fbe443b4acccebe845d8a138b89a8f4fbaeedd44953490b5315d5e965", size = 5345969, upload-time = "2026-07-01T11:54:06.397Z" },+ { url = "https://files.pythonhosted.org/packages/d8/66/9a386a92561f402389a4fc70c18838bf6d35eb5eb5c6850b4b2dc64f5048/pillow-12.3.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ffd0c5368496f41b0944be820fcb7a838aa6e623d250b01acf2643939c3f99d7", size = 4780323, upload-time = "2026-07-01T11:54:09.351Z" },+ { url = "https://files.pythonhosted.org/packages/25/27/ac8f99618ffd3dde21db0f4d4b1d2ab00c0880595bfd17df103f7f39fd0c/pillow-12.3.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d9c7f76c0673154f044e9d78c8655fb4213f6ca31a836df48b40fe5d187717b9", size = 6266838, upload-time = "2026-07-01T11:54:11.71Z" },+ { url = "https://files.pythonhosted.org/packages/84/21/a35af28dcc61f37ed850a2d64c65c701321dfbf25085e469d5559360cbbf/pillow-12.3.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:78cb2c6865a35ab8ff8b75fd122f6033b92a62c82801110e48ddd6c936a45d91", size = 6940830, upload-time = "2026-07-01T11:54:13.732Z" },+ { url = "https://files.pythonhosted.org/packages/eb/51/8b08617af3ad95e33ce6d7dd2c99ed6c8298f7fb131636303956be022e25/pillow-12.3.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e491916b378fba47242221bb9ead245211b70d504f495d105d17b14a24b4907c", size = 6344383, upload-time = "2026-07-01T11:54:15.756Z" },+ { url = "https://files.pythonhosted.org/packages/1d/72/cf78ac9780bb93c28328f408973845a309d4d145041665f734572ced1b52/pillow-12.3.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:0dd2064cbc55aaec028ef5fbb60fa47bb6c3e7918e07ff17935284b227a9d2df", size = 7052934, upload-time = "2026-07-01T11:54:17.721Z" },+ { url = "https://files.pythonhosted.org/packages/20/20/25e0f4dc178a6bc0696793720055519a0de89e7661dae886992decbd2f81/pillow-12.3.0-cp312-cp312-win32.whl", hash = "sha256:dbce0b29841537a2fa4a214c2bbf14de3587c9680caa9b4e217568472490b28f", size = 6472684, upload-time = "2026-07-01T11:54:19.839Z" },+ { url = "https://files.pythonhosted.org/packages/45/89/da2f7971a317f83d807fdd4065c0af40208e59e692cc43d315a71a0e96d1/pillow-12.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:a2b55dd6b2a4c4b7d87ffa56bdb33fdc5fdb9a462173861a7bc097f17d91cb09", size = 7227137, upload-time = "2026-07-01T11:54:22.025Z" },+ { url = "https://files.pythonhosted.org/packages/de/47/4845a0a6c0dbf1db8456bd9fc791f13c5ced7ced20606d08a0aacfd25b49/pillow-12.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:331b624368d4f1d069149002f25f44bc61c8919ce8ddb3c45bdad8f6e2d89510", size = 2568267, upload-time = "2026-07-01T11:54:24.051Z" },+]++[[package]]+name = "pluggy"+version = "1.6.0"source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/f3/0d/d0d6dea55cd152ce3d6767bb38a8fc10e33796ba4ba210cbab9354b6d238/pillow-11.3.0.tar.gz", hash = "sha256:3828ee7586cd0b2091b6209e5ad53e20d0649bbe87164a459d0676e035e8f523", size = 47113069, upload-time = "2025-07-01T09:16:30.666Z" }+sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload-time = "2025-05-15T12:30:07.975Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/40/fe/1bc9b3ee13f68487a99ac9529968035cca2f0a51ec36892060edcc51d06a/pillow-11.3.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:fdae223722da47b024b867c1ea0be64e0df702c5e0a60e27daad39bf960dd1e4", size = 5278800, upload-time = "2025-07-01T09:14:17.648Z" },- { url = "https://files.pythonhosted.org/packages/2c/32/7e2ac19b5713657384cec55f89065fb306b06af008cfd87e572035b27119/pillow-11.3.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:921bd305b10e82b4d1f5e802b6850677f965d8394203d182f078873851dada69", size = 4686296, upload-time = "2025-07-01T09:14:19.828Z" },- { url = "https://files.pythonhosted.org/packages/8e/1e/b9e12bbe6e4c2220effebc09ea0923a07a6da1e1f1bfbc8d7d29a01ce32b/pillow-11.3.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:eb76541cba2f958032d79d143b98a3a6b3ea87f0959bbe256c0b5e416599fd5d", size = 5871726, upload-time = "2025-07-03T13:10:04.448Z" },- { url = "https://files.pythonhosted.org/packages/8d/33/e9200d2bd7ba00dc3ddb78df1198a6e80d7669cce6c2bdbeb2530a74ec58/pillow-11.3.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:67172f2944ebba3d4a7b54f2e95c786a3a50c21b88456329314caaa28cda70f6", size = 7644652, upload-time = "2025-07-03T13:10:10.391Z" },- { url = "https://files.pythonhosted.org/packages/41/f1/6f2427a26fc683e00d985bc391bdd76d8dd4e92fac33d841127eb8fb2313/pillow-11.3.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:97f07ed9f56a3b9b5f49d3661dc9607484e85c67e27f3e8be2c7d28ca032fec7", size = 5977787, upload-time = "2025-07-01T09:14:21.63Z" },- { url = "https://files.pythonhosted.org/packages/e4/c9/06dd4a38974e24f932ff5f98ea3c546ce3f8c995d3f0985f8e5ba48bba19/pillow-11.3.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:676b2815362456b5b3216b4fd5bd89d362100dc6f4945154ff172e206a22c024", size = 6645236, upload-time = "2025-07-01T09:14:23.321Z" },- { url = "https://files.pythonhosted.org/packages/40/e7/848f69fb79843b3d91241bad658e9c14f39a32f71a301bcd1d139416d1be/pillow-11.3.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3e184b2f26ff146363dd07bde8b711833d7b0202e27d13540bfe2e35a323a809", size = 6086950, upload-time = "2025-07-01T09:14:25.237Z" },- { url = "https://files.pythonhosted.org/packages/0b/1a/7cff92e695a2a29ac1958c2a0fe4c0b2393b60aac13b04a4fe2735cad52d/pillow-11.3.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:6be31e3fc9a621e071bc17bb7de63b85cbe0bfae91bb0363c893cbe67247780d", size = 6723358, upload-time = "2025-07-01T09:14:27.053Z" },- { url = "https://files.pythonhosted.org/packages/26/7d/73699ad77895f69edff76b0f332acc3d497f22f5d75e5360f78cbcaff248/pillow-11.3.0-cp312-cp312-win32.whl", hash = "sha256:7b161756381f0918e05e7cb8a371fff367e807770f8fe92ecb20d905d0e1c149", size = 6275079, upload-time = "2025-07-01T09:14:30.104Z" },- { url = "https://files.pythonhosted.org/packages/8c/ce/e7dfc873bdd9828f3b6e5c2bbb74e47a98ec23cc5c74fc4e54462f0d9204/pillow-11.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:a6444696fce635783440b7f7a9fc24b3ad10a9ea3f0ab66c5905be1c19ccf17d", size = 6986324, upload-time = "2025-07-01T09:14:31.899Z" },- { url = "https://files.pythonhosted.org/packages/16/8f/b13447d1bf0b1f7467ce7d86f6e6edf66c0ad7cf44cf5c87a37f9bed9936/pillow-11.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:2aceea54f957dd4448264f9bf40875da0415c83eb85f55069d89c0ed436e3542", size = 2423067, upload-time = "2025-07-01T09:14:33.709Z" },+ { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" },][[package]]@@ -994,6 +1010,35 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/bd/24/12818598c362d7f300f18e74db45963dbcb85150324092410c8b49405e42/pyproject_hooks-1.2.0-py3-none-any.whl", hash = "sha256:9e5c6bfa8dcc30091c74b0cf803c81fdd29d94f01992a7707bc97babb1141913", size = 10216, upload-time = "2024-09-29T09:24:11.978Z" },]+[[package]]+name = "pytest"+version = "9.1.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "sys_platform == 'win32'" },+ { name = "iniconfig" },+ { name = "packaging" },+ { name = "pluggy" },+ { name = "pygments" },+]+sdist = { url = "https://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz", hash = "sha256:1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313", size = 1636369, upload-time = "2026-06-19T10:58:32.857Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl", hash = "sha256:37a86b45efb9a47a61a36449063e8e18d0cab3161329fc099eb21783169c4f0c", size = 386536, upload-time = "2026-06-19T10:58:31.347Z" },+]++[[package]]+name = "pytest-asyncio"+version = "1.4.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pytest" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/43/7c/d36d04db312ecf4298932ef77e6e4a9e8ad017906e24e34f0b0c361a2473/pytest_asyncio-1.4.0.tar.gz", hash = "sha256:c6c0d2259945122819f171a32ecea2c349ead889ee28176caaf492143424be42", size = 58514, upload-time = "2026-05-26T09:56:04.083Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/03/e2/08a497ef684b88559c9cc5f4ad53a37e7b99e727094a86d6ea32536d5d3c/pytest_asyncio-1.4.0-py3-none-any.whl", hash = "sha256:933ca923a23075a87fb7070c0ec272a6848489824d887c85c812670932835aa1", size = 16930, upload-time = "2026-05-26T09:56:02.576Z" },+]+[[package]]name = "python-dateutil"version = "2.9.0.post0"@@ -1147,7 +1192,7 @@ wheels = [[[package]]name = "sie-sdk"-version = "0.2.0"+version = "0.6.24"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "aiohttp" },@@ -1159,9 +1204,9 @@ dependencies = [{ name = "pyyaml" },{ name = "websockets" },]-sdist = { url = "https://files.pythonhosted.org/packages/93/4b/3a2b4ea4a4979383671d342eec3c1358b49923c407d9681e9f60f6dcac94/sie_sdk-0.2.0.tar.gz", hash = "sha256:08925c9bcb666f460bd63bf4e7384250acbde9d0d90433d08e6b3627319fc266", size = 74302, upload-time = "2026-04-17T10:59:28.546Z" }+sdist = { url = "https://files.pythonhosted.org/packages/5f/06/d0aeec2c8b8d4437d9ad26a6d613876f777bc94ad8e66ddeec2b9a145378/sie_sdk-0.6.24.tar.gz", hash = "sha256:83feaab4ecf9779eb51c63b5881946ea1cad3d57b349f3d0c6c98151a6d67c34", size = 198889, upload-time = "2026-07-26T03:17:48.064Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/c5/47/b7c611cc8cde927e179c7d60be864248c48ba2dd2f8a4ef5053d06f0eedc/sie_sdk-0.2.0-py3-none-any.whl", hash = "sha256:67060efd3b5b288ffd8cd30ec9e693323cecb97cbc48b0320e2ad2066527ddcd", size = 60711, upload-time = "2026-04-17T10:59:26.926Z" },+ { url = "https://files.pythonhosted.org/packages/e0/58/aa2d5a52ae04188e8c5106c76594ed5d846b79c14a0e953e8f65cb730856/sie_sdk-0.6.24-py3-none-any.whl", hash = "sha256:4c1765479d1739403de5d75f6291700416335a915319f188d09cff49d84089fc", size = 131161, upload-time = "2026-07-26T03:17:46.419Z" },][[package]]@@ -1191,6 +1236,7 @@ version = "0.1.0"source = { editable = "." }dependencies = [{ name = "chromadb" },+ { name = "pillow" },{ name = "polars" },{ name = "python-dotenv" },{ name = "sie-sdk" },@@ -1199,20 +1245,27 @@ dependencies = [[package.dev-dependencies]dev = [+ { name = "pytest" },+ { name = "pytest-asyncio" },{ name = "ruff" },][package.metadata]requires-dist = [{ name = "chromadb", specifier = ">=1.5.9" },+ { name = "pillow", specifier = ">=12.2.0" },{ name = "polars", specifier = ">=1.40.0" },{ name = "python-dotenv", specifier = ">=1.2.2" },- { name = "sie-sdk", specifier = "==0.2.0" },+ { name = "sie-sdk", specifier = "==0.6.24" },{ name = "tqdm", specifier = ">=4.67.3" },][package.metadata.requires-dev]-dev = [{ name = "ruff", specifier = ">=0.11.0" }]+dev = [+ { name = "pytest", specifier = ">=8.0.0" },+ { name = "pytest-asyncio" },+ { name = "ruff", specifier = ">=0.11.0" },+][[package]]name = "tenacity"