You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Discord it was asked whether we can specify a distance threshold when calling the Vectorsearch#ask method. The need is to return ALL record based on their relevance score as opposed to returning a static number of k: record.
Tasks
Explore whether vectorsearch DBs support a distance threshold parameter. If yes -- we should implement it. If no -- we should not because then it could be done on the client side.
Modify vectorsearch#ask(), vectorsearch#similarity_search_by_vector() and vectorsearch#similarity_search() methods to accept distance_gte: ("distance greater than or equal") parameter to set this threshold.
Note: We might need to normalize/standardize the distance scores that various vectorsearch engines return.
The text was updated successfully, but these errors were encountered:
Description
In Discord it was asked whether we can specify a distance threshold when calling the
Vectorsearch#ask
method. The need is to return ALL record based on their relevance score as opposed to returning a static number ofk:
record.Tasks
vectorsearch#ask()
,vectorsearch#similarity_search_by_vector()
andvectorsearch#similarity_search()
methods to acceptdistance_gte:
("distance greater than or equal") parameter to set this threshold.Note: We might need to normalize/standardize the distance scores that various vectorsearch engines return.
The text was updated successfully, but these errors were encountered: