Skip to content

Commit 214481a

Browse files
committed
fix: cap search/graph extras to client versions compatible with the shipped compose
Live smoke against docker-compose.full.yml (Elasticsearch 8.14, Neo4j 5.22) found the 'search' extra 'elasticsearch>=8.0' resolves to the 9.x client, which refuses an 8.x server (major-version/product check) — so uv sync --extra search then MEMTRACE_RETRIEVAL_HYBRID_BACKEND=elasticsearch silently degraded. Cap elasticsearch>=8.0,<9 (and neo4j>=5.0,<7 defensively) to match the shipped services. Verified end-to-end: smoke passes all three checks (ES BM25 ranking, Neo4j distance-weighted neighbors, and the full RetrievalController routing through ES with max bm25=1.0).
1 parent 642a1ae commit 214481a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ telemetry = [
4444
"opentelemetry-exporter-otlp>=1.25",
4545
]
4646
search = [
47-
"elasticsearch>=8.0",
47+
# Cap below 9: the elasticsearch 9.x client refuses an 8.x server (product/
48+
# version check), and docker-compose.full.yml ships Elasticsearch 8.x.
49+
"elasticsearch>=8.0,<9",
4850
]
4951
graph = [
50-
"neo4j>=5.0",
52+
"neo4j>=5.0,<7",
5153
]
5254
jwt = [
5355
"PyJWT>=2.8",

0 commit comments

Comments
 (0)