-
Notifications
You must be signed in to change notification settings - Fork 417
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Agent RAG Tutorial with Ollama/ReActAgent failing in tool call because of "missing" Input value #1599
Closed
1 of 14 tasks
Labels
bug
Something isn't working
Comments
@nea I tried it with using deepseek-r1:8b, it does work.
|
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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: