mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-05 08:06:19 +00:00
7 lines
No EOL
476 B
SQL
7 lines
No EOL
476 B
SQL
ALTER TABLE "chunks" ALTER COLUMN "embeddings" SET DATA TYPE vector(768);--> statement-breakpoint
|
|
CREATE INDEX IF NOT EXISTS "documents_search_idx" ON "documents" USING gin ((
|
|
setweight(to_tsvector('english', coalesce("content", '')),'A') ||
|
|
setweight(to_tsvector('english', coalesce("title", '')),'B') ||
|
|
setweight(to_tsvector('english', coalesce("description", '')),'C') ||
|
|
setweight(to_tsvector('english', coalesce("url", '')),'D')
|
|
)); |