-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Description
Required prerequisites
- I have searched the Issue Tracker and Discussions that this hasn't already been reported. (+1 or comment there if it has.)
- Consider asking first in a Discussion.
Motivation
ObVecClient ann_search supports multiple distance functions (l2_distance,cosine_distance, inner_product, negative_inner_product) and SQLAlchemy where_clause filtering, but OceanBaseStorage.query() currently exposes only l2/cosine and does not allow filters.
Solution
- Extend distance to include inner_product and negative_inner_product and map them
to the corresponding SQLAlchemy functions.- Add an optional where_clause parameter to OceanBaseStorage.query() and pass it
through to ann_search. - Update OceanBase storage docs and example code to show a filtered ANN query using
sqlalchemy.text or SQLAlchemy expressions.
- Add an optional where_clause parameter to OceanBaseStorage.query() and pass it
Alternatives
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1Task with middle level priorityTask with middle level priority
Type
Projects
Status
No status