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: Remove document truncation for `memgpt load` (#978)

Sarah Woodersd099c8c1f142
diff --git a/memgpt/cli/cli_load.py b/memgpt/cli/cli_load.py
index 98343af43..bd8811f17 100644
--- a/memgpt/cli/cli_load.py
+++ b/memgpt/cli/cli_load.py
@@ -68,12 +68,6 @@ def store_docs(name, docs, user_id=None, show_progress=True):
if user_id is None: # assume running local with single user
user_id = uuid.UUID(config.anon_clientid)
- # ensure doc text is not too long
- # TODO: replace this to instead split up docs that are too large
- # (this is a temporary fix to avoid breaking the llama index)
- for doc in docs:
- doc.text = check_and_split_text(doc.text, config.default_embedding_config.embedding_model)[0]
-
# record data source metadata
ms = MetadataStore(config)
user = ms.get_user(user_id)