Description
AvaTaR is a research framework from a NeurIPS 2024 paper that improves how LLM agents use the tools they are given. Rather than hand-tuning prompts, it compares positive and negative examples sampled from training data and uses that contrast to write more useful guidance for the agent's tool use. The repository holds the code needed to reproduce the paper's results on the STaRK and Flickr-30kEntities benchmarks, including the embedding and data preparation those runs need. The method is also integrated into DSPy as an Avatar module for running an agent and an AvatarOptimizer for improving its actor. To use it in DSPy you define a task signature and a list of tools in LangChain format, then optimize the actor with the comparator module. The project is aimed at researchers and developers building tool-using agents who want a reproducible method, and a DSPy notebook walks through a general question answering example.…
Highlights
- Optimizes LLM agent tool use with contrastive reasoning
- Avatar module and AvatarOptimizer in DSPy
- Reproduces results on STaRK and Flickr-30kEntities
- Accepts tools in LangChain format
Ratings & Reviews
No ratings yet
Be the first to rate Avatar.
People also visit
Avatar FAQ
What does AvaTaR do?
It optimizes an LLM agent so it uses the tools it is given more effectively. It reasons over positive and negative examples from training data to write better prompts for the agent.
Who is it for?
Researchers and developers working on LLM agents that call tools, and anyone who wants to reproduce the results of the NeurIPS 2024 paper.
Can I use it with DSPy?
Yes. Avatar is integrated into DSPy as an Avatar module for agent execution, and AvatarOptimizer optimizes the actor.
What do I need to start?
For general question answering, a DSPy task signature and a list of tools in LangChain format. Reproducing the paper also needs the STaRK and Flickr-30kEntities data and API keys set on the command line.
Is it open source?
Yes. The code is public on GitHub.
What are the best Avatar alternatives?
Popular alternatives to Avatar include LLMAgentPapers, AgentReview and Web. See all Avatar alternatives




