Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
await async_get_embeddings_with_backoff (#239)
Vivian Fang79b72fd7aee0
diff --git a/memgpt/memory.py b/memgpt/memory.pyindex 2e1bc7503..db1b957e8 100644--- a/memgpt/memory.py+++ b/memgpt/memory.py@@ -387,7 +387,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):