Open Moe03 opened 1 week ago
@MarkDuckworth Could you take this into consideration as part of your API design?
+1 this would be great to have
Thanks for the feedback. I've passed it along to the rest of the team working on vector search in Firestore.
I can confirm that similarity threshold and returning the vector distance is not supported as of today. The Firestore vector search feature is currently in Preview and it is not necessarily feature complete.
Is your feature request related to a problem? Please describe. I'm trying to be able to add a thresold to my similarity search with vectors but it doesn't semm to be mentioned here anywhere? https://firebase.google.com/docs/firestore/vector-search#node.js_2
Describe the solution you'd like Adding a field called similarityThreshold to the vector search query would be perfect:
Also adding to the queryies of such types (.findNearest) the similarity score with the search vector is highly beneficial for debugging purposes, we're currenlty using pgvector on postgres but would love to migrate everything on firestore but these may be annoying to deal with.
Describe alternatives you've considered There is nothing mentioned in the docs, I hope it's already implemented but not docuemented/typed properly?