Find answers from the community

Updated 11 months ago

Hi guys, I currently added a

Hi guys, I currently added a SimilarityPostprocessor to my query engine. It works fine, but whenever the similarity index is below the threshold, the answer is "Empty Response". Changing the prompt does not seem to work, is there any option to change this behaviour? Thanks!
T
w
L
4 comments
Are you using the similarity cutoffs? It will remove nodes under the threshold
Yes, I tried with a question that shouldn't get answers and it works fine, was just wondering why the response was just "Empty Response" instead of some sort of "Couldn't find it in the context". I ended up just manually assigning a value like "Sorry couldn't find the answer".
If theres no nodes, there is no call to the LLM
You can detect empty responde and either replace it with something, or make a call to the LLM yourself
Add a reply
Sign up and join the conversation on Discord