I have a use case where I have multiple types of d...
# community-help
t
I have a use case where I have multiple types of documents "Photos" and "Products" in different collections and I would like to perform vector search to get similar products to the photo. Does Typesense support similarity search between docs in different collections? The docs for similar search aren't explicit about this, but it shows an example which appears to be for docs within the same collection: https://typesense.org/docs/0.24.0/api/vector-search.html#querying-for-similar-documents
f
You could take a look into image search for this. Here's the docs and here's a demo on image search. If you use your own embeddings, you can use them in the different collection, but we'd advise having both of them on the same collection instead, so you can use auto-generated embeddings as well. Also, side-note, I noticed that the link you posted is using the 0.24 documentation, which is really old. There's a little notification on the top of the page you can use to go to the latest documentation of the respective page you're on: