bug: Getting an error when answering questions using KB - Unexpected token Token('$END', '') at line 2, column 87 #1026
Labels
bug
Something isn't working
status: needs triage
New issues that have not yet been reviewed or categorized.
Did you check docs and existing issues?
Python version (python --version)
3.11
Operating system/version
MacOS 15.3
NeMo-Guardrails version (if you must use a specific version and not the latest
0.12.0
Describe the bug
Trying to answer user questions using documents in KB and getting this error consistently after a few questions are asked This does not happen consistently. Using Colang 2.0. Here is the simple flow that uses "when user asks about policies" to answer user question from the KB
flow main
activate automating intent detection
activate generating user intent for unhandled user utterance
global $user_language
$response_type = await select language
while True:
if $response_type == "continue"
await select intent
flow select intent
bot provides assistance
when user asks about policies
llm continue interaction
or when user asks about application status
activate get application status
or when user asks about benefit amount
activate get benefit amount
or when user asks about appointment
activate get appointment details
or when unhandled user intent as $ref
bot say "got intent: {$ref.intent}"
DEBUG All internal event processed -> advance actionable heads: statemachine.py:419
INFO Running action :: AddFlowsAction runtime.py:262
INFO Executing registered action: AddFlowsAction action_dispatcher.py:198
INFO Start AddFlowsAction! {'config': '@meta(bot_intent="bot provide information about vehicle value_and_TCA eligibility")\nflow _dynamic_cc9dca07 runtime.py:71
bot provide information about vehicle value_and_TCA eligibility\n '}
WARNING Failed parsing a generated flow runtime.py:86
@meta(bot_intent="bot provide information about vehicle value_and_TCA eligibility")
flow _dynamic_cc9dca07 bot provide information about vehicle value_and_TCA eligibility
⠸ Working (16 events processed)... ERROR No terminal matches '"' in the current parser context, at line 1 col 65 action_dispatcher.py:267
Steps To Reproduce
Expected Behavior
No error should be happen
Actual Behavior
Expecting the bot to summarize the content extracted from the kb
The text was updated successfully, but these errors were encountered: