Replies: 1 comment 1 reply
-
Can you check if there are any errors during tool calling? You can enable error msg forwarding or log the errors as follows: https://sdk.vercel.ai/docs/ai-sdk-ui/chatbot#error-messages |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have been building RAG chatbot, but the problem is that LLM does not use the tool automatically (as defined in system prompt), until I directly ask for it. Screenshot:
I am using Gemini ai-studio as in the official Vercel example.
I tried to add:
I tried to play with system prompt. Different prompting techniques...
Nothing helps.
Route that handles useChat requests: https://gist.github.com/AntonIXO/92df1d5ff5119d14bea209767ce4adf3
Anything I am doing wrong, or it's the problem on Google side?
Beta Was this translation helpful? Give feedback.
All reactions