mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-25 03:16:01 +00:00
10 lines
298 B
MySQL
10 lines
298 B
MySQL
|
CREATE TABLE IF NOT EXISTS "embeddings" (
|
||
|
"model" TEXT,
|
||
|
"digest" BYTEA,
|
||
|
"dimensions" FLOAT4[1536],
|
||
|
"retrieved_at" TIMESTAMP NOT NULL DEFAULT now(),
|
||
|
PRIMARY KEY ("model", "digest")
|
||
|
);
|
||
|
|
||
|
CREATE INDEX IF NOT EXISTS "idx_retrieved_at_on_embeddings" ON "embeddings" ("retrieved_at");
|