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.

fix cannot import name 'EmptyIndex' from 'llama_index' (#558)

Charles Packer74e782610082
diff --git a/memgpt/connectors/local.py b/memgpt/connectors/local.py
index 5178a9443..a773c3806 100644
--- a/memgpt/connectors/local.py
+++ b/memgpt/connectors/local.py
@@ -8,7 +8,8 @@ import os
from typing import List, Optional
-from llama_index import VectorStoreIndex, EmptyIndex, ServiceContext, set_global_service_context
+from llama_index import VectorStoreIndex, ServiceContext, set_global_service_context
+from llama_index.indices.empty.base import EmptyIndex
from llama_index.retrievers import VectorIndexRetriever
from llama_index.schema import TextNode