#community-help

Improving Search Hits in Typesense with User Feedback

TLDR Krish asked how to improve search hits based on user input. Kishore Nallan answered Typesense would allow manual curation and informed of upcoming updates.

Powered by Struct AI
13
9mo
Solved
Join the chat
Dec 29, 2022 (9 months ago)
Krish
Photo of md5-7dff5651efcba5c9cdfac93918dc7eeb
Krish
09:45 AM
Hello, could you point me to some documentation that has info on improving the hits? Eg: for certain search queries how do I make the model learn from user action?
09:47
Krish
09:47 AM
If I provide the user a like / dislike button next to the hit, how could I feed it back into my index to ensure everytime the same query is received, the liked responses are sent first followed by the disliked ones.? Of course I'd use some weight mechanism to calculate the likes vs dislikes.
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
10:04 AM
This is not something that Typesense can do out of the box now. But its something we're going to work on next quarter.
Krish
Photo of md5-7dff5651efcba5c9cdfac93918dc7eeb
Krish
10:10 AM
That's awesome. But there should be some hook to influence my hits. For eg: currently the hit order is 1234, but I'd like to show the hits in the order 3241. Isn't something like this possible?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
10:10 AM
Manual curation is possible, check overrides
Krish
Photo of md5-7dff5651efcba5c9cdfac93918dc7eeb
Krish
10:30 AM
OK. Thank you. I'll go through the overrides.

Additionally, could I display the hits first by categories x, y, z always and then the remaining?
10:34
Krish
10:34 AM
I read about pinning the hits, but not sure if the above applies.
10:45
Krish
10:45 AM
Kishore Nallan additionally, could I create search query specific overrides?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
10:59 AM
Yes you can create overrides based on both search query and filters (in 0.24)
Krish
Photo of md5-7dff5651efcba5c9cdfac93918dc7eeb
Krish
11:01 AM
Is 0.24 released? Also, any thoughts on the pinning question above?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
11:09 AM
0.24 on code freeze now, RC builds are available.

For prioritising certain categories over others via override you can use something called optional filtering again available on 0.24. https://github.com/typesense/typesense-website/blob/017ab7b2af54697b0602fb4f15976b829147821e/docs-site/content/0.24.0/api/search.md#sorting-based-on-conditions
Krish
Photo of md5-7dff5651efcba5c9cdfac93918dc7eeb
Krish
11:11 AM
thank you! Taking a look.