Use new embedding size in schema

This commit is contained in:
Χγφτ Kompanion 2025-10-17 02:35:59 +02:00
parent 3ab1089c51
commit b5c3dd21e0
2 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,7 @@ CREATE TABLE IF NOT EXISTS embeddings (
chunk_id UUID NOT NULL REFERENCES memory_chunks(id) ON DELETE CASCADE, chunk_id UUID NOT NULL REFERENCES memory_chunks(id) ON DELETE CASCADE,
model TEXT NOT NULL, model TEXT NOT NULL,
dim INT NOT NULL, dim INT NOT NULL,
vector VECTOR(1536), vector VECTOR(1024),
created_at TIMESTAMPTZ NOT NULL DEFAULT now(), created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
UNIQUE(chunk_id, model) UNIQUE(chunk_id, model)
); );

View File

@ -1 +1,3 @@
psycopg psycopg
numpy
pgvector