Skip to content

Commit 7bf7fa4

Browse files
Update memory_manager.py
1 parent 446bd1f commit 7bf7fa4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend/agents/nodes/memory/memory_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def retrieve_ltm(student_id: str, problem_text: str, topic: str) -> dict:
385385
"problem_summary", "final_answer", "outcome", "solve_attempts",
386386
],
387387
num_results = TOP_K_EPISODES,
388-
filter_expression= f"@student_id:{{{student_id}}}",
388+
filter_expression= f"@student_id:{{{student_id}}} @topic:{{{topic}}}"
389389
if topic is not None and topic != "":
390390
filter_expression += f" @topic:{{{topic}}}"
391391
)

0 commit comments

Comments
 (0)