Рабочий вариант
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
-- RAG vector DB schema (runs automatically on first Postgres init).
|
||||
-- If RAG_EMBEDDINGS_DIM is not 1536, change vector(1536) below.
|
||||
-- GigaChat Embeddings = 1024; for OpenAI use vector(1536).
|
||||
|
||||
CREATE EXTENSION IF NOT EXISTS vector;
|
||||
|
||||
@@ -27,7 +27,7 @@ CREATE TABLE IF NOT EXISTS chunks (
|
||||
chunk_index INTEGER NOT NULL,
|
||||
hash TEXT NOT NULL,
|
||||
content TEXT NOT NULL,
|
||||
embedding vector(1536) NOT NULL,
|
||||
embedding vector(1024) NOT NULL,
|
||||
start_line INTEGER,
|
||||
end_line INTEGER,
|
||||
change_type TEXT NOT NULL DEFAULT 'added'
|
||||
|
||||
Reference in New Issue
Block a user