Enhance collection and index creation with HNSW support and advanced …#31
Merged
Merged
Conversation
…options - Added HNSW clause with payload_m parameter for collection creation. - Updated CREATE INDEX to support advanced options for keyword, uuid, and text types. - Enhanced error handling for unknown HNSW parameters and validation for payload_m. - Updated documentation to reflect new features and usage examples. - Added tests for HNSW and advanced index options.
pavanjava
approved these changes
May 15, 2026
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
This PR adds richer Qdrant payload index support to QQL and exposes the tenant-optimized indexing path end to end.
Changes
CREATE INDEX ... WITH { ... }support for:keyworduuidtextkeywordanduuid:is_tenanton_diskenable_hnswtokenizermin_token_lenmax_token_lenlowercaseascii_foldingphrase_matchingstopwordson_diskenable_hnswuuidas a supported payload index typeHNSW { payload_m: <int> }supportSHOW COLLECTIONto return structured payload index detailsExamples
CREATE COLLECTION tenant_docs USING HYBRID HNSW { payload_m: 16 }Notes
This PR enables Qdrant's tenant-aware indexing path in QQL, but it does not add application-level tenant authorization or automatic tenant filtering. Tenant isolation for access control still belongs in application logic.
Validation
Ran:
uvx ruff check ..venv\Scripts\python -m pytest tests -qResult:
537 passed