Skip to content

Conversation with history in LangServe #286

Answered by eyurtsev
petrishutin asked this question in Q&A
Discussion options

You must be logged in to vote

Example here:

Using session_id passed via config:

https://github.com/langchain-ai/langserve/tree/main/examples/chat_with_persistence

Using conversation_id and a user_id. In this example user_id is lifted off a cookie, but you can swap with your own way of identifying the user (e.g., jwt)

https://github.com/langchain-ai/langserve/tree/main/examples/chat_with_persistence_and_user

These require langchain_core >= 0.1.0

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@petrishutin
Comment options

Answer selected by petrishutin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants