rivapereira123 commited on
Commit
0c9df92
Β·
verified Β·
1 Parent(s): 19cb0cc

Update modules/task_management.py

Browse files
Files changed (1) hide show
  1. modules/task_management.py +0 -21
modules/task_management.py CHANGED
@@ -192,24 +192,3 @@ def reset_weekly_data():
192
  last_reset = datetime.date.today()
193
 
194
 
195
- def recall_from_memory(user_id, goal):
196
- try:
197
- query = user_id + ":" + goal.replace(" ", "_")
198
- result = pine_index.fetch([query]) # βœ… returns a FetchResponse object
199
-
200
- if query not in result.vectors:
201
- return "❌ No saved plan found for this goal."
202
-
203
- metadata = result.vectors[query].get("metadata", {})
204
- steps = metadata.get("steps", [])
205
- steps = [smart_label_converter(s) for s in steps if isinstance(s, str) and len(s.strip()) > 1]
206
- summary = metadata.get("summary", "")
207
- courses = metadata.get("courses", [])
208
- course_section = ""
209
-
210
- diagram = render_text_roadmap(goal, steps)
211
-
212
- if courses:
213
- course_section = "\n\n### πŸ“š Recommended Courses\n" + "\n".join([f"- [{c['name']}]({c['url']})" for c in courses if 'name' in c and 'url' in c])
214
-
215
- return f"""### πŸ” Recalled Plan for {goal}
 
192
  last_reset = datetime.date.today()
193
 
194