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
release: v0.3.4
github-actions[bot]ca1e349f80dd
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f52426299..c44930ce2 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,5 +1,18 @@# Changelog+## v0.3.4++- chore(main): release 0.3.4+- fix(sdk): widen sie-sdk requires-python to >=3.12+- extend: GCP bucket provisioning, custom IAM roles, fix path mismatch+- fix(gateway): tolerate config conflicts in bootstrap, gate on sie-config ready+- feat(infra): default payload store to model-cache bucket /payloads+- fix(deps): pin opencv-python-headless to drop X11 runtime deps+- fix(chart): default workers to shared queue pool+- feat(ts-sdk): add ExtractOptions.adapterOptions for adapter knobs+- test(sdks): cover handle_error dispatch and tighten InputTooLongError tests+- feat(sdks): add typed InputTooLongError for extract 400 INPUT_TOO_LONG+## v0.3.3- chore(main): release 0.3.3diff --git a/deploy/helm/sie-cluster/Chart.yaml b/deploy/helm/sie-cluster/Chart.yamlindex 64ae6de29..8be276312 100644--- a/deploy/helm/sie-cluster/Chart.yaml+++ b/deploy/helm/sie-cluster/Chart.yaml@@ -4,8 +4,8 @@ description: >-SIE (Search Inference Engine) Kubernetes deployment with gateway, GPU workers,and observabilitytype: application-version: 0.3.3 # x-release-please-version-appVersion: v0.3.3 # x-release-please-version+version: 0.3.4 # x-release-please-version+appVersion: v0.3.4 # x-release-please-versionkeywords:- inference- embeddingdiff --git a/deploy/helm/sie-cluster/templates/_helpers.tpl b/deploy/helm/sie-cluster/templates/_helpers.tplindex 63fe1575f..663538f94 100644--- a/deploy/helm/sie-cluster/templates/_helpers.tpl+++ b/deploy/helm/sie-cluster/templates/_helpers.tpl@@ -281,3 +281,32 @@ KEDA apply hook: ServiceAccount name{{- define "sie-cluster.keda.apply.serviceAccountName" -}}{{- printf "%s-keda-apply" (include "sie-cluster.fullname" . | trunc 51 | trimSuffix "-") }}{{- end }}++{{/*+Resolve the effective payload-store URL.++Resolution order:+ 1. .Values.payloadStore.url set explicitly -> use it verbatim.+ 2. .Values.workers.common.clusterCache.enabled and .url set -> derive a+ sibling /payloads path at the same bucket root. Terraform exposes the+ cache URL as "<scheme>://<bucket>/models" by convention, so the+ auto-derivation strips a trailing "/models" segment before appending+ "/payloads". The resulting layout is:+ <bucket>/models/... weights (managed by sie-admin cache)+ <bucket>/payloads/... large work-item refs (managed by gateway)+ These siblings live at the bucket root, which is what the workload+ IAM grants are scoped to in both the AWS and GCP terraform modules.+ 3. Otherwise -> empty string (payload store is off, no env vars rendered).++Templates that consume this should treat a non-empty result as "payload+store enabled" and an empty result as "off".+*/}}+{{- define "sie-cluster.payloadStoreUrl" -}}+{{- if .Values.payloadStore.url -}}+{{- .Values.payloadStore.url -}}+{{- else if and .Values.workers.common.clusterCache.enabled .Values.workers.common.clusterCache.url -}}+{{- $cache := trimSuffix "/" .Values.workers.common.clusterCache.url -}}+{{- $base := trimSuffix "/models" $cache -}}+{{- printf "%s/payloads" $base -}}+{{- end -}}+{{- end }}diff --git a/deploy/helm/sie-cluster/templates/gateway-deployment.yaml b/deploy/helm/sie-cluster/templates/gateway-deployment.yamlindex a5b5e7f1d..c9ef68f43 100644--- a/deploy/helm/sie-cluster/templates/gateway-deployment.yaml+++ b/deploy/helm/sie-cluster/templates/gateway-deployment.yaml@@ -32,9 +32,14 @@{{- if not .Values.nats.config.jetstream.enabled }}{{- fail "clusterRouting=queue requires nats.config.jetstream.enabled=true" }}{{- end }}-{{- if .Values.payloadStore.enabled }}- {{- if not (or (hasPrefix "s3://" (default "" .Values.payloadStore.url)) (hasPrefix "gs://" (default "" .Values.payloadStore.url))) }}- {{- fail "payloadStore.url must be an object-store URL (s3://bucket/prefix or gs://bucket/prefix), not a local path" }}+{{- /* Resolve the effective payload-store URL once (helper applies the+ auto-derivation: explicit url > clusterCache.url + /payloads > empty).+ The chart treats a non-empty resolved URL as "payload store enabled"+ and rejects local paths so misconfigured queue clusters fail fast. */}}+{{- $payloadStoreUrl := include "sie-cluster.payloadStoreUrl" . }}+{{- if $payloadStoreUrl }}+ {{- if not (or (hasPrefix "s3://" $payloadStoreUrl) (hasPrefix "gs://" $payloadStoreUrl)) }}+ {{- fail (printf "payloadStore.url must be an object-store URL (s3://bucket/prefix or gs://bucket/prefix), not a local path; got %q" $payloadStoreUrl) }}{{- end }}{{- end }}apiVersion: apps/v1@@ -60,6 +65,50 @@ spec:spec:{{- include "sie-cluster.imagePullSecrets" . | nindent 6 }}serviceAccountName: {{ include "sie-cluster.serviceAccountName" . }}+ {{- if and .Values.config.enabled .Values.gateway.waitForConfig.enabled }}+ # Gate the gateway on sie-config readiness before its cold-start+ # bootstrap fires. Without this, during a rolling chart upgrade the+ # gateway pod can come up against the OLD sie-config revision, cache+ # its export, and then later hit an append-only conflict when the+ # NEW sie-config publishes the same model with a changed profile+ # config. The init container loops on sie-config's /readyz so that+ # by the time the gateway boots, the control plane is the new+ # revision. The gateway's own bootstrap path (+ # state::config_bootstrap::add_model_config_authoritative) survives+ # the race even when this gate is bypassed; this is defense in depth.+ initContainers:+ - name: wait-for-sie-config+ image: {{ .Values.gateway.waitForConfig.image | default "busybox:1.37.0" | quote }}+ imagePullPolicy: IfNotPresent+ env:+ - name: SIE_CONFIG_READYZ_URL+ value: "http://{{ include "sie-cluster.config.serviceName" . }}:{{ .Values.config.service.port | default 8080 }}/readyz"+ - name: SIE_CONFIG_WAIT_TIMEOUT_SECONDS+ value: {{ .Values.gateway.waitForConfig.timeoutSeconds | default 300 | quote }}+ command:+ - sh+ - -c+ - |+ set -eu+ deadline=$(( $(date +%s) + SIE_CONFIG_WAIT_TIMEOUT_SECONDS ))+ echo "waiting on ${SIE_CONFIG_READYZ_URL} (timeout ${SIE_CONFIG_WAIT_TIMEOUT_SECONDS}s)"+ while [ "$(date +%s)" -lt "$deadline" ]; do+ if wget -q -O /dev/null --spider "${SIE_CONFIG_READYZ_URL}"; then+ echo "sie-config is ready"+ exit 0+ fi+ sleep 2+ done+ echo "timed out waiting for sie-config readyz" >&2+ exit 1+ resources:+ requests:+ cpu: 10m+ memory: 16Mi+ limits:+ cpu: 100m+ memory: 32Mi+ {{- end }}containers:- name: gatewayimage: {{ include "sie-cluster.gateway.image" . }}@@ -129,9 +178,9 @@ spec:key: {{ .Values.config.auth.adminTokenSecretKey }}{{- end }}{{- end }}- {{- if .Values.payloadStore.enabled }}+ {{- if $payloadStoreUrl }}- name: SIE_PAYLOAD_STORE_URL- value: {{ .Values.payloadStore.url | quote }}+ value: {{ $payloadStoreUrl | quote }}- name: SIE_PAYLOAD_STORE_TTLvalue: {{ .Values.payloadStore.ttlSeconds | quote }}{{- end }}diff --git a/deploy/helm/sie-cluster/templates/worker-statefulset.yaml b/deploy/helm/sie-cluster/templates/worker-statefulset.yamlindex 4275b846e..9388de76e 100644--- a/deploy/helm/sie-cluster/templates/worker-statefulset.yaml+++ b/deploy/helm/sie-cluster/templates/worker-statefulset.yaml@@ -4,6 +4,7 @@{{- $bundle := default $root.Values.workers.common.bundle $pool.bundle }}{{- $platform := default $root.Values.workers.common.platform $pool.platform }}{{- $machineProfile := default $pool.gpuType $pool.machineProfile }}+{{- $queuePool := default (default "default" $root.Values.workers.common.queuePool) $pool.queuePool }}---apiVersion: apps/v1kind: StatefulSet@@ -116,7 +117,7 @@ spec:- name: SIE_CLUSTER_ROUTINGvalue: {{ $root.Values.clusterRouting | quote }}- name: SIE_POOL- value: {{ $poolName | quote }}+ value: {{ $queuePool | quote }}{{- with $root.Values.queueRouting }}- name: SIE_NAK_DELAY_Svalue: {{ .nakDelaySec | default 5 | quote }}@@ -128,9 +129,10 @@ spec:value: {{ .natsFetchBudget | default 64 | quote }}{{- end }}{{- end }}- {{- if $root.Values.payloadStore.enabled }}+ {{- $payloadStoreUrl := include "sie-cluster.payloadStoreUrl" $root }}+ {{- if $payloadStoreUrl }}- name: SIE_PAYLOAD_STORE_URL- value: {{ $root.Values.payloadStore.url | quote }}+ value: {{ $payloadStoreUrl | quote }}{{- end }}# Telemetry{{- if and $root.Values.telemetry (hasKey $root.Values.telemetry "enabled") (not $root.Values.telemetry.enabled) }}diff --git a/deploy/helm/sie-cluster/values.yaml b/deploy/helm/sie-cluster/values.yamlindex 769821b33..04c6b1321 100644--- a/deploy/helm/sie-cluster/values.yaml+++ b/deploy/helm/sie-cluster/values.yaml@@ -157,6 +157,19 @@ gateway:port: 8080annotations: {}+ # -- Block the gateway pod on sie-config readiness before it starts the+ # cold-start bootstrap. Prevents the rolling-upgrade race where the+ # gateway boots against the OLD sie-config revision and caches a stale+ # profile config; on the next poll tick the NEW sie-config's export+ # would otherwise hit the registry's append-only check and wedge the+ # gateway (no models routable until manual restart).+ # The gateway's authoritative apply path also survives the race, so+ # disabling this gate is supported (defense in depth).+ waitForConfig:+ enabled: true+ timeoutSeconds: 300+ image: busybox:1.37.0+# -- Pod annotationspodAnnotations: {}@@ -303,6 +316,12 @@ workers:# -- Bundle to use (default)bundle: default+ # -- Logical queue pool consumed by workers in queue-routing mode.+ # Defaults to "default" so Helm WorkerGroups serve unpinned SDK traffic.+ # Override per worker pool with workers.pools.<name>.queuePool only for+ # explicit isolation pools targeted via X-SIE-Pool or gpu="pool/profile".+ queuePool: default+# -- Runtime class for workers (e.g., "nvidia" to enable GPU runtime)runtimeClassName: ""@@ -381,8 +400,9 @@ workers:failureThreshold: 3# -- Worker pools (one StatefulSet per pool)- # Each pool creates a WorkerGroup: one StatefulSet + one pre-pull DaemonSet.- # Pool naming convention: <machineProfile> (e.g. l4, a100-40gb, cpu).+ # Each map entry creates a WorkerGroup: one StatefulSet + one pre-pull DaemonSet.+ # The map key names the Kubernetes WorkerGroup, not the SDK logical pool.+ # WorkerGroup naming convention: <machineProfile> (e.g. l4, a100-40gb, cpu).# All pools scale to zero by default — enable the ones you need.pools:@@ -772,11 +792,30 @@ queueRouting:# gateway and worker pods. Use s3://bucket/prefix or gs://bucket/prefix.# Local filesystem paths (e.g., /tmp/payloads) will NOT work in queue mode# because gateway and worker pods have different filesystems.+#+# Auto-derivation: when workers.common.clusterCache.enabled=true and+# workers.common.clusterCache.url is set, the chart enables the payload store+# automatically and points it at the sibling /payloads prefix of the same+# bucket. By convention the terraform modules expose the cache URL as+# "<scheme>://<bucket>/models", and the chart strips a trailing "/models"+# segment before appending "/payloads" so the two features live at top-level+# sibling prefixes:+# <bucket>/models/... model weights (managed by sie-admin)+# <bucket>/payloads/... large work-item refs (managed by gateway)+# The AWS and GCP terraform modules scope their workload IAM grants to these+# top-level prefixes, so the auto-derived URL aligns with the permissions+# out of the box. Set payloadStore.url explicitly only to override the+# default (e.g., a separate bucket); leaving it empty is the right call+# for most clusters.payloadStore:- # -- Enable payload store for large item offload.+ # -- DEPRECATED, kept for backward compatibility only. The chart no longer+ # reads this field; the payload store is enabled whenever the effective URL+ # (see auto-derivation rules above) resolves to a non-empty value. Set+ # payloadStore.url to "" and clusterCache.enabled to false to disable.enabled: false# -- Payload store URL. Must be an S3 or GCS URL (s3://bucket/prefix or gs://bucket/prefix).# Local paths are rejected when clusterRouting=queue (see gateway-deployment.yaml validation).+ # Leave empty to auto-derive from workers.common.clusterCache.url (recommended).url: ""# -- TTL for stored payloads in seconds.# For S3: configure via S3 lifecycle rules on the bucket.diff --git a/integrations/sie_chroma/pyproject.toml b/integrations/sie_chroma/pyproject.tomlindex 30114bba1..0a19c3c20 100644--- a/integrations/sie_chroma/pyproject.toml+++ b/integrations/sie_chroma/pyproject.toml@@ -1,6 +1,6 @@[project]name = "sie-chroma"-version = "0.3.3"+version = "0.3.4"description = "SIE integration for ChromaDB"readme = "README.md"requires-python = ">=3.10"diff --git a/integrations/sie_crewai/pyproject.toml b/integrations/sie_crewai/pyproject.tomlindex 2f9e9e12d..437c623a5 100644--- a/integrations/sie_crewai/pyproject.toml+++ b/integrations/sie_crewai/pyproject.toml@@ -1,6 +1,6 @@[project]name = "sie-crewai"-version = "0.3.3"+version = "0.3.4"description = "SIE integration for CrewAI"readme = "README.md"requires-python = ">=3.10"diff --git a/integrations/sie_dspy/pyproject.toml b/integrations/sie_dspy/pyproject.tomlindex d4e66ad7a..aaeffa433 100644--- a/integrations/sie_dspy/pyproject.toml+++ b/integrations/sie_dspy/pyproject.toml@@ -1,6 +1,6 @@[project]name = "sie-dspy"-version = "0.3.3"+version = "0.3.4"description = "SIE integration for DSPy"readme = "README.md"requires-python = ">=3.10"diff --git a/integrations/sie_haystack/pyproject.toml b/integrations/sie_haystack/pyproject.tomlindex 2302b8fcf..26ec2c310 100644--- a/integrations/sie_haystack/pyproject.toml+++ b/integrations/sie_haystack/pyproject.toml@@ -1,6 +1,6 @@[project]name = "sie-haystack"-version = "0.3.3"+version = "0.3.4"description = "SIE integration for Haystack"readme = "README.md"requires-python = ">=3.10"diff --git a/integrations/sie_lancedb/pyproject.toml b/integrations/sie_lancedb/pyproject.tomlindex cec9522c5..6bdf7ca59 100644--- a/integrations/sie_lancedb/pyproject.toml+++ b/integrations/sie_lancedb/pyproject.toml@@ -1,6 +1,6 @@[project]name = "sie-lancedb"-version = "0.3.3"+version = "0.3.4"description = "SIE integration for LanceDB"requires-python = ">=3.12"dependencies = [diff --git a/integrations/sie_langchain/pyproject.toml b/integrations/sie_langchain/pyproject.tomlindex 16624bed2..8483a537c 100644--- a/integrations/sie_langchain/pyproject.toml+++ b/integrations/sie_langchain/pyproject.toml@@ -1,6 +1,6 @@[project]name = "sie-langchain"-version = "0.3.3"+version = "0.3.4"description = "SIE integration for LangChain"requires-python = ">=3.10"dependencies = [diff --git a/integrations/sie_llamaindex/pyproject.toml b/integrations/sie_llamaindex/pyproject.tomlindex 7bc1fb9e3..22f62d8f1 100644--- a/integrations/sie_llamaindex/pyproject.toml+++ b/integrations/sie_llamaindex/pyproject.toml@@ -1,6 +1,6 @@[project]name = "sie-llamaindex"-version = "0.3.3"+version = "0.3.4"description = "SIE integration for LlamaIndex"requires-python = ">=3.10"dependencies = [diff --git a/integrations/sie_qdrant/pyproject.toml b/integrations/sie_qdrant/pyproject.tomlindex df3c7f445..a8aa42aae 100644--- a/integrations/sie_qdrant/pyproject.toml+++ b/integrations/sie_qdrant/pyproject.toml@@ -1,6 +1,6 @@[project]name = "sie-qdrant"-version = "0.3.3"+version = "0.3.4"description = "SIE integration for Qdrant"readme = "README.md"requires-python = ">=3.10"diff --git a/integrations/sie_ts_chroma/package.json b/integrations/sie_ts_chroma/package.jsonindex bf91fabe4..854bfb83b 100644--- a/integrations/sie_ts_chroma/package.json+++ b/integrations/sie_ts_chroma/package.json@@ -1,6 +1,6 @@{"name": "@superlinked/sie-chroma",- "version": "0.3.3",+ "version": "0.3.4","description": "SIE embedding function for ChromaDB","type": "module","main": "./dist/index.cjs",diff --git a/integrations/sie_ts_lancedb/package.json b/integrations/sie_ts_lancedb/package.jsonindex 4094dc46b..5507c5edb 100644--- a/integrations/sie_ts_lancedb/package.json+++ b/integrations/sie_ts_lancedb/package.json@@ -1,6 +1,6 @@{"name": "@superlinked/sie-lancedb",- "version": "0.3.3",+ "version": "0.3.4","description": "SIE embedding function and reranker for LanceDB","type": "module","main": "./dist/index.cjs",diff --git a/integrations/sie_ts_langchain/package.json b/integrations/sie_ts_langchain/package.jsonindex 53c292fc3..875f73d8c 100644--- a/integrations/sie_ts_langchain/package.json+++ b/integrations/sie_ts_langchain/package.json@@ -1,6 +1,6 @@{"name": "@superlinked/sie-langchain",- "version": "0.3.3",+ "version": "0.3.4","description": "SIE embeddings integration for LangChain.js","type": "module","main": "./dist/index.cjs",diff --git a/integrations/sie_ts_llamaindex/package.json b/integrations/sie_ts_llamaindex/package.jsonindex b5cf9ea0b..97ad3d1ab 100644--- a/integrations/sie_ts_llamaindex/package.json+++ b/integrations/sie_ts_llamaindex/package.json@@ -1,6 +1,6 @@{"name": "@superlinked/sie-llamaindex",- "version": "0.3.3",+ "version": "0.3.4","description": "SIE embeddings integration for LlamaIndex.TS","type": "module","main": "./dist/index.cjs",diff --git a/integrations/sie_weaviate/pyproject.toml b/integrations/sie_weaviate/pyproject.tomlindex 5a25d687f..e939688be 100644--- a/integrations/sie_weaviate/pyproject.toml+++ b/integrations/sie_weaviate/pyproject.toml@@ -1,6 +1,6 @@[project]name = "sie-weaviate"-version = "0.3.3"+version = "0.3.4"description = "SIE integration for Weaviate"readme = "README.md"requires-python = ">=3.10"diff --git a/packages/sie_gateway/Cargo.lock b/packages/sie_gateway/Cargo.lockindex 98c8a1b9b..3b0961170 100644--- a/packages/sie_gateway/Cargo.lock+++ b/packages/sie_gateway/Cargo.lock@@ -2774,7 +2774,7 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"[[package]]name = "sie-gateway"-version = "0.3.3"+version = "0.3.4"dependencies = ["arc-swap","async-nats",diff --git a/packages/sie_gateway/Cargo.toml b/packages/sie_gateway/Cargo.tomlindex b98efecc0..230a29c27 100644--- a/packages/sie_gateway/Cargo.toml+++ b/packages/sie_gateway/Cargo.toml@@ -1,6 +1,6 @@[package]name = "sie-gateway"-version = "0.3.3"+version = "0.3.4"edition = "2021"publish = falsediff --git a/packages/sie_gateway/openapi.json b/packages/sie_gateway/openapi.jsonindex 23f850823..508eb0c1b 100644--- a/packages/sie_gateway/openapi.json+++ b/packages/sie_gateway/openapi.json@@ -1786,7 +1786,7 @@"url": "https://www.apache.org/licenses/LICENSE-2.0.html"},"title": "SIE Gateway",- "version": "0.3.3"+ "version": "0.3.4"},"openapi": "3.1.0","paths": {diff --git a/packages/sie_gateway/src/state/config_bootstrap.rs b/packages/sie_gateway/src/state/config_bootstrap.rsindex ce7a65066..b533441a0 100644--- a/packages/sie_gateway/src/state/config_bootstrap.rs+++ b/packages/sie_gateway/src/state/config_bootstrap.rs@@ -17,8 +17,17 @@//! matches `sie-config`'s view.//!//! Live updates after bootstrap arrive via NATS deltas-//! (`sie.config.models.*`), which the `NatsManager` feeds into the same-//! `ModelRegistry::add_model_config` path used here.+//! (`sie.config.models.*`), which the `NatsManager` feeds into+//! `ModelRegistry::add_model_config` (append-only: a profile that already+//! exists with a different `CanonicalProfile` is rejected, so single-epoch+//! duplicate publishes are caught). The bootstrap and epoch-poller+//! catch-up paths here use the parallel `add_model_config_authoritative`+//! entry point instead, which overrides any conflicting profile and logs+//! a `warn!`. This is required so that a control-plane schema change+//! between the gateway's cold-start fetch (against an old `sie-config`+//! revision) and the next poll tick (after `sie-config` has rolled to a+//! new revision) doesn't lock the registry into a stale, unrecoverable+//! state.//!//! Failure handling://!@@ -190,8 +199,11 @@ pub struct BootstrapClient {/// Outcome of a single `BootstrapClient::bootstrap` call.////// `epoch` is whatever `sie-config` reported in the snapshot envelope.-/// `applied` counts configs that produced at least one new profile;-/// no-op replays (everything already matches) are not counted.+/// `applied` counts configs the registry accepted: new entries, profiles+/// the authoritative path overrode, and no-op replays where everything+/// already matched all count. The shared meaning is "this export entry is+/// reconciled against the current registry state", which is what the+/// epoch-advance gate needs./// `failed` counts configs that could not be parsed or whose apply/// returned a registry-level error. `total` is the size of the incoming/// `models` list. `bootstrap_once` refuses to advance `ConfigEpoch` when@@ -389,12 +401,23 @@ impl BootstrapClient {let mut failed = 0usize;for model in snapshot.models {match parse_exported_model(&model) {- Ok(Some(config)) => match registry.add_model_config(config) {- Ok((created, _, _)) if !created.is_empty() => {- applied += 1;- }+ // Bootstrap uses the AUTHORITATIVE apply path: when an+ // existing profile config diverges from the export, the+ // registry overrides the stored config (with a warn log)+ // instead of returning an append-only conflict. The append-+ // only invariant is still enforced on the NATS pub/sub+ // delta path in `nats::manager::NatsManager`, so within a+ // single epoch duplicate publishes are still caught. See+ // `ModelRegistry::add_model_config_authoritative`.+ Ok(Some(config)) => match registry.add_model_config_authoritative(config) {Ok(_) => {- tracing::debug!(model = %model.model_id, "export entry already current");+ // Count any Ok as applied: created, overridden, or+ // pure no-op replay all mean "registry accepted the+ // entry against the current bundle/adapter set". A+ // no-op replay still confirms the entry is current,+ // which is what `applied == total` is meant to+ // signal to the epoch-advance gate.+ applied += 1;}Err(e) => {warn!(diff --git a/packages/sie_gateway/src/state/model_registry.rs b/packages/sie_gateway/src/state/model_registry.rsindex 5b59ca7f3..10f241eef 100644--- a/packages/sie_gateway/src/state/model_registry.rs+++ b/packages/sie_gateway/src/state/model_registry.rs@@ -593,6 +593,45 @@ impl ModelRegistry {}pub fn add_model_config(&self, config: ModelConfig) -> Result<AddModelConfigOutcome, String> {+ self.add_model_config_inner(config, false)+ }++ /// Like `add_model_config`, but treats the caller as the authoritative+ /// view of the current epoch: when a profile already exists with a+ /// different `CanonicalProfile`, the stored config is **overwritten**+ /// with a `warn!` log instead of returning an append-only conflict+ /// error.+ ///+ /// This is the path the cold-start bootstrap (`state::config_bootstrap`)+ /// and the epoch poller's catch-up re-export use. The append-only+ /// invariant on the NATS pub/sub delta path+ /// (`nats::manager::NatsManager::apply_notification`) is still enforced+ /// via the plain `add_model_config`, so single-epoch duplicate publishes+ /// are still caught.+ ///+ /// Why: `sie-config` is the source of truth for the current epoch. If+ /// the gateway pod started against an old `sie-config` revision and+ /// cached a stale profile config (e.g. v0.3.2 had nemotron-8b on+ /// `sglang`), and `sie-config` then rolled to a new revision that+ /// changed that same profile (e.g. v0.3.3 swapped it for+ /// `pytorch_embedding`), the next bootstrap re-fetch hits the+ /// append-only check and the entire export refuses to apply (failed=1+ /// blocks epoch advance), the poller retries forever, and routing wedges+ /// for every model. The authoritative path heals that on the next poll+ /// tick by accepting the new config as the latest word from the control+ /// plane.+ pub fn add_model_config_authoritative(+ &self,+ config: ModelConfig,+ ) -> Result<AddModelConfigOutcome, String> {+ self.add_model_config_inner(config, true)+ }++ fn add_model_config_inner(+ &self,+ config: ModelConfig,+ authoritative: bool,+ ) -> Result<AddModelConfigOutcome, String> {// Serialize mutators. `ArcSwap` gives us lock-free reads but no CAS// on the write path — without this lock, two concurrent callers can// both `load()` the same base snapshot, both build a derived copy@@ -652,18 +691,45 @@ impl ModelRegistry {let mut created_profiles: Vec<String> = Vec::new();let mut skipped_profiles: Vec<String> = Vec::new();+ let mut overridden_profiles: Vec<String> = Vec::new();if let Some(existing) = snap.models.get_mut(sie_id) {- // Append-only: add new profiles, skip identical, reject conflicts+ // Append-only by default: add new profiles, skip identical,+ // reject conflicts. When `authoritative` is true (bootstrap /+ // epoch-poll catch-up), a conflicting profile is OVERWRITTEN+ // with a warn so the control plane's latest word wins.for (profile_name, profile) in &config.profiles {if existing.profile_names.contains(profile_name) {let incoming = CanonicalProfile::from_profile(profile);if let Some(stored) = existing.profile_configs.get(profile_name) {if stored != &incoming {- return Err(format!(- "Profile '{}' on model '{}' already exists with different config (append-only)",- profile_name, sie_id- ));+ if !authoritative {+ return Err(format!(+ "Profile '{}' on model '{}' already exists with different config (append-only)",+ profile_name, sie_id+ ));+ }+ warn!(+ model = %sie_id,+ profile = %profile_name,+ old_adapter_path = ?stored.adapter_path,+ new_adapter_path = ?incoming.adapter_path,+ old_max_batch_tokens = ?stored.max_batch_tokens,+ new_max_batch_tokens = ?incoming.max_batch_tokens,+ old_compute_precision = ?stored.compute_precision,+ new_compute_precision = ?incoming.compute_precision,+ "overriding existing profile config from authoritative source (sie-config); \+ likely a control-plane schema change between bootstrap and catch-up",+ );+ overridden_profiles.push(profile_name.clone());+ if let Some(ref adapter_path) = profile.adapter_path {+ if !adapter_path.is_empty() {+ let module =+ adapter_path.split(':').next().unwrap_or(adapter_path);+ existing.adapter_modules.insert(module.to_string());+ }+ }+ continue;}}skipped_profiles.push(profile_name.clone());@@ -686,6 +752,14 @@ impl ModelRegistry {.insert(pname.clone(), CanonicalProfile::from_profile(profile));}}+ // Authoritative overrides: replace the stored CanonicalProfile.+ for pname in &overridden_profiles {+ if let Some(profile) = config.profiles.get(pname) {+ existing+ .profile_configs+ .insert(pname.clone(), CanonicalProfile::from_profile(profile));+ }+ }Self::merge_model_info_extras(&mut existing.info_extras, &config);} else {// New model@@ -758,6 +832,7 @@ impl ModelRegistry {model = %sie_id,created = ?created_profiles,skipped = ?skipped_profiles,+ overridden = ?overridden_profiles,bundles = ?affected_bundles,"added model config");@@ -1309,6 +1384,135 @@ encode:assert_eq!(refreshed.info_extras.max_sequence_length, Some(512));}+ /// Helper for the authoritative-override and append-only-conflict tests:+ /// returns a `ModelConfig` for `test/model` with a single `default`+ /// profile pointing at `adapter_path` and a fixed `max_batch_tokens`.+ fn cfg_for_test_model(adapter_path: &str, max_batch_tokens: u32) -> ModelConfig {+ ModelConfig {+ name: "test/model".to_string(),+ adapter_module: None,+ default_bundle: None,+ profiles: {+ let mut m = HashMap::new();+ m.insert(+ "default".to_string(),+ crate::types::model::ProfileConfig {+ adapter_path: Some(adapter_path.to_string()),+ max_batch_tokens: Some(max_batch_tokens),+ compute_precision: None,+ adapter_options: None,+ extends: None,+ },+ );+ m+ },+ inputs: None,+ max_sequence_length: None,+ tasks: None,+ }+ }++ /// The append-only `add_model_config` path is what the NATS pub/sub+ /// delta consumer uses. Single-epoch duplicate publishes must still be+ /// rejected, otherwise a malformed re-publish could silently overwrite+ /// the registered config. Locks the existing behavior in place so+ /// future changes do not regress it.+ #[test]+ fn test_add_model_config_append_only_rejects_conflict() {+ let (_dir, bundles_dir, models_dir) = create_test_dirs();+ fs::write(+ bundles_dir.join("default.yaml"),+ r#"+name: default+priority: 10+adapters:+ - sie_server.adapters.sentence_transformer+ - sie_server.adapters.pytorch_embedding+"#,+ )+ .unwrap();+ let registry = ModelRegistry::new(&bundles_dir, &models_dir, true);++ registry+ .add_model_config(cfg_for_test_model(+ "sie_server.adapters.sentence_transformer:SentenceTransformerAdapter",+ 4096,+ ))+ .expect("first apply seeds the registry");++ // Same sie_id and profile, different adapter_path: conflict.+ let err = registry+ .add_model_config(cfg_for_test_model(+ "sie_server.adapters.pytorch_embedding:PyTorchEmbeddingAdapter",+ 4096,+ ))+ .expect_err("plain add_model_config must reject conflicting profile config");+ assert!(+ err.contains("already exists with different config"),+ "unexpected error message: {err}"+ );+ assert!(+ err.contains("append-only"),+ "error must reference the append-only invariant: {err}"+ );+ }++ /// The authoritative path is what `state::config_bootstrap` uses on+ /// cold-start and on epoch-poller catch-up. It treats the export as+ /// the source of truth and overrides any divergent stored profile+ /// config (with a warn log) instead of failing the entire bootstrap.+ /// Reproduces the v0.3.2 -> v0.3.3 `nemotron-8b` adapter swap that+ /// wedged sie-test until a manual `kubectl rollout restart`.+ #[test]+ fn test_add_model_config_authoritative_overrides_conflicting_profile() {+ let (_dir, bundles_dir, models_dir) = create_test_dirs();+ fs::write(+ bundles_dir.join("default.yaml"),+ r#"+name: default+priority: 10+adapters:+ - sie_server.adapters.sentence_transformer+ - sie_server.adapters.pytorch_embedding+"#,+ )+ .unwrap();+ let registry = ModelRegistry::new(&bundles_dir, &models_dir, true);++ // Seed: gateway pod cold-started against an old sie-config rev.+ registry+ .add_model_config(cfg_for_test_model(+ "sie_server.adapters.sentence_transformer:SentenceTransformerAdapter",+ 4096,+ ))+ .expect("seed apply");++ // sie-config rolls forward; export now carries a new adapter for+ // the same profile. Authoritative apply must accept it.+ registry+ .add_model_config_authoritative(cfg_for_test_model(+ "sie_server.adapters.pytorch_embedding:PyTorchEmbeddingAdapter",+ 8192,+ ))+ .expect("authoritative apply must override on diff, not fail");++ // Confirm the registry now holds the new config: a follow-up plain+ // apply of the same (new) config is a no-op (returns Ok with no+ // newly created profiles), proving the stored CanonicalProfile is+ // the overridden one. If the override had not taken effect, this+ // call would hit append-only and return Err.+ let (created, _skipped, _bundles) = registry+ .add_model_config(cfg_for_test_model(+ "sie_server.adapters.pytorch_embedding:PyTorchEmbeddingAdapter",+ 8192,+ ))+ .expect("replay of the now-stored config must succeed under append-only");+ assert!(+ created.is_empty(),+ "replay of stored config must not report newly created profiles, got: {created:?}"+ );+ }+#[test]fn test_compute_bundle_config_hash() {let (_dir, bundles_dir, models_dir) = create_test_dirs();diff --git a/packages/sie_sdk/pyproject.toml b/packages/sie_sdk/pyproject.tomlindex ca474311f..4bdb192f3 100644--- a/packages/sie_sdk/pyproject.toml+++ b/packages/sie_sdk/pyproject.toml@@ -1,8 +1,8 @@[project]name = "sie-sdk"-version = "0.3.3"+version = "0.3.4"description = "Search Inference Engine - Python SDK"-requires-python = ">=3.12,<3.13"+requires-python = ">=3.12"license = { text = "Apache-2.0" }dependencies = [# HTTP client (async)diff --git a/packages/sie_sdk/src/sie_sdk/__init__.py b/packages/sie_sdk/src/sie_sdk/__init__.pyindex 726dce0fd..83aedde97 100644--- a/packages/sie_sdk/src/sie_sdk/__init__.py+++ b/packages/sie_sdk/src/sie_sdk/__init__.py@@ -12,6 +12,7 @@ For ColBERT/late interaction models, use the scoring module:"""from sie_sdk.client import (+ InputTooLongError,LoraLoadingError,ModelLoadFailedError,ModelLoadingError,@@ -70,6 +71,7 @@ __all__ = ["Entity","ExtractResult","HealthResponse",+ "InputTooLongError","Item","LoraLoadingError","ModelInfo",diff --git a/packages/sie_sdk/src/sie_sdk/client/__init__.py b/packages/sie_sdk/src/sie_sdk/client/__init__.pyindex 54df17cce..f6493ee73 100644--- a/packages/sie_sdk/src/sie_sdk/client/__init__.py+++ b/packages/sie_sdk/src/sie_sdk/client/__init__.py@@ -5,6 +5,7 @@ Re-exports all client classes and errors for backwards compatibility.from sie_sdk.client.async_ import SIEAsyncClientfrom sie_sdk.client.errors import (+ InputTooLongError,LoraLoadingError,ModelLoadFailedError,ModelLoadingError,@@ -18,6 +19,7 @@ from sie_sdk.client.errors import (from sie_sdk.client.sync import SIEClient__all__ = [+ "InputTooLongError","LoraLoadingError","ModelLoadFailedError","ModelLoadingError",diff --git a/packages/sie_sdk/src/sie_sdk/client/_shared.py b/packages/sie_sdk/src/sie_sdk/client/_shared.pyindex 902d7cf2c..89e95d232 100644--- a/packages/sie_sdk/src/sie_sdk/client/_shared.py+++ b/packages/sie_sdk/src/sie_sdk/client/_shared.py@@ -39,7 +39,7 @@ from sie_sdk.types import (SparseResult,)-from .errors import ModelLoadFailedError, RequestError, ServerError+from .errors import InputTooLongError, ModelLoadFailedError, RequestError, ServerError# Content typesMSGPACK_CONTENT_TYPE = "application/msgpack"@@ -73,6 +73,12 @@ MODEL_LOADING_ERROR_CODE = "MODEL_LOADING" # Error code from server# instead of burning the MODEL_LOADING retry budget.MODEL_LOAD_FAILED_ERROR_CODE = "MODEL_LOAD_FAILED"+# Terminal client-side error: request input exceeds the model's maximum+# token capacity. Server returns HTTP 400 + this code; the SDK surfaces+# a typed ``InputTooLongError`` so callers can react without parsing+# error codes by hand.+INPUT_TOO_LONG_ERROR_CODE = "INPUT_TOO_LONG"+# Resource-exhausted retry settings (server-side OOM recovery exhausted).# Default backoff sequence: 5 -> 10 -> 20 s (capped at 30s). Three attempts# is enough to cover the typical eviction + retry window without making@@ -373,6 +379,33 @@ def raise_if_model_load_failed(response: _HttpResponse, model: str | None = None)+def raise_if_input_too_long(response: _HttpResponse, model: str | None = None) -> None:+ """Raise :class:`InputTooLongError` if the response is 400 ``INPUT_TOO_LONG``.++ Used by the extract path to surface token-budget overruns as a+ typed exception (so callers can catch :class:`InputTooLongError`+ specifically) instead of relying on a generic+ :class:`RequestError` + string-matching the ``code``.++ Args:+ response: HTTP response to inspect.+ model: Model name for inclusion in the raised error.++ Raises:+ InputTooLongError: If the response is a 400 carrying the+ ``INPUT_TOO_LONG`` error code.+ """+ if response.status_code != HTTP_CLIENT_ERROR:+ return+ detail = get_error_detail(response)+ if detail is None:+ return+ if detail.get("code") != INPUT_TOO_LONG_ERROR_CODE:+ return+ message = str(detail.get("message") or "Input exceeds the model's maximum token capacity")+ raise InputTooLongError(message, model=model)++def handle_error(response: _HttpResponse) -> None:"""Handle error response from server.@@ -409,6 +442,10 @@ def handle_error(response: _HttpResponse) -> None:# Fall back to raw textmessage = response.text or message+ # Fallback dispatch — ``model`` is only attached by the helper-style+ # short-circuit (``raise_if_input_too_long``) on the extract path.+ if response.status_code == HTTP_CLIENT_ERROR and code == INPUT_TOO_LONG_ERROR_CODE:+ raise InputTooLongError(message)if response.status_code >= HTTP_SERVER_ERROR:raise ServerError(message, code=code, status_code=response.status_code)raise RequestError(message, code=code, status_code=response.status_code)diff --git a/packages/sie_sdk/src/sie_sdk/client/async_.py b/packages/sie_sdk/src/sie_sdk/client/async_.pyindex 14c9440ca..080f738d8 100644--- a/packages/sie_sdk/src/sie_sdk/client/async_.py+++ b/packages/sie_sdk/src/sie_sdk/client/async_.py@@ -86,6 +86,7 @@ from ._shared import (parse_extract_results,parse_gpu_param,parse_score_result,+ raise_if_input_too_long,raise_if_model_load_failed,)from .errors import (@@ -1788,6 +1789,9 @@ class SIEAsyncClient:# Short-circuit terminal load failures (sie-test#85).raise_if_model_load_failed(response, model=model)+ # Short-circuit token-budget overruns (#849).+ raise_if_input_too_long(response, model=model)+# Handle 503 with MODEL_LOADING - auto-retryif response.status_code == 503:from ._shared import get_error_codediff --git a/packages/sie_sdk/src/sie_sdk/client/errors.py b/packages/sie_sdk/src/sie_sdk/client/errors.pyindex b60a99355..e314203e5 100644--- a/packages/sie_sdk/src/sie_sdk/client/errors.py+++ b/packages/sie_sdk/src/sie_sdk/client/errors.py@@ -181,6 +181,33 @@ class ModelLoadFailedError(ServerError):self.attempts = attempts+class InputTooLongError(RequestError):+ """Error when the request input exceeds the model's maximum token capacity.++ Raised when the server returns HTTP ``400 INPUT_TOO_LONG`` for an+ extraction request. Distinct from generic ``RequestError`` so callers+ can branch on token-budget failures specifically (e.g. truncate the+ input client-side, switch to a longer-context model, or surface a+ targeted error to the end user) without parsing the error code.++ Subclass of :class:`RequestError` so existing 4xx handlers continue+ to work; new code can catch :class:`InputTooLongError` for tailored+ handling.++ Attributes:+ model: The model that was requested.+ """++ def __init__(+ self,+ message: str,+ *,+ model: str | None = None,+ ) -> None:+ super().__init__(message, code="INPUT_TOO_LONG", status_code=400)+ self.model = model++class ResourceExhaustedError(ServerError):"""Error when the server has exhausted its OOM-recovery strategies.diff --git a/packages/sie_sdk/src/sie_sdk/client/sync.py b/packages/sie_sdk/src/sie_sdk/client/sync.pyindex 0773817d8..18d575b2a 100644--- a/packages/sie_sdk/src/sie_sdk/client/sync.py+++ b/packages/sie_sdk/src/sie_sdk/client/sync.py@@ -94,6 +94,7 @@ from ._shared import (parse_extract_results,parse_gpu_param,parse_score_result,+ raise_if_input_too_long,raise_if_model_load_failed,)from .errors import (@@ -2106,6 +2107,9 @@ class SIEClient:# Short-circuit terminal load failures (sie-test#85).raise_if_model_load_failed(response, model=model)+ # Short-circuit token-budget overruns (#849).+ raise_if_input_too_long(response, model=model)+# Handle 503 with MODEL_LOADING - auto-retryif response.status_code == 503:from ._shared import get_error_codediff --git a/packages/sie_sdk/tests/client/test_input_too_long.py b/packages/sie_sdk/tests/client/test_input_too_long.pynew file mode 100644index 000000000..2285154aa--- /dev/null+++ b/packages/sie_sdk/tests/client/test_input_too_long.py@@ -0,0 +1,161 @@+"""Tests for the ``InputTooLongError`` short-circuit (#849).++A 400 ``INPUT_TOO_LONG`` response on the extract path must:+- raise :class:`InputTooLongError` immediately on the first response+- carry ``code == "INPUT_TOO_LONG"`` and ``status_code == 400``+- expose ``model`` from caller context+- not be confused with generic :class:`RequestError` (so callers can+ branch on token-budget failures specifically)+"""++from __future__ import annotations++import json+from unittest.mock import AsyncMock, MagicMock, patch++import pytest+from sie_sdk import SIEAsyncClient, SIEClient+from sie_sdk.client._shared import handle_error+from sie_sdk.client.async_ import _AioResponse+from sie_sdk.client.errors import InputTooLongError, RequestError+++def _resp_input_too_long(message: str = "Input exceeds capacity (4096 tokens)") -> MagicMock:+ resp = MagicMock()+ resp.status_code = 400+ resp.headers = {"content-type": "application/json"}+ resp.json.return_value = {"detail": {"code": "INPUT_TOO_LONG", "message": message}}+ return resp+++def _resp_validation_error() -> MagicMock:+ """Negative case: a different 400 that must NOT be classified as INPUT_TOO_LONG."""+ resp = MagicMock()+ resp.status_code = 400+ resp.headers = {"content-type": "application/json"}+ resp.json.return_value = {"detail": {"code": "VALIDATION_ERROR", "message": "bad input"}}+ return resp+++# ---------------------------------------------------------------------------+# Sync client+# ---------------------------------------------------------------------------+++class TestSyncInputTooLong:+ def test_extract_raises_immediately_on_first_response(self) -> None:+ """No retries are attempted; the typed error surfaces on the first call."""+ with (+ patch("sie_sdk.client.sync.httpx.Client") as mock_client,+ patch("sie_sdk.client.sync.time.sleep") as mock_sleep,+ ):+ mock_client.return_value.post = MagicMock(side_effect=[_resp_input_too_long("Too many tokens")])+ client = SIEClient("http://localhost:8080")++ with pytest.raises(InputTooLongError) as excinfo:+ client.extract("gliclass-large", {"text": "hi"}, labels=["a", "b"])++ assert excinfo.value.model == "gliclass-large"+ assert excinfo.value.code == "INPUT_TOO_LONG"+ assert excinfo.value.status_code == 400+ assert str(excinfo.value) == "Too many tokens"+ # Critical: no retry happened.+ assert mock_client.return_value.post.call_count == 1+ mock_sleep.assert_not_called()+ client.close()++ def test_is_request_error_subclass(self) -> None:+ """Existing 4xx handlers (`except RequestError`) must still catch it."""+ assert issubclass(InputTooLongError, RequestError)+ assert not issubclass(RequestError, InputTooLongError)++ def test_other_400_falls_through_to_request_error(self) -> None:+ """A 400 with a different code must NOT become InputTooLongError."""+ with patch("sie_sdk.client.sync.httpx.Client") as mock_client:+ mock_client.return_value.post = MagicMock(side_effect=[_resp_validation_error()])+ client = SIEClient("http://localhost:8080")++ with pytest.raises(RequestError) as excinfo:+ client.extract("gliclass-large", {"text": "hi"}, labels=["a"])++ assert not isinstance(excinfo.value, InputTooLongError)+ assert excinfo.value.code == "VALIDATION_ERROR"+ assert excinfo.value.status_code == 400+ client.close()+++# ---------------------------------------------------------------------------+# Async client+# ---------------------------------------------------------------------------+++def _aio_input_too_long(message: str = "Input exceeds capacity (4096 tokens)") -> object:+ return _AioResponse(+ 400,+ json.dumps({"detail": {"code": "INPUT_TOO_LONG", "message": message}}).encode(),+ {"content-type": "application/json"},+ )+++def _aio_validation_error() -> object:+ return _AioResponse(+ 400,+ json.dumps({"detail": {"code": "VALIDATION_ERROR", "message": "bad input"}}).encode(),+ {"content-type": "application/json"},+ )+++class TestAsyncInputTooLong:+ @pytest.mark.asyncio+ async def test_extract_raises_immediately(self) -> None:+ with (+ patch("sie_sdk.client.async_.aiohttp.ClientSession"),+ patch("sie_sdk.client.async_.asyncio.sleep") as mock_sleep,+ ):+ client = SIEAsyncClient("http://localhost:8080")+ client._post = AsyncMock(side_effect=[_aio_input_too_long()])++ with pytest.raises(InputTooLongError) as excinfo:+ await client.extract("gliclass-large", {"text": "hi"}, labels=["a"])++ assert excinfo.value.model == "gliclass-large"+ assert excinfo.value.code == "INPUT_TOO_LONG"+ assert excinfo.value.status_code == 400+ assert client._post.await_count == 1+ mock_sleep.assert_not_called()+ await client.close()++ @pytest.mark.asyncio+ async def test_other_400_falls_through_to_request_error(self) -> None:+ with patch("sie_sdk.client.async_.aiohttp.ClientSession"):+ client = SIEAsyncClient("http://localhost:8080")+ client._post = AsyncMock(side_effect=[_aio_validation_error()])++ with pytest.raises(RequestError) as excinfo:+ await client.extract("gliclass-large", {"text": "hi"}, labels=["a"])++ assert not isinstance(excinfo.value, InputTooLongError)+ assert excinfo.value.code == "VALIDATION_ERROR"+ await client.close()+++# ---------------------------------------------------------------------------+# Direct ``handle_error`` dispatch (locks in the secondary fallthrough so+# reordering the conditions in ``_shared.handle_error`` cannot silently+# regress the typed dispatch).+# ---------------------------------------------------------------------------+++class TestHandleErrorDispatch:+ def test_dispatch_raises_input_too_long(self) -> None:+ with pytest.raises(InputTooLongError) as excinfo:+ handle_error(_resp_input_too_long("Too many tokens"))+ assert excinfo.value.code == "INPUT_TOO_LONG"+ assert excinfo.value.status_code == 400+ assert str(excinfo.value) == "Too many tokens"++ def test_dispatch_does_not_classify_other_400(self) -> None:+ with pytest.raises(RequestError) as excinfo:+ handle_error(_resp_validation_error())+ assert not isinstance(excinfo.value, InputTooLongError)+ assert excinfo.value.code == "VALIDATION_ERROR"diff --git a/packages/sie_server/openapi.json b/packages/sie_server/openapi.jsonindex 74f39a132..cbdf02294 100644--- a/packages/sie_server/openapi.json+++ b/packages/sie_server/openapi.json@@ -3,7 +3,7 @@"info": {"title": "SIE Server","description": "Search Inference Engine - GPU inference server for search workloads",- "version": "0.3.3"+ "version": "0.3.4"},"paths": {"/": {diff --git a/packages/sie_server/pyproject.toml b/packages/sie_server/pyproject.tomlindex 5ff0685ea..b833968dd 100644--- a/packages/sie_server/pyproject.toml+++ b/packages/sie_server/pyproject.toml@@ -1,6 +1,6 @@[project]name = "sie-server"-version = "0.3.3"+version = "0.3.4"description = "Search Inference Engine - GPU inference server for search workloads"requires-python = ">=3.12,<3.13"license = { text = "Apache-2.0" }@@ -26,8 +26,15 @@ dependencies = ["gliner>=0.2,<1","glirel>=1.0,<2","gliclass>=0.1,<1",- # Docling — composite-document parser (PDF/DOCX/HTML) for extract()+ # Docling, composite-document parser (PDF/DOCX/HTML) for extract()"docling>=2,<3",+ # Pin opencv-python-headless in place of opencv-python (pulled in via+ # docling -> rapidocr). The GUI build dlopens libxcb.so.1 / libGL.so.1+ # which aren't present in the worker images; the headless wheel ships the+ # same cv2 Python API without X11/GUI runtime deps. The transitive+ # opencv-python request is suppressed via [tool.uv] override-dependencies+ # in the root pyproject.toml.+ "opencv-python-headless>=4,<5","loguru>=0.7,<1",# SigLIP (Marqo/marqo-ecommerce-embeddings-B native open_clip loader)"open-clip-torch>=2.24",diff --git a/packages/sie_ts_sdk/package.json b/packages/sie_ts_sdk/package.jsonindex cdb560282..f9254971c 100644--- a/packages/sie_ts_sdk/package.json+++ b/packages/sie_ts_sdk/package.json@@ -1,6 +1,6 @@{"name": "@superlinked/sie-sdk",- "version": "0.3.3",+ "version": "0.3.4","description": "Official TypeScript SDK for SIE (Search Inference Engine)","type": "module","main": "./dist/index.cjs",diff --git a/packages/sie_ts_sdk/src/client.ts b/packages/sie_ts_sdk/src/client.tsindex c65419e6a..19b3842a5 100644--- a/packages/sie_ts_sdk/src/client.ts+++ b/packages/sie_ts_sdk/src/client.ts@@ -61,6 +61,7 @@ import {parseEncodeResults,parseExtractResults,parseScoreResult,+ throwIfInputTooLong,throwIfModelLoadFailed,} from "./internal/parsing.js";import { packMessage, unpackMessage } from "./msgpack.js";@@ -532,6 +533,9 @@ export class SIEClient {if (options.threshold !== undefined) {params.threshold = options.threshold;}+ if (options.adapterOptions !== undefined) {+ params.options = options.adapterOptions;+ }body.params = params;const waitForCapacity = options.waitForCapacity ?? this.defaultWaitForCapacity;@@ -1063,6 +1067,9 @@ export class SIEClient {// MODEL_LOADING retry budget on a known-bad config.await throwIfModelLoadFailed(response, model);+ // Short-circuit token-budget overruns (#849).+ await throwIfInputTooLong(response, model);+// Handle 503 with LORA_LOADING or MODEL_LOADING - auto-retryif (response.status === 503) {const clonedResponse = response.clone();diff --git a/packages/sie_ts_sdk/src/errors.ts b/packages/sie_ts_sdk/src/errors.tsindex f88a5d5e7..774d3e4f9 100644--- a/packages/sie_ts_sdk/src/errors.ts+++ b/packages/sie_ts_sdk/src/errors.ts@@ -242,3 +242,27 @@ export class ModelLoadFailedError extends ServerError {this.attempts = options?.attempts ?? 1;}}++/**+ * Error when the request input exceeds the model's maximum token capacity.+ *+ * Thrown when the server returns HTTP `400 INPUT_TOO_LONG` for an+ * extraction request. Distinct from generic {@link RequestError} so+ * callers can branch on token-budget failures specifically (truncate+ * the input client-side, switch to a longer-context model, or surface+ * a targeted error to the end user) without parsing the error code.+ *+ * Subclass of {@link RequestError} so existing 4xx handlers continue+ * to work; new code can catch {@link InputTooLongError} for tailored+ * handling.+ */+export class InputTooLongError extends RequestError {+ /** The model that was requested */+ readonly model: string | undefined;++ constructor(message: string, options?: { model?: string }) {+ super(message, "INPUT_TOO_LONG", 400);+ this.name = "InputTooLongError";+ this.model = options?.model;+ }+}diff --git a/packages/sie_ts_sdk/src/index.ts b/packages/sie_ts_sdk/src/index.tsindex 4af68583d..6808bb5db 100644--- a/packages/sie_ts_sdk/src/index.ts+++ b/packages/sie_ts_sdk/src/index.ts@@ -92,6 +92,7 @@ export {LoraLoadingError,ModelLoadingError,ModelLoadFailedError,+ InputTooLongError,} from "./errors.js";// Client-side scoring (MaxSim for ColBERT-style models)diff --git a/packages/sie_ts_sdk/src/internal/parsing.ts b/packages/sie_ts_sdk/src/internal/parsing.tsindex 19da1e17e..f6f6f162c 100644--- a/packages/sie_ts_sdk/src/internal/parsing.ts+++ b/packages/sie_ts_sdk/src/internal/parsing.ts@@ -2,7 +2,13 @@* Parsing utilities for SIE responses*/-import { ModelLoadFailedError, ProvisioningError, RequestError, ServerError } from "../errors.js";+import {+ InputTooLongError,+ ModelLoadFailedError,+ ProvisioningError,+ RequestError,+ ServerError,+} from "../errors.js";import { unpackMessage } from "../msgpack.js";import type {CapacityInfo,@@ -134,6 +140,29 @@ export async function throwIfModelLoadFailed(response: Response, model?: string)});}+/**+ * Throw {@link InputTooLongError} if the response is a 400 carrying the+ * `INPUT_TOO_LONG` error code.+ *+ * Used by the extract path to surface token-budget overruns as a typed+ * exception (so callers can catch {@link InputTooLongError} specifically)+ * instead of relying on a generic {@link RequestError} + string-matching+ * the `code`.+ *+ * No-op for any other status / error code.+ */+export async function throwIfInputTooLong(response: Response, model?: string): Promise<void> {+ if (response.status !== 400) return;+ const detail = await getErrorDetail(response.clone());+ if (!detail) return;+ if (detail.code !== "INPUT_TOO_LONG") return;+ const message =+ typeof detail.message === "string"+ ? detail.message+ : "Input exceeds the model's maximum token capacity";+ throw new InputTooLongError(message, { model });+}+/*** Handle HTTP error response and throw appropriate error*/@@ -178,6 +207,11 @@ export async function handleError(response: Response, gpu?: string): Promise<nev}if (status >= HTTP_CLIENT_ERROR_MIN && status <= HTTP_CLIENT_ERROR_MAX) {+ if (status === 400 && code === "INPUT_TOO_LONG") {+ // Fallback dispatch — ``model`` is only attached by the helper-style+ // short-circuit (``throwIfInputTooLong``) on the extract path.+ throw new InputTooLongError(message);+ }throw new RequestError(message, code, status);}diff --git a/packages/sie_ts_sdk/src/types.ts b/packages/sie_ts_sdk/src/types.tsindex f34d2b3f9..a25727dee 100644--- a/packages/sie_ts_sdk/src/types.ts+++ b/packages/sie_ts_sdk/src/types.ts@@ -453,6 +453,14 @@ export interface ExtractOptions {gpu?: string;/** Whether to wait for capacity */waitForCapacity?: boolean;+ /**+ * Adapter-specific runtime options forwarded to the server as+ * `params.options`. Used for adapter knobs that aren't part of the+ * core extract API — e.g. `{ overflow_policy: "error" }` for+ * gliclass token-budget control. Mirrors the Python SDK's `options`+ * keyword argument.+ */+ adapterOptions?: Record<string, unknown>;}// ---------------------------------------------------------------------------diff --git a/packages/sie_ts_sdk/src/version.ts b/packages/sie_ts_sdk/src/version.tsindex b4fdc37f1..17d4295bc 100644--- a/packages/sie_ts_sdk/src/version.ts+++ b/packages/sie_ts_sdk/src/version.ts@@ -1 +1 @@-export const SDK_VERSION = "0.3.3"; // x-release-please-version+export const SDK_VERSION = "0.3.4"; // x-release-please-versiondiff --git a/packages/sie_ts_sdk/tests/client.test.ts b/packages/sie_ts_sdk/tests/client.test.tsindex cd4fa3b57..95c251477 100644--- a/packages/sie_ts_sdk/tests/client.test.ts+++ b/packages/sie_ts_sdk/tests/client.test.ts@@ -1034,6 +1034,48 @@ describe("SIEClient.extract() - NER", () => {expect(parsed.params?.threshold).toBe(0.8);});+ it("should forward adapterOptions as params.options on the wire", async () => {+ // User scenario: "I want to pass overflow_policy to a gliclass model"+ mockFetch.mockResolvedValueOnce(+ createMsgpackResponse({+ items: [{ entities: [] }],+ }),+ );++ await client.extract(+ "knowledgator/gliclass-small-v1.0",+ { text: "test" },+ {+ labels: ["positive", "negative"],+ adapterOptions: { overflow_policy: "error" },+ },+ );++ const fetchCall = mockFetch.mock.calls[0];+ const body = fetchCall?.[1]?.body as Uint8Array;+ const parsed = unpackMessage<{+ params?: { options?: Record<string, unknown> };+ }>(body);++ expect(parsed.params?.options).toEqual({ overflow_policy: "error" });+ });++ it("should omit params.options when adapterOptions is not provided", async () => {+ mockFetch.mockResolvedValueOnce(+ createMsgpackResponse({+ items: [{ entities: [] }],+ }),+ );++ await client.extract("gliner-multi-v2.1", { text: "test" }, { labels: ["person"] });++ const fetchCall = mockFetch.mock.calls[0];+ const body = fetchCall?.[1]?.body as Uint8Array;+ const parsed = unpackMessage<{ params?: Record<string, unknown> }>(body);++ expect(parsed.params).not.toHaveProperty("options");+ });+it("should return entity positions for highlighting", async () => {// User scenario: "I want to highlight entities in my UI"mockFetch.mockResolvedValueOnce(diff --git a/packages/sie_ts_sdk/tests/inputTooLong.test.ts b/packages/sie_ts_sdk/tests/inputTooLong.test.tsnew file mode 100644index 000000000..9158e168f--- /dev/null+++ b/packages/sie_ts_sdk/tests/inputTooLong.test.ts@@ -0,0 +1,143 @@+/**+ * Tests for the ``InputTooLongError`` short-circuit (#849).+ *+ * A 400 ``INPUT_TOO_LONG`` response on the extract path must:+ * - throw {@link InputTooLongError} immediately on the first response+ * - carry ``code === "INPUT_TOO_LONG"`` and ``statusCode === 400``+ * - expose ``model`` from caller context+ * - not be confused with generic {@link RequestError} so callers can+ * branch on token-budget failures specifically+ */++import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";+import { SIEClient } from "../src/client.js";+import { InputTooLongError, RequestError, SIEError } from "../src/errors.js";+import { handleError } from "../src/internal/parsing.js";++const mockFetch = vi.fn();+vi.stubGlobal("fetch", mockFetch);++function inputTooLongResponse(message = "Input exceeds capacity (4096 tokens)"): Response {+ return new Response(JSON.stringify({ detail: { code: "INPUT_TOO_LONG", message } }), {+ status: 400,+ headers: { "Content-Type": "application/json" },+ });+}++function validationErrorResponse(): Response {+ return new Response(+ JSON.stringify({ detail: { code: "VALIDATION_ERROR", message: "bad input" } }),+ { status: 400, headers: { "Content-Type": "application/json" } },+ );+}++describe("InputTooLongError class", () => {+ it("is a RequestError and SIEError", () => {+ const err = new InputTooLongError("test", { model: "x" });+ expect(err).toBeInstanceOf(RequestError);+ expect(err).toBeInstanceOf(SIEError);+ expect(err).toBeInstanceOf(Error);+ expect(err.name).toBe("InputTooLongError");+ });++ it("populates code, statusCode, and model", () => {+ const err = new InputTooLongError("too long", { model: "gliclass-large" });+ expect(err.code).toBe("INPUT_TOO_LONG");+ expect(err.statusCode).toBe(400);+ expect(err.model).toBe("gliclass-large");+ });++ it("defaults model to undefined", () => {+ const err = new InputTooLongError("too long");+ expect(err.model).toBeUndefined();+ });+});++describe("400 INPUT_TOO_LONG short-circuit", () => {+ beforeEach(() => {+ mockFetch.mockClear();+ });++ afterEach(() => {+ mockFetch.mockClear();+ });++ it("throws InputTooLongError on the first response", async () => {+ mockFetch.mockResolvedValueOnce(inputTooLongResponse());+ const client = new SIEClient("http://localhost:8080");++ await expect(+ client.extract("gliclass-large", { text: "hi" }, { labels: ["a", "b"] }),+ ).rejects.toThrow(InputTooLongError);+ expect(mockFetch).toHaveBeenCalledTimes(1);+ });++ it("populates model and message", async () => {+ mockFetch.mockResolvedValueOnce(inputTooLongResponse("Too many tokens"));+ const client = new SIEClient("http://localhost:8080");++ try {+ await client.extract("gliclass-large", { text: "hi" }, { labels: ["a"] });+ throw new Error("should have thrown");+ } catch (err) {+ expect(err).toBeInstanceOf(InputTooLongError);+ const e = err as InputTooLongError;+ expect(e.model).toBe("gliclass-large");+ expect(e.code).toBe("INPUT_TOO_LONG");+ expect(e.statusCode).toBe(400);+ expect(e.message).toBe("Too many tokens");+ }+ });++ it("does not consume any retry budget", async () => {+ mockFetch.mockResolvedValueOnce(inputTooLongResponse());+ const client = new SIEClient("http://localhost:8080", {+ provisionTimeout: 600_000,+ });++ const startTime = Date.now();+ await expect(+ client.extract("gliclass-large", { text: "hi" }, { labels: ["a"] }),+ ).rejects.toThrow(InputTooLongError);+ const elapsed = Date.now() - startTime;++ expect(elapsed).toBeLessThan(1000);+ expect(mockFetch).toHaveBeenCalledTimes(1);+ });++ it("does not classify other 400s as InputTooLongError", async () => {+ mockFetch.mockResolvedValueOnce(validationErrorResponse());+ const client = new SIEClient("http://localhost:8080");++ try {+ await client.extract("gliclass-large", { text: "hi" }, { labels: ["a"] });+ throw new Error("should have thrown");+ } catch (err) {+ expect(err).toBeInstanceOf(RequestError);+ expect(err).not.toBeInstanceOf(InputTooLongError);+ const e = err as RequestError;+ expect(e.code).toBe("VALIDATION_ERROR");+ expect(e.statusCode).toBe(400);+ }+ });+});++describe("handleError dispatch (direct)", () => {+ // Locks in the secondary fallthrough so reordering the conditions in+ // ``parsing.handleError`` cannot silently regress the typed dispatch.++ it("raises InputTooLongError on 400 + INPUT_TOO_LONG", async () => {+ await expect(handleError(inputTooLongResponse("Too many tokens"))).rejects.toMatchObject({+ name: "InputTooLongError",+ code: "INPUT_TOO_LONG",+ statusCode: 400,+ message: "Too many tokens",+ });+ });++ it("does not classify other 400s as InputTooLongError", async () => {+ await expect(handleError(validationErrorResponse())).rejects.toSatisfy((err: unknown) => {+ return err instanceof RequestError && !(err instanceof InputTooLongError);+ });+ });+});diff --git a/pyproject.toml b/pyproject.tomlindex 23fc48aba..f5502ac5c 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -63,6 +63,13 @@ benchview = [[tool.uv]index-strategy = "unsafe-best-match"+# Suppress the transitive opencv-python request from docling -> rapidocr.+# The GUI build dlopens libxcb.so.1 / libGL.so.1, which aren't present in the+# worker images. opencv-python-headless is pinned in sie_server/pyproject.toml+# and ships the same cv2 Python API without the X11/GUI runtime deps.+override-dependencies = [+ "opencv-python; sys_platform == 'never'",+]# Use CUDA PyTorch on Linux only# explicit = true ensures only torch/torchvision use this index, not other packagesdiff --git a/uv.lock b/uv.lockindex 1318bb2c1..3dbc057ba 100644--- a/uv.lock+++ b/uv.lock@@ -25,6 +25,7 @@ members = ["sie-server","sie-weaviate",]+overrides = [{ name = "opencv-python", marker = "sys_platform == 'never'" }][[package]]name = "accelerate"@@ -3467,18 +3468,26 @@ wheels = [name = "opencv-python"version = "4.13.0.92"source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "numpy", marker = "sys_platform != 'linux'" },+]++[[package]]+name = "opencv-python-headless"+version = "4.13.0.92"+source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "numpy" },]wheels = [- { url = "https://files.pythonhosted.org/packages/fc/6f/5a28fef4c4a382be06afe3938c64cc168223016fa520c5abaf37e8862aa5/opencv_python-4.13.0.92-cp37-abi3-macosx_13_0_arm64.whl", hash = "sha256:caf60c071ec391ba51ed00a4a920f996d0b64e3e46068aac1f646b5de0326a19", size = 46247052 },- { url = "https://files.pythonhosted.org/packages/08/ac/6c98c44c650b8114a0fb901691351cfb3956d502e8e9b5cd27f4ee7fbf2f/opencv_python-4.13.0.92-cp37-abi3-macosx_14_0_x86_64.whl", hash = "sha256:5868a8c028a0b37561579bfb8ac1875babdc69546d236249fff296a8c010ccf9", size = 32568781 },- { url = "https://files.pythonhosted.org/packages/3e/51/82fed528b45173bf629fa44effb76dff8bc9f4eeaee759038362dfa60237/opencv_python-4.13.0.92-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:0bc2596e68f972ca452d80f444bc404e08807d021fbba40df26b61b18e01838a", size = 47685527 },- { url = "https://files.pythonhosted.org/packages/db/07/90b34a8e2cf9c50fe8ed25cac9011cde0676b4d9d9c973751ac7616223a2/opencv_python-4.13.0.92-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:402033cddf9d294693094de5ef532339f14ce821da3ad7df7c9f6e8316da32cf", size = 70460872 },- { url = "https://files.pythonhosted.org/packages/02/6d/7a9cc719b3eaf4377b9c2e3edeb7ed3a81de41f96421510c0a169ca3cfd4/opencv_python-4.13.0.92-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:bccaabf9eb7f897ca61880ce2869dcd9b25b72129c28478e7f2a5e8dee945616", size = 46708208 },- { url = "https://files.pythonhosted.org/packages/fd/55/b3b49a1b97aabcfbbd6c7326df9cb0b6fa0c0aefa8e89d500939e04aa229/opencv_python-4.13.0.92-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:620d602b8f7d8b8dab5f4b99c6eb353e78d3fb8b0f53db1bd258bb1aa001c1d5", size = 72927042 },- { url = "https://files.pythonhosted.org/packages/fb/17/de5458312bcb07ddf434d7bfcb24bb52c59635ad58c6e7c751b48949b009/opencv_python-4.13.0.92-cp37-abi3-win32.whl", hash = "sha256:372fe164a3148ac1ca51e5f3ad0541a4a276452273f503441d718fab9c5e5f59", size = 30932638 },- { url = "https://files.pythonhosted.org/packages/e9/a5/1be1516390333ff9be3a9cb648c9f33df79d5096e5884b5df71a588af463/opencv_python-4.13.0.92-cp37-abi3-win_amd64.whl", hash = "sha256:423d934c9fafb91aad38edf26efb46da91ffbc05f3f59c4b0c72e699720706f5", size = 40212062 },+ { url = "https://files.pythonhosted.org/packages/79/42/2310883be3b8826ac58c3f2787b9358a2d46923d61f88fedf930bc59c60c/opencv_python_headless-4.13.0.92-cp37-abi3-macosx_13_0_arm64.whl", hash = "sha256:1a7d040ac656c11b8c38677cc8cccdc149f98535089dbe5b081e80a4e5903209", size = 46247192 },+ { url = "https://files.pythonhosted.org/packages/2d/1e/6f9e38005a6f7f22af785df42a43139d0e20f169eb5787ce8be37ee7fcc9/opencv_python_headless-4.13.0.92-cp37-abi3-macosx_14_0_x86_64.whl", hash = "sha256:3e0a6f0a37994ec6ce5f59e936be21d5d6384a4556f2d2da9c2f9c5dc948394c", size = 32568914 },+ { url = "https://files.pythonhosted.org/packages/21/76/9417a6aef9def70e467a5bf560579f816148a4c658b7d525581b356eda9e/opencv_python_headless-4.13.0.92-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:5c8cfc8e87ed452b5cecb9419473ee5560a989859fe1d10d1ce11ae87b09a2cb", size = 33703709 },+ { url = "https://files.pythonhosted.org/packages/92/ce/bd17ff5772938267fd49716e94ca24f616ff4cb1ff4c6be13085108037be/opencv_python_headless-4.13.0.92-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:0525a3d2c0b46c611e2130b5fdebc94cf404845d8fa64d2f3a3b679572a5bd22", size = 56016764 },+ { url = "https://files.pythonhosted.org/packages/8f/b4/b7bcbf7c874665825a8c8e1097e93ea25d1f1d210a3e20d4451d01da30aa/opencv_python_headless-4.13.0.92-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:eb60e36b237b1ebd40a912da5384b348df8ed534f6f644d8e0b4f103e272ba7d", size = 35010236 },+ { url = "https://files.pythonhosted.org/packages/4b/33/b5db29a6c00eb8f50708110d8d453747ca125c8b805bc437b289dbdcc057/opencv_python_headless-4.13.0.92-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:0bd48544f77c68b2941392fcdf9bcd2b9cdf00e98cb8c29b2455d194763cf99e", size = 60391106 },+ { url = "https://files.pythonhosted.org/packages/fb/c3/52cfea47cd33e53e8c0fbd6e7c800b457245c1fda7d61660b4ffe9596a7f/opencv_python_headless-4.13.0.92-cp37-abi3-win32.whl", hash = "sha256:a7cf08e5b191f4ebb530791acc0825a7986e0d0dee2a3c491184bd8599848a4b", size = 30812232 },+ { url = "https://files.pythonhosted.org/packages/4a/90/b338326131ccb2aaa3c2c85d00f41822c0050139a4bfe723cfd95455bd2d/opencv_python_headless-4.13.0.92-cp37-abi3-win_amd64.whl", hash = "sha256:77a82fe35ddcec0f62c15f2ba8a12ecc2ed4207c17b0902c7a3151ae29f37fb6", size = 40070414 },][[package]]@@ -4739,7 +4748,7 @@ dependencies = [{ name = "colorlog" },{ name = "numpy" },{ name = "omegaconf" },- { name = "opencv-python" },+ { name = "opencv-python", marker = "sys_platform == 'never'" },{ name = "pillow" },{ name = "pyclipper" },{ name = "pyyaml" },@@ -5219,7 +5228,7 @@ dev = [[[package]]name = "sie-admin"-version = "0.3.3"+version = "0.3.4"source = { editable = "packages/sie_admin" }dependencies = [{ name = "httpx" },@@ -5252,7 +5261,7 @@ requires-dist = [[[package]]name = "sie-bench"-version = "0.3.3"+version = "0.3.4"source = { editable = "packages/sie_bench" }dependencies = [{ name = "aiohttp" },@@ -5329,7 +5338,7 @@ requires-dist = [[[package]]name = "sie-chroma"-version = "0.3.3"+version = "0.3.4"source = { editable = "integrations/sie_chroma" }dependencies = [{ name = "chromadb" },@@ -5401,7 +5410,7 @@ dev = [[[package]]name = "sie-crewai"-version = "0.3.3"+version = "0.3.4"source = { editable = "integrations/sie_crewai" }dependencies = [{ name = "crewai" },@@ -5426,7 +5435,7 @@ requires-dist = [[[package]]name = "sie-dspy"-version = "0.3.3"+version = "0.3.4"source = { editable = "integrations/sie_dspy" }dependencies = [{ name = "dspy" },@@ -5451,7 +5460,7 @@ requires-dist = [[[package]]name = "sie-haystack"-version = "0.3.3"+version = "0.3.4"source = { editable = "integrations/sie_haystack" }dependencies = [{ name = "haystack-ai" },@@ -5478,7 +5487,7 @@ requires-dist = [[[package]]name = "sie-lancedb"-version = "0.3.3"+version = "0.3.4"source = { editable = "integrations/sie_lancedb" }dependencies = [{ name = "lancedb" },@@ -5505,7 +5514,7 @@ requires-dist = [[[package]]name = "sie-langchain"-version = "0.3.3"+version = "0.3.4"source = { editable = "integrations/sie_langchain" }dependencies = [{ name = "langchain-core" },@@ -5532,7 +5541,7 @@ requires-dist = [[[package]]name = "sie-llamaindex"-version = "0.3.3"+version = "0.3.4"source = { editable = "integrations/sie_llamaindex" }dependencies = [{ name = "llama-index-core" },@@ -5559,7 +5568,7 @@ requires-dist = [[[package]]name = "sie-qdrant"-version = "0.3.3"+version = "0.3.4"source = { editable = "integrations/sie_qdrant" }dependencies = [{ name = "qdrant-client" },@@ -5582,7 +5591,7 @@ requires-dist = [[[package]]name = "sie-sdk"-version = "0.3.3"+version = "0.3.4"source = { editable = "packages/sie_sdk" }dependencies = [{ name = "aiohttp" },@@ -5631,7 +5640,7 @@ requires-dist = [[[package]]name = "sie-server"-version = "0.3.3"+version = "0.3.4"source = { editable = "packages/sie_server" }dependencies = [{ name = "docling" },@@ -5649,6 +5658,7 @@ dependencies = [{ name = "nats-py" },{ name = "numpy" },{ name = "open-clip-torch" },+ { name = "opencv-python-headless" },{ name = "opentelemetry-api" },{ name = "opentelemetry-exporter-otlp" },{ name = "opentelemetry-instrumentation-fastapi" },@@ -5710,6 +5720,7 @@ requires-dist = [{ name = "numpy", specifier = ">=2,<3" },{ name = "nvidia-ml-py", marker = "extra == 'gpu-metrics'", specifier = ">=13.5,<14" },{ name = "open-clip-torch", specifier = ">=2.24" },+ { name = "opencv-python-headless", specifier = ">=4,<5" },{ name = "opentelemetry-api", specifier = ">=1.28,<2" },{ name = "opentelemetry-exporter-otlp", specifier = ">=1.28,<2" },{ name = "opentelemetry-instrumentation-fastapi", specifier = ">=0.49b0,<1" },@@ -5744,7 +5755,7 @@ dev = [][[package]]name = "sie-weaviate"-version = "0.3.3"+version = "0.3.4"source = { editable = "integrations/sie_weaviate" }dependencies = [{ name = "sie-sdk" },