stormy-gold•2y ago
Can you use Conversation Memory with Knowledge Base?
Hey Voiceflow community!
I want to use Conversation Memory (https://learn.voiceflow.com/hc/en-us/articles/15049513713037-Conversation-Memory) in combination with the Knowledge Base. Does anyone know whether this is possible? Or a workaround for this?
12 Replies
Yes, you can use Conversation Memory in combination with the Knowledge Base in Voiceflow. While the detailed process or direct integration specifics between Conversation Memory and the Knowledge Base are not explicitly outlined, the Knowledge Base is designed to enhance your assistant's ability to answer questions by leveraging documents and website data. Here are some key points to consider when working with the Knowledge Base that might be relevant to integrating it with Conversation Memory:
- The Knowledge Base functions by turning uploaded documents into 'chunks' of text, determining the most relevant chunks for a given query, and then combining those with custom instructions and system prompts to generate responses.
- You can preview how the Knowledge Base interacts with your assistant by using the preview feature in Voiceflow, which allows you to test the assistant's responses in a simulated environment.
- For effective previewing and testing, it's recommended to use a variety of queries and check for consistency in the AI's responses. Preview-specific settings can be temporarily adjusted without affecting the global Knowledge Base settings.
Remember, any permanent changes you wish to apply globally to the Knowledge Base settings must be manually updated in the KB Settings after you're satisfied with the preview results.
For more detailed guidance on using the Knowledge Base and Conversation Memory, you might find these articles helpful:
- How the Knowledge Base Works
- Conversation Memory
stormy-goldOP•2y ago
Thanks Tico, but I am not sure if this answer is correct...
stormy-gold•2y ago
If you get the chunks of relevant info from the knowledge base, you can send that information to an AI step that processes the info with conversation memory.
ambitious-aqua•2y ago
@jorenwouters In the response AI step, when you select Knowledge base as the source, you should see two fields - “question” and “instructions”
In the instruction field, write the following:
Use the following conversation history to help with your answer
…
{vf_memory}
…
If you don’t already know, voiceflow automatically saves the last three messages (from both the user and the bot) to a variable called vf_memory. So, doing this will allow the AI to use conversation memory with kbase. If you want to expand the memory to more than the last three messages, there is a video on Voiceflow’s YouTube channel titled “expand memory” or something. Check that out.
stormy-goldOP•2y ago
@Metarishi Thank you! Will look into this.
@ACME Mike Thanks for the suggestion, great idea
stormy-gold•2y ago
Here's the video I think @Metarishi was talking about: https://discord.com/channels/1079548823610871889/1084599706614771934/1215080738056179783
stormy-goldOP•2y ago
@ACME Mike Thank you!
This is a bit more complicated than what has been said so far. If you have any trouble, DM me. It has to do with the valid chunks that are returned.
stormy-gold•2y ago
Are you referring to scoring the chunks before choosing to use them...or something else?
Something else.
stormy-goldOP•2y ago
Now that I see this, I am actually interested in scoring the chunks, because sometimes it gives chunks I really don't want. Did you already do this?
yep. Just DM me.