KBsearch not working in the tutorial
Hey guys,
I went with the tutorial "Build an AI support agent"
and during the step "Querying the Knowledge Base"
I'm asked to add the block "KBsearch".
In the preview the block is connecting to the knowledgebase and gives me 3 chunks,
but as soon as I test my setup the agent will always tell me that it can't find the Information I'm looking for.
I added the example prompt that comes after the kbsearch and made sure that {last_utterances} and {chunks} are linked.
But still, no output other than that the agent can't find it.
What am I missing here?
Thanks in advance

2 Replies
Here are the two things that almost always cause the behaviour you’re seeing:
1. Wrong variable in the “Question” field of KB Search
• The system variable is {last_utterance} (singular). If you typed {last_utterances} the step receives an empty string at runtime, so no chunks pass the similarity test and the Not-found path fires.
• Open the KB Search step → Question → pick last_utterance from the variable list, then run the test again. 2. Minimum-score threshold too high
• In Preview you can still see the chunks even when their score is below the threshold, but in-runtime the step will route to Not-found.
• If the scores you saw were red, lower the “Minimum chunk score” or toggle the Not-found path off while you test. After fixing the variable name and (if needed) lowering the score threshold, the prompt that uses {chunks} should start producing answers. Docs: https://docs.voiceflow.com/docs/kb-search
• The system variable is {last_utterance} (singular). If you typed {last_utterances} the step receives an empty string at runtime, so no chunks pass the similarity test and the Not-found path fires.
• Open the KB Search step → Question → pick last_utterance from the variable list, then run the test again. 2. Minimum-score threshold too high
• In Preview you can still see the chunks even when their score is below the threshold, but in-runtime the step will route to Not-found.
• If the scores you saw were red, lower the “Minimum chunk score” or toggle the Not-found path off while you test. After fixing the variable name and (if needed) lowering the score threshold, the prompt that uses {chunks} should start producing answers. Docs: https://docs.voiceflow.com/docs/kb-search
Lowering the threshold solved the problem. Thank you.