Skip to content

Chat history/memory #5504

Discussion options

You must be logged in to vote

I did not manage to get this work. But it seems like the go-to way to implement an LLM memory is to use something like described in the Langchain documentation. And this article on pineconde.io I found.

TLDR

  • Pass the last k messages along with the prompt
  • Create a summary of the past conversation and pass this along with the prompt
  • Use a combination of the previous two
  • Use a vector database.

I hope this helps anyone else that was confused about this.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gurbindersingh
Comment options

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