Hi, are there any plans to include "vector search"...
# community-help
s
Hi, are there any plans to include "vector search" aka search by cosine similarity or euclidean distance?
k
Yes, that's on our radar.
Can you please elaborate on your use case? Do you need that to work along with the search component?
s
Right now I want to use it like this: I pre-calculate embeddings for product name and would then like to use typesense to find duplicates. So wold be mostly used for backend
postgresql's cube do not cut it. I think elastic-search has something like this
k
Got it. Yeah we want to support a
vector[X]
data type that allows you to index vector as just an array of floating point numbers of dimension X and then allow nearest neighbor search on it against a target vector.
s
that should hit my use case, assuming I can choose the function for nearest neighbor
k
Will likely start with cosine I think. Will depend on the library used and data set size (approximation places some restrictions on the metric used).
s
cosine is what I need, so perfect
k
How are you calculating the embedding? Word2vec / fasttext?
s
I am using sbert.net
k
👍