feat: harden runtime readiness and session workflow

This commit is contained in:
User
2026-07-14 10:27:25 +02:00
parent 6d7738d538
commit 6dbf93fff9
52 changed files with 1464 additions and 169 deletions
+3 -2
View File
@@ -46,7 +46,8 @@ def vector_configs():
engine = create_engine(pg.get_connection_url())
with engine.begin() as connection:
connection.exec_driver_sql("CREATE SCHEMA vectors")
connection.exec_driver_sql("CREATE EXTENSION vector WITH SCHEMA vectors")
# Match the co-located Supabase deployment: tables are in vectors, extension in public.
connection.exec_driver_sql("CREATE EXTENSION vector WITH SCHEMA public")
for table in ("schema_records", "evidence", "memory"):
connection.exec_driver_sql(f"""
CREATE TABLE vectors.{table} (
@@ -55,7 +56,7 @@ def vector_configs():
kind text NOT NULL,
content_hash text NOT NULL,
metadata jsonb NOT NULL,
embedding vectors.vector(2) NOT NULL,
embedding public.vector(2) NOT NULL,
indexed_at timestamptz NOT NULL DEFAULT now()
)
""")