Agent RAG Tutorial with Ollama/ReActAgent failing in tool call because of "missing" Input value #1599
Open
1 of 14 tasks
Labels
bug
Something isn't working
Describe the bug
When working on the https://ts.llamaindex.ai/docs/llamaindex/guide/agents/4_agentic_rag tutorial to create an Agent RAG, without OpenAI but with Ollama (command-r7g) locally, the solution does not work, as the required input for the
QueryEngineTool
is missing theInput:
keyword, looked for in react.ts#L99extractToolUse
.By my tests, I was able to reproduce thoughts as
which can be captured by making "Input:" optional, such as:
/\s*Thought: (.*?)\nAction: ([a-zA-Z0-9_]+).*?\.*[Input:]*.*?(\{.*?\})/s
This worked fine for me, and I do not see a breaker to the previous logic. If you agree, I could create a PR or you just change it yourself.
Or am I missing something?
Thanks a lot in advance for your help
To Reproduce
Code to reproduce the behavior:
Expected behavior
Tool calls work fine with input
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: