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

Display intermediate work (e.g. LLM agent thought process) inside Chatbot messages #5346

Open
1 task done
taoari opened this issue Aug 25, 2023 · 4 comments
Open
1 task done
Assignees
Labels
💬 Chatbot Related to the Chatbot component enhancement New feature or request

Comments

@taoari
Copy link

taoari commented Aug 25, 2023

  • I have searched to see if a similar issue already exists.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Agent becomes a popular topic for LLM. An agent usually has a thought process and does some intermediate work. It would be great if gr.Chatbot could adopt to display those processes.

E.g. OpenAI code interpreter "Show work"

Screenshot 2023-08-25 at 11 08 44 AM

E.g. LangChain Agent "Thought process"

https://python.langchain.com/docs/integrations/callbacks/streamlit

Screenshot 2023-08-25 at 11 04 45 AM

Describe the solution you'd like
A clear and concise description of what you want to happen.

Something similar to OpenAI code interpreter "Show work" or LangChain Agent "Thought process" (streamlit) is supported by gr.Chatbot.

Additional context
Add any other context or screenshots about the feature request here.

@abidlabs abidlabs added enhancement New feature or request new component Involves creating a new component labels Aug 25, 2023
@abidlabs
Copy link
Member

Thanks for creating these issues @taoari

cc @dawoodkhan82 -- I don't think we add this to the component cleanup sprint, but I went ahead and added to the tracking issue: #4800

@abidlabs abidlabs removed the new component Involves creating a new component label Dec 5, 2023
@abidlabs abidlabs added the 💬 Chatbot Related to the Chatbot component label Mar 15, 2024
@TheoLvs
Copy link

TheoLvs commented May 20, 2024

Hello ! Any news on this feature ? With the rise of agents, it would be incredible <3

@freddyaboulton
Copy link
Collaborator

Hi @TheoLvs - I have a prototype working as a custom component. Will coordinate with the team on how to upstream to core.

@freddyaboulton freddyaboulton self-assigned this May 20, 2024
@freddyaboulton
Copy link
Collaborator

Hi @taoari @TheoLvs . I released a custom component called AgentChatbot that displays intermediate thoughts/messages.

Would love your feedback on this while we discuss how to upstream this to core Gradio.

Docs and Demo here: https://huggingface.co/spaces/freddyaboulton/gradio_agentchatbot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💬 Chatbot Related to the Chatbot component enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants