From b5c3dd21e01def93ea055b3cb05234c0cda10b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=A7=CE=B3=CF=86=CF=84=20Kompanion?= Date: Fri, 17 Oct 2025 02:35:59 +0200 Subject: [PATCH] Use new embedding size in schema --- db/init/010_schema.sql | 2 +- tools/requirements.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/db/init/010_schema.sql b/db/init/010_schema.sql index 6ec8c21..2a8392d 100644 --- a/db/init/010_schema.sql +++ b/db/init/010_schema.sql @@ -33,7 +33,7 @@ CREATE TABLE IF NOT EXISTS embeddings ( chunk_id UUID NOT NULL REFERENCES memory_chunks(id) ON DELETE CASCADE, model TEXT NOT NULL, dim INT NOT NULL, - vector VECTOR(1536), + vector VECTOR(1024), created_at TIMESTAMPTZ NOT NULL DEFAULT now(), UNIQUE(chunk_id, model) ); diff --git a/tools/requirements.txt b/tools/requirements.txt index 296ca87..214fcf0 100644 --- a/tools/requirements.txt +++ b/tools/requirements.txt @@ -1 +1,3 @@ psycopg +numpy +pgvector