Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
Added db load ability (#106)
sk9fa75e1752be
diff --git a/memgpt/utils.py b/memgpt/utils.pyindex e2146bc7f..860a459f9 100644--- a/memgpt/utils.py+++ b/memgpt/utils.py@@ -152,6 +152,10 @@ def total_bytes(pattern):def chunk_file(file, tkns_per_chunk=300, model="gpt-4"):encoding = tiktoken.encoding_for_model(model)++ if file.endswith(".db"):+ return # can't read the sqlite db this way, will get handled in main.py+with open(file, "r") as f:if file.endswith(".pdf"):lines = [l for l in read_pdf_in_chunks(file, tkns_per_chunk * 8)]