Skip to content

Commit 2f5347d

Browse files
Update memory_manager.py
1 parent 7bf7fa4 commit 2f5347d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +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}}} @topic:{{{topic}}}"
389-
if topic is not None and topic != "":
390-
filter_expression += f" @topic:{{{topic}}}"
388+
filter_expression= f"@student_id:{{{student_id}}} @topic:{{{topic}}}",
391389
)
392390
index = SearchIndex.from_dict(EPISODIC_INDEX_SCHEMA)
393391
index.connect(redis_url=REDIS_URL)

0 commit comments

Comments
 (0)