How to recall query-relevant memory from "Conversation Variables " #13831
Replies: 2 comments
-
To recall only the relevant memories from "Conversation Variables" in Dify, you can use the Knowledge Base Retrieval Node. This node allows you to configure retrieval strategies to determine which memories are relevant to a given query. The process involves:
These strategies ensure that only the most relevant memories are appended to the session variables, enhancing the accuracy of the responses provided by the LLM [1][2]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
In a certain memory size, you can use prompt words and assemble them all into context to ensure the effect. When the session variable exceeds the context range, there may be no good solution in the current diify. |
Beta Was this translation helpful? Give feedback.
-
Originally posted by @VincePotato in #4149
Hi,
Your blog simulats OpenAI Memory Features,where a llm node decides which memories to extract from a question, and then these memories are appended to the session variables 'memory'
how do you recall only the relevant memories before answering the question, rather than using all the memories to answer the question?
Beta Was this translation helpful? Give feedback.
All reactions