#community-help

Similarity Search Feature in Typesense

TLDR Arad inquired about "similarity search" feature in Typesense, Kishore Nallan clarified that the "vector search" can serve the purpose with provided examples and resources.

Powered by Struct AI

2

1

1

Oct 09, 2023 (1 month ago)
Arad
Photo of md5-c2105be1c75ca77ae57ab06abafe105c
Arad
03:10 AM
Does Typesense have a "similarity search" type of feature? Many E-commerce sites for example have a "related products" section on every product page.
Is it possible to implement something like that with TypeSense? Where you basically give Typesense the ID of a specific document in a collection and it finds the N most similar documents.
lnx supports this, for instance.
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
03:11 AM
Yes this can be done through vector search. You can create an embedding from a set of fields in the collection which will capture the semantic meaning of the product. Then by doing a vector search you can get similar products.

1

03:12
Kishore Nallan
03:12 AM
The "Find similar" link under each product here works that way: https://ecommerce-store.typesense.org/

1

03:13
Arad
Photo of md5-c2105be1c75ca77ae57ab06abafe105c
Arad
03:14 AM
Kishore Nallan Thank you!

1