xebia-functional / xef

Building applications with LLMs through composability, in Kotlin, Scala, ...

Home Page:https://xef.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update Memory

javipacheco opened this issue · comments

In order to fix some problems with the way to order the memory in the conversations, we need to change the way to store the memory

  1. We have to remove the timeStamp and the approxTokens in the Memory. The memory could be something like this:
data class Memory(val conversationId: ConversationId, val content: Message, val index: Int)
  1. The index is an ordered number that the conversation is incrementally added to.