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.

Temporarily add prints

Sarah Wooders6511dcaa7d2e
diff --git a/memgpt/connectors/db.py b/memgpt/connectors/db.py
index fe8371122..7fb60d422 100644
--- a/memgpt/connectors/db.py
+++ b/memgpt/connectors/db.py
@@ -94,10 +94,12 @@ def get_db_model(table_name: str, table_type: TableType, dialect="postgresql"):
# vector storage
if dialect == "sqlite":
+ print("DIALECT", dialect, "using BLOB")
embedding = Column(CommonVector)
else:
from pgvector.sqlalchemy import Vector
+ print("DIALECT", dialect, "using VECTOR")
embedding = mapped_column(Vector(config.embedding_dim))
metadata_ = Column(MutableJson)
@@ -150,8 +152,10 @@ def get_db_model(table_name: str, table_type: TableType, dialect="postgresql"):
# vector storage
if dialect == "sqlite":
+ print("DIALECT", dialect, "using BLOB")
embedding = Column(CommonVector)
else:
+ print("DIALECT", dialect, "using VECTOR")
from pgvector.sqlalchemy import Vector
embedding = mapped_column(Vector(config.embedding_dim))