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

WIP: adds text streaming to console, not working for API front end #3

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

carolinebridge
Copy link
Collaborator

@carolinebridge carolinebridge commented Nov 13, 2024

This PR is a WIP for adding text streaming to the web interface and the console interface.

It is not ready for main, as text streaming to the console does not accommodate for Markdown format in the current state (it prints plaintext); and text streaming through flask has not been solved.

Some resources:

https://langchain-ai.github.io/langgraph/how-tos/streaming-tokens/#streaming-llm-tokens
https://langchain-ai.github.io/langgraph/concepts/streaming/
langchain-ai/langchain#20124
https://flask.palletsprojects.com/en/stable/patterns/streaming/

Using an alternative API to Flask such as FastAPI or LangChain's LangServe (when it works with LangGraph) may be advisable for this objective.

Related issue: #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant