You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just find that chat history in final request look like that - <CHAT HISTORY> [HumanMessage(content='Message one'), AIMessage(content='Hey'), HumanMessage(content='Message two')] </CHAT HISTORY>
i a bit confused, it how it should looks, is it correct?
As i remember i was something like this before: AI:message \n USER:Text Message
Can anyone clarify this for me?
P.S.: Does anyone have information on how models like OpenAI, Anthropic, or Gemini are trained to understand conversation history?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I just find that chat history in final request look like that -
<CHAT HISTORY> [HumanMessage(content='Message one'), AIMessage(content='Hey'), HumanMessage(content='Message two')] </CHAT HISTORY>
i a bit confused, it how it should looks, is it correct?
As i remember i was something like this before:
AI:message \n USER:Text Message
Can anyone clarify this for me?
P.S.: Does anyone have information on how models like OpenAI, Anthropic, or Gemini are trained to understand conversation history?
My research gives me this ideas:
Langchain use its own history structure for a reason?
langchain = "^0.2.5"
langchain-core = "^0.2.9"
langchain-community = "^0.2.5"
Beta Was this translation helpful? Give feedback.
All reactions