Use new embedding size in schema
This commit is contained in:
parent
3ab1089c51
commit
b5c3dd21e0
|
|
@ -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)
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -1 +1,3 @@
|
||||||
psycopg
|
psycopg
|
||||||
|
numpy
|
||||||
|
pgvector
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue