-
Notifications
You must be signed in to change notification settings - Fork 883
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
LangGraph Support #801
Comments
I saw the langroid implementation that achieves a similar result: https://github.com/langroid/langroid/blob/main/langroid/agent/callbacks/chainlit.py#L566 |
+1 on this. Definitely need something wrt Langgraph as the dev team at Langchain is heavily moving towards that |
The impact will be huge.If project requires not streaming, it simple to implement. But such requirement is rarely the case. Streaming is a must. Here are a few thoughts.
LangGraph is the sweet spot in the abstraction game. And Chainlit is the sweet spot for chatbot interface. Huge impact. |
Hello, an example has been added in Chainlit/cookbook for langGraph support in this PR. Feel free to enhance it with functionalities ! |
Is your feature request related to a problem? Please describe.
I'm trying to utilize LangGraph with Chainlit, and when I run my workflow I would like to see the Steps the graph takes, however, the step class can only be utilized in an async state, and the graph is constructed out of synchronous class objects.
Describe the solution you'd like
Given some on_message decorator function like so:
It results in the following outputs in my terminal: (Based on https://github.com/langchain-ai/langgraph/blob/main/examples/rag/langgraph_self_rag_mistral_nomic.ipynb)
However, Chainlit gives me the following:
A LangGraph is constructed with nodes and is then compiled into an application, here's my implementation:
For each
node
defined, a step should be generated with the name of that function, and the return value of that function. Here's what a node function might look like:In this method, the initial document retrievals would be reflected in the
retrieve
node, otherwise most steps would just return a string that represents the output sent to the graph's state machine.Describe alternatives you've considered
Generating a DAG based on the graph configuration, or allowing some kind of manual method to define what I outlined above, rather than generating the steps for the user.
Additional context
n/a
The text was updated successfully, but these errors were encountered: