You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OpenSearchVectorStore: no reconnect persistence — hidden by MagicMock #846
OpenSearchVectorStore (src/synapsekit/retrieval/opensearch_vector.py), previously only MagicMock-tested, returned [] after a reconnect. Found via a real opensearchproject/opensearch testcontainer (epic #829). (Async is fine — it offloads via run_in_executor — and the k-NN mapping works on real OpenSearch 2.17.)
Bug
No reconnect persistence — search() returned [] whenever not self._index_created and self._dims is None, so a freshly reconnected instance never found already-indexed vectors.
Fix
Drop the guard; _search_sync returns [] on NotFoundError (covers search-before-add and reconnect).
Test
Real opensearchproject/opensearch:2.17 testcontainer: true nearest-neighbour k-NN ranking, metadata filter, top_k, reconnect persistence, empty/negative, async contract. Replaces the MagicMock test; runs in the CI integration job.
Activity
fix(retrieval): OpenSearchVectorStore finds persisted vectors on reco…