Spaces:
Running
[FEATURE] Tools
Tools on HuggingChat
Learn more about available tools in this youtube video: https://www.youtube.com/watch?v=jRcheebdU5U
Today, we are excited to announce the beta release of Tools on HuggingChat! Tools open up a wide range of new possibilities, allowing the model to determine when a tool is needed, which tool to use, and what arguments to pass (via function calling).
- For now, tools are only available on the default HuggingChat model: Cohere Command R+ because it's optimized for using tools and has performed well in our tests.
- Tools use ZeroGPU spaces as endpoints, making it super convenient to add and test new tools!
Available tools
Tool name | Description | Host |
---|---|---|
Web Search | Query the web and do some RAG on retrieved content against the user query | HuggingChat internal tool |
URL Fetcher | Fetch text content from a given URL | HuggingChat internal tool |
Document Parser | Parse content from PDF, text, csv, json and more | ZeroGPU Space |
Image Generation | Generate images based on a given text prompt | ZeroGPU Space |
Image Editing | Edit images based on a given text prompt | ZeroGPU Space |
Calculator | A simple calculator for evaluating mathematical expressions | HuggingChat internal tool |
How we choose tools
- A tool must be a ZeroGPU Space that comes by default with exposed API endpoints.
- Tools need to be fast (~25 seconds max) to ensure a good user experience.
- In general, we prefer simple and fun tools (like a new model) over complex workflows that are harder to test and more likely to fail.
Do you have an idea for a tool to add or to update one directly on HuggingChat? Share your thoughts in this ๐ฅ community discussion.
Next Steps
- Use previously generated files with tools (probably)
- Add tools to Community Assistants: Making it possible for users to add their own ZeroGPU Spaces as tools in their Assistants.
- Add more official tools on a regular basis.
- Improve existing tools.
- Support more models (maybe starting with Llama-3)
- Add multi-step Tool Use (aka Agents)
- Add ability to reference previous files from the conversation.
- Add extra tools at runtime via OpenAPI specification.
chat ui pauses
chat ui pauses
https://huggingface.co/chat/ access it from here
@Stefan171 Thanks for the report! Both issues should be fixed now, thanks to your screenshots!
@nsarrazin Pleasure. It's working now. Thanks for developing these tools.
So this models use up the quota of Huggingface GPU from the Logged in account? Only the premium members can use this new community tools after a few tries
What's the image
I am developing a Telegram bot that includes the Huggingface API to provide global responses for an interactive game. I need to know if the API has access to the "Tools Beta" feature, as this is critical to the functionality of our game. Or please tell me what code is available in the open source so that this can be implemented directly on the computer?
How do the tools work internally with prompting? I'd like to create something similar with an LLM assistant.
@handfuloftitty wth did you just sent ๐ณ
How do the tools work internally with prompting? I'd like to create something similar with an LLM assistant.
Everything is open source: https://github.com/huggingface/chat-ui
Everything is open source: https://github.com/huggingface/chat-ui
I tried looking around but it's hard to find. Do you know where in the codebase the prompts are located?