-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[Bug] New to DSPy. Using LLama 3.2 with ReAct 2 + 2 = 5 #7997
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
Comments
@andrewfr Thanks for reporting the issue! You can quickly check if this is a DSPy issue, prompt issue or LM issue by getting the history:
By running the command above, you should see the prompt and response from LM. |
Thanks for the advice. I think the immediate source of the problem is the inclusion of the question mark "?" . The example works when it is omitted. I would consider this a bug. Perhaps the "?" is being interpreted? Here is the result of inspect
|
Looks like a common problem with base model? Maybe try again with instruct model? |
I tried the query in the ollama REPL and llama 3.2:3b. It worked. When I have time, I can try: different models; tool calling with different prompt techniques (ReACT, COT). If that doesn't work, I'll dive into the code. Cheers, |
What happened?
I am new to DSPy. I have written a small DSPy program. The program calls evaluate 5 times and ends up with the result 5. I don't understand why a tool would be called multiple times and its result re-interpreted.
$ python llama_tool.py
2 + 2
2 + 3
2 + 3
2 + 3
2 + 3
5.0
Cheers,
Andrew
Steps to reproduce
DSPy version
2.6.13
The text was updated successfully, but these errors were encountered: