My bot keeps tripping over its own feet when calling tools and I'm honestly so frustrated. Im trying to finish this support agent for my sisters online store by next Friday but it keeps hallucinating arguments and just acting weird. My logic was that ReAct would fix the reasoning because it makes it think first but it just gets stuck in loops.
I read that few-shot prompting helps but others say it clutters the context window and makes things worse. My budget is pretty tight so I'm stuck using smaller models for now. Should I be rewriting my tool descriptions or is there some prompt trick to stop it from picking the 'refund' tool when someone just wants to track a package?
Unfortunately ReAct is not as good as expected for reliability. I had issues with loops too. Try:
> my logic was that ReAct would fix the reasoning I had this exact issue last month. Unfortunately, ReAct created more problems than it solved on my budget hardware. I spent weeks fighting those loops only to realize the model wasnt smart enough. It was messy. Moving to Mistral AI Mistral 7B v0.3 8K Context using native function calling saved the project. Just keep tool descriptions super short and blunt.
To add to the point above: honestly, tool calling is such a thrill when it finally clicks! I've spent ages banging my head against the wall with loops and hallucinations. The trick with smaller models is that they need structure, not just vibes. ReAct is awesome for big models but it's a total resource hog for the little guys and usually leads to those annoying loops you're seeing. Check out these tips to save your Friday deadline: