Skip to content
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

Add a Conversational ReAct Agent #246

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft

Conversation

nsarrazin
Copy link
Contributor

@nsarrazin nsarrazin commented Aug 30, 2023

This new HfChatAgent can:

  • Decide whether to use tools or not
  • Explicitly plan ahead before acting (plan-and-execute capability)
  • Use the input of previous tools when deciding the next step (this makes web search as a tool possible, wasn't possible with transformers agents style agents, because all steps are executed at once)
  • Formulate a final answer based on the outputs of tools in scratchpad
  • Work conversationally, can do follow-up things in a conversation

Things that I'm still fixing:

  • Passing multimodal outputs from one tool as an input to the next tool
  • Implementing web search as a tool (very simple, just copy the code from chat-ui for now)
  • Make multimodal inputs work on node.js side (this breaks sveltekit integration)
  • Test the prompts a bit more to make sure they're reliable
  • Finish an updated demo that showcases the scratchpad and which tools are being called when. (simple, just adapt the current poc-agents.js)

If I have time I also want to refactor a bunch of things I'm not happy with in the HfChatAgent, this is not ready for review atm, code still need to be cleaned up. Done!

@nsarrazin nsarrazin added enhancement New feature or request agents @huggingface/agents related labels Aug 30, 2023
- moved tools & files to preprompt
- improved files description in prompt
- tweaked prompts for improved recall
- added few-shot examples to planning step
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agents @huggingface/agents related enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant