Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

hotfix DummyArchivalMemoryWithFaiss

Vivian Fang1871823c996b
diff --git a/memgpt/memory.py b/memgpt/memory.py
index 6f5efa43d..e9fc47aaa 100644
--- a/memgpt/memory.py
+++ b/memgpt/memory.py
@@ -391,7 +391,7 @@ class DummyArchivalMemoryWithFaiss(DummyArchivalMemory):
async def a_insert(self, memory_string, embedding=None):
if embedding is None:
# Get the embedding
- embedding = async_get_embedding_with_backoff(memory_string, model=self.embedding_model)
+ embedding = await async_get_embedding_with_backoff(memory_string, model=self.embedding_model)
return self._insert(memory_string, embedding)
def _search(self, query_embedding, query_string, count=None, start=None):