Repository navigation
Real tests for Milvus via Milvus Lite (fixes fully-broken store) — #829 - #841
Merged
Merged
Conversation
Only ever MagicMock-tested, which hid a fully-broken store: the schema had no primary key (Milvus rejects it even with auto_id), create_index was passed a plain dict instead of an IndexParams object, metadata was stored as dynamic fields that never came back on search, and the sync MilvusClient was called directly inside async def (blocking the event loop). Declare an auto-id INT64 primary key, store metadata in a JSON field (filtered via metadata["key"] and returned via output_fields), build IndexParams with prepare_index_params, and offload all client calls via asyncio.to_thread. Adds the first real tests for this store via Milvus Lite (embedded real engine; standalone needs etcd+minio). Part of #829. Closes #840.
Closed
18 of 19 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Next in epic #829: Milvus. Milvus standalone needs a 3-container deployment (etcd+minio+milvus); this uses Milvus Lite — the official embedded build of the same real Milvus engine — so it's real vector search without the ops overhead. First-ever test for this store, and it was broken end-to-end (#840).
Bugs found & fixed
PrimaryKeyException).create_indexgot a dict where MilvusClient needs anIndexParamsobject.output_fields=["text"]) — now a JSON field, filtered and returned.async def) — nowasyncio.to_thread.Verification (real data)
8/8 pass against real Milvus Lite: real inserts, real vector search, JSON-metadata filter, persistence across reopen, async contract.
milvus-liteis declared in the integration group so CI actually runs it (not skips).Commits
fix(retrieval): fix MilvusVectorStore against a real Milvus (#840)ci(test): add pymilvus + milvus-lite to the integration group and CI job (#829)Part of #829.