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

Enhanced LangGraph Streaming Support & Documentation #1393

Open
JerePlum99 opened this issue Oct 2, 2024 · 0 comments
Open

Enhanced LangGraph Streaming Support & Documentation #1393

JerePlum99 opened this issue Oct 2, 2024 · 0 comments
Labels
enhancement New feature or request needs-triage

Comments

@JerePlum99
Copy link

Is your feature request related to a problem? Please describe.

  • Utilizing LangGraph within Chainlit to stream events and the final response remains difficult and hard for users to implement. Moreover, current implementations appear to significantly decrease the responsiveness of LangGraph agent within the UI.
  • LangGraph Support #801 Tackled part of the issue and the example implementation is useful, but I wouldn't count that as full support. As mentioned in that thread, I think this is relatively complex.

Describe the solution you'd like

  • A similar solution/demo as that provided for by Langroid for integration with Chainlit.
  • Tighter support and documentation around how to use astream_events to display events and stream the final response

Describe alternatives you've considered

  • There are workshopped solutions and a PR in the cookbook, but they are not easy to find and generally the cl.LangchainCallbackHandler does not seem to have clean support for streaming. It only streams if force_stream_final_answer=True.

Additional context

  • Example of speed inconsistency below - my actual LangGraph performs fine in a CLI or standalone, but consistently adds significant time when streamed in Chainlit
    image
@dosubot dosubot bot added the enhancement New feature or request label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant