eastern-cyan•2y ago
_memory_
is there any tutorial on how to use the memory variable?
8 Replies
Yes, check the #📚┃community-tutorials channel
eastern-cyanOP•2y ago
thank you, i found it! 🙂 does it use a lot of tokens? if so ... is there a method to have less tokens being used, as the conversation could get very long
You can parse the memory object to get only assistant or user messages. You can also choose to use only last x messages.
Another option is to use a cheaper model to summarize the memory and use this summary in the prompt instead of passing the full memory.
eastern-cyanOP•2y ago
is there a tutorial for that? of course im trying it myself but its good to have a source if my way doesnt work
@mansen Nope. But if you need some help, just DM me.
eastern-cyanOP•2y ago
i did
other-emerald•2y ago
@NiKo | Voiceflow how do you recommend summarizing the memory and use the summary in the prompt?
wise-white•2y ago
Tutorial here: https://youtu.be/7ApcugbrvfY?si=LmQei_ZOx136C6tL
Voiceflow
YouTube
Adding Memory to the Knowledge Base in Voiceflow
This tutorial walks through how to access the memory object inside of Voiceflow! This way you can choose when you want to pass it in or manipulate it further for more advanced use cases (like selectively passing certain aspects of memory to the assistant).
NOTE: The memory object in Voiceflow contains the last 10 messages of the conversation, i...