I suspect that synonyms are still needed because typically the embeddings might not cover all cases, especially for a domain like ecommerce which might have specific lingo which might be part of the training data used to train the embedding models.
o
Ola
10/09/2023, 12:08 PM
Thanks Kishore.
What's the approach to implement something like this? Does Typesense take care of linking the categories <=> synonyms and the embeddings automatically? I can't find any such in the doc
k
Kishore Nallan
10/09/2023, 12:40 PM
It's not automated. For cases where semantic searches don't work you have to map them via the synonyms API
o
Ola
10/09/2023, 12:44 PM
That part is clear.
My issue is, what is the order of execution?
It looks into keywords, synonyms and vector embeddings and generate a ranking?
k
Kishore Nallan
10/09/2023, 12:45 PM
When synonyms are found keywords are substituted and the query is made again and all results are combined.