Skip to content
Discussion options

You must be logged in to vote

LLMs are stateless. Oversimplified, each invocation should include the accumulated chat history. If you didn't they wouldn't be able to do simple things like reference coresolution:

Invocation 1:
User: "What's the weather like today"?
Assistant: "It's rainy and 25 degrees"

a) With history:

Invocation 2:
User: "What's the weather like today"?
Assistant: "It's rainy and 25 degrees"
User: "oy that's cold"
Assistant: "Yes grab a jacket!"

b) Without:
User: "oy that's cold"
Assistant: "What's cold?

If you look at the LLM runs in langsmith for both cases, it's pretty obvious.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JohnWangCH
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