-
Notifications
You must be signed in to change notification settings - Fork 41
Fix Qdrant cloud indexing: Add keyword index for 'type' field during #170 #220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…rant-client compatibility
|
Nice work. Its connecting to Qdrant Cloud now but looks like there is another issue while uploading the vector points to the Qdrant Cloud : Would you be able to investigate ? |
|
@raphael-intugle can you try now, it should work now |
|
Great find @Mukesh-P ! So the ideal way this should be done is, the user should be able to set it as an environment variable. Would you be able to make that change ? Basically in settings.py, a new variable called QDRANT_INSERT_BATCH_SIZE should exist with a default value. The user will be able to override this from the environment. The SemanticSearchCRUD should pick it up from this if no value for it was passed in from the function. Feel free to get in touch with me on Discord if you need more clarity ! |
… error handling and validation
|
@raphael-intugle can you check now, i hope it works |
Issue link: #144
Description
Fixes "Index required but not found for 'type' field" error on cloud-hosted Qdrant instances by adding proper keyword indexing for the 'type' payload field during collection creation.
Type of Change
Bug fix (non-breaking change which fixes an issue)
Related Issue(s)
Fixes #[HELP WANTED] Bug: Qdrant semantic search fails due to missing index for "type" field
Changes Made
Added payload_schema parameter to QdrantVectorConfiguration for payload index support
Updated collection creation to include keyword index for 'type' field
Removed manual post-creation index creation (now handled at collection init)
Testing
Test Commands:
uv run pytest tests/semantic_search/ -v
uv run pytest tests/ -v --tb=short
All tests pass: 63 passed, 18 skipped
Checklist
-[x] My code follows the code style of this project
-[x] Unit tests pass locally
-[x] New and existing functionality works
-[x] No breaking changes
Additional Context
This resolves the Qdrant cloud filtering issue by ensuring collections are created with proper keyword indexes from the start.