KnowledgeBase fallback always returns false
# 🤝help
n
I followed the Fallback video here:

https://www.youtube.com/watch?v=Q2VMitD6DMU

but {{turn.KnowledgeAgent.responded}} seems to always return false even when it finds the answer in the knowledge base. I test this by creating 2 text cards in the Knowledge Base node: the 1st text card contains {{turn.KnowledgeAgent.answer}} the 2nd text card contains {{turn.KnowledgeAgent.responded}} "Enable Knowledge Answering" is turned ON for this node. When I ask the bot a question where it finds the answer in the KB, it responds with the answer and then "false" right after. When I ask the bot a question where it does not find the answer in the KB, it responds with no answer and then "false" right after. See the 3 screenshots for a quick summary of what I mean. I should mention this is a KB contained in a folder, but I don't think that should affect this functionality. Can anyone let me know where I'm going wrong as this isn't a problem in the fallback video above.

https://cdn.discordapp.com/attachments/1139969401479766088/1139969401706250270/Screenshot_2023-08-12_at_10.06.02_AM.png

https://cdn.discordapp.com/attachments/1139969401479766088/1139969401941143651/Screenshot_2023-08-12_at_10.08.07_AM.png

https://cdn.discordapp.com/attachments/1139969401479766088/1139969402146660362/Screenshot_2023-08-12_at_10.08.27_AM.png

a
Can you add the log?
n
Copy code
21:02:00debugExecuting hook conversation_turn_started of agent "KnowledgeAgent"
21:02:00debugGenerating answer for KB
21:02:00debugContext: Summary of the conversation:
"""
conversation.SummaryAgent.summary
"""

Transcript:
"""
conversation.SummaryAgent.transcript
"""
21:02:01debugStarting from Main flow
21:02:01debugTransition from (flow:Main) [node:Start] to [node:Greeting]
21:02:01debugSending Message. Type: text. Text: Hello! I'm Tendy, your friendly rental property assistant.
21:02:01debug[Capture] Start information capture
21:02:01debugSending Message. Type: choice. Text: What can I help you with?
21:02:01debugWaiting for user input
21:02:03debugExecuting hook conversation_turn_started of agent "KnowledgeAgent"
21:02:03debugSkipping KB agent because no KBs are enabled
21:02:03debug[Capture] User clicked on a button, so we are skipping the cognitive extraction
21:02:03debug[Capture] Field validation successful! Extracted: "I have a question about my rental". Input: I have a question about my rental
21:02:03debug[Capture] Prompt success
21:02:03debugTransition from (flow:Main) [node:Greeting] to [node:AskRentalQuestion]
21:02:03debugEntering workflow (flow:Rental Question) [node:Entry] from (flow:Main) [node:AskRentalQuestion]
21:02:03debugTransition from (flow:Rental Question) [node:Entry] to [node:AskQuestion]
21:02:03debug[Capture] Start information capture
21:02:03debugSending Message. Type: text. Text: Sure, what question do you have?
21:02:03debugWaiting for user input
21:02:14debugExecuting hook conversation_turn_started of agent "KnowledgeAgent"
21:02:14debugGenerating answer for KB
21:02:14debugContext: Summary of the conversation:
"""
conversation.SummaryAgent.summary
"""

Transcript:
"""
conversation.SummaryAgent.transcript
"""
21:02:15debugManual answering is ON, skipping answering { answer: 'Your rent is due on the 1st of every month.',
  citations: 
   [ { kbId: 'kb-d23c2e00af',
       dsId: 'ds-244d508031',
       offset: 42,
       friendlyName: '(doc) Untitled.html ' } ] }
21:02:15debug[Capture] Capture is a raw listen, so we are skipping the cognitive extraction
21:02:15debug[Capture] Field validation successful! Extracted: "when do i pay my rent?". Input: when do i pay my rent?
21:02:15debug[Capture] Prompt success
21:02:15debugSending Message. Type: text. Text: Your rent is due on the 1st of every month.
21:02:15debugSending Message. Type: text. Text: false
21:02:15debugEnd of workflow
Thanks for leading me down this path. I ended up resetting my Knowledge Agent Values and it now works properly. Not sure what was different about the values I had, but thanks again!
a
oh okay great 🙂
w
How did you reset "Knowledge Agent Values"?
a
Use {{!turn.KnowledgeAgent.answer}} for when there isnt a response from the knowledge base
233 Views