Now that semantic search is released in 0.25, I'd ...
# random
g
Now that semantic search is released in 0.25, I'd like to bring this again as a suggestion for improvement in one of the next releases: https://github.com/typesense/typesense/issues/1035. Use case: I want to make a semantic search with user input, but I want to inject some context. If I use `q: `${userInput} ${context}``, the result goes too much towards the context and the user input doesn't have enough weight. I need some way to control the exact weight of each term. Perhaps something like
vec:([{ q: "${userInput}", weight: 0.7 }, { q: "${context}", weight: 0.3 }])
.
j
Yup, on our radar to look into in the next few weeks - month
👏 1
g
Oh, I'm skimming the docs and just realized there's already a parameter for weighted search (
query_by_weights
), and that's much simpler than what I suggested. 😅
j
Although query_by_weights does not affect an embedding field at the moment...
g
Yes, I mean, I guess it would be easier to just make it affect rather than create new syntax
👍 1