Find answers from the community

Updated 2 years ago

For example when I searched for Disney

At a glance
For example, when I searched for "Disney", there were no relevant results in the source text. But when I searched for "D isney", the correct content about Disney appeared.
L
K
7 comments
Vector search is best suited for semantic search (i.e. using a phrase to find similar pieces of text), rather than querying a single word

You might be more interested in the keyword index ?
Thank you for your suggestion! Actually I am searching for a full name (surname plus given name), which can also be considered as a phrase? My use case is to make a knowledge base application for customers, so I think semantic search is more suitable. I will try keyword indexing, is there any way to combine different indexes together?
Also, when I search for the phrase 'Please introduce someone', some people don't show up in the results, but some do.
Yea, that's kind of the nature of embeddings lol. By default, its returning the top 1 matching node
You can increase the top k nodes using something like index.query(..., similarity_top_k=3, response_mode="compact")
I set similarity_top_k to 4, but there are still no results for some people. πŸ˜‚ Thank you very much for your answer, I will try to combine index!
Add a reply
Sign up and join the conversation on Discord