Skip to content

Extensible Conversation History Management #2

Closed Answered by marcominerva
Nehmiabm asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Nehmiabm!

The need to maintaining conversation history is a common requirement for such applications. In this sample, for the sake of simplicity I directly use a Memory Cache with Semantic Kernel, but you can take a look to https://github.com/marcominerva/ChatGptNet, a ChatGPT integration library that I'm currently developing. It support automatic conversation management and provides an abstraction over the concept of cache for persistent chat storage.

In particular, you can provide an implementation of the IChatGptCache interface: https://github.com/marcominerva/ChatGptNet?tab=readme-ov-file#caching-messagelimit-and-messageexpiration. In this way, you can use every storage you need. …

Replies: 1 comment 1 reply

Comment options

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

Answer selected by marcominerva
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