-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: Qdrant online store add retrieve_online_documents_v2
#5211
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: master
Are you sure you want to change the base?
feat: Qdrant online store add retrieve_online_documents_v2
#5211
Conversation
Signed-off-by: yassinnouh21 <[email protected]>
Signed-off-by: yassinnouh21 <[email protected]>
Signed-off-by: yassinnouh21 <[email protected]>
assert len(vector_documents["item_id"]) > 0 | ||
assert len(vector_documents["string_feature"]) > 0 | ||
|
||
# Test hybrid search (vector + text) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it's deterministic, we can probably test the actual value return
@HaoXuAI I think Qdrant instance isn't defined in e2e |
@@ -240,8 +274,8 @@ def teardown( | |||
try: | |||
for table in tables: | |||
self._get_client(config).delete_collection(collection_name=table.name) | |||
except Exception as e: | |||
logging.exception(f"Error deleting collection in project {project}: {e}") | |||
except Exception: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this failed from my mypy that is why i added some logs for it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should have been more explicit, you're removing the logging of the exception and i'm not sure if we should
assert len(vector_documents["item_id"]) > 0 | ||
assert len(vector_documents["string_feature"]) > 0 | ||
|
||
# Test hybrid search (vector + text) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it's deterministic, we can probably test the actual value return
"qdrant": ( | ||
{"type": "qdrant", "vector_len": 2, "similarity": "cosine"}, | ||
QdrantOnlineStoreCreator, | ||
), | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
qdrant is not defined at the integration test.
so should we first create pr for it then rebase it on this one. or what do u think @franciscojavierarceo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that'd be great
What this PR does / why we need it:
This PR enhances the Qdrant online store implementation with improved type safety and error handling in the
retrieve_online_documents_v2
method. The changes include:These changes make the Qdrant online store more robust and type-safe, while maintaining backward compatibility with existing functionality.
Which issue(s) this PR fixes:
Fixes #5115
Misc
Key improvements in this PR:
cast()
from typing moduleThe changes have been tested with both unit tests and integration tests to ensure backward compatibility and proper functionality.
@feast-dev/online-store-maintainers