MCPcopy Create free account
hub / github.com/InternScience/InternAgent / retrieve_memory

Method retrieve_memory

tasks/AutoMem/code/eval.py:73–74  ·  view source on GitHub ↗
(self, content, k=10)

Source from the content-addressed store, hash-verified

71 self.memory_system.add_note(content, time=time)
72
73 def retrieve_memory(self, content, k=10):
74 return self.memory_system.find_related_memories_raw(content, k=k)
75
76 def retrieve_memory_llm(self, memories_text, query):
77 prompt = f"""Given the following conversation memories and a question, select the most relevant parts of the conversation that would help answer the question. Include the date/time if available.

Callers 1

answer_questionMethod · 0.95

Calls 1

Tested by

no test coverage detected