Repository navigation
Real testcontainers tests for Qdrant (fixes event-loop block, ignored filter, id collision) — #829 - #837
Merged
Conversation
Only ever MagicMock-tested, which hid several real bugs found against a real qdrant/qdrant: it blocked the event loop (called the sync client directly inside async def), silently ignored metadata_filter, reused per-instance integer ids so a reconnect overwrote existing points, raised instead of returning [] before the first add, and used the deprecated .search() API. Offload all client calls via asyncio.to_thread (keeps the store async-first), apply a native qdrant Filter for metadata_filter, use UUID point ids (append-safe on reconnect), return [] for a missing collection, use query_points, and validate metadata length. Adds real qdrant/qdrant testcontainers tests (nearest-neighbour ranking, metadata filter, top_k, append-on-reconnect, negatives, async contract) and removes the MagicMock test. Part of #829. Closes #836.
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: Qdrant. Deep testing against a real
qdrant/qdrantfound several mock-hidden bugs (#836), including one that violates the async-first invariant.Bugs found & fixed
add/searchcalled the sync client directly insideasync def; now offloaded viaasyncio.to_thread.metadata_filtersilently ignored — now applies a native qdrantFilter.searchbeforeaddraised — now returns[]for a missing collection..search()→query_points.Verification (real data)
8/8 pass against
qdrant/qdrant(real upserts + real vector query), including an explicit append-on-reconnect regression and an async-contract assertion. Wired into the CIintegrationjob.Commits
fix(retrieval): fix QdrantVectorStore against a real Qdrant (#836)ci(test): add qdrant-client to the integration group and CI job (#829)Part of #829.