From 461d19aa2512fea7ac07e50c3178609850ef07c3 Mon Sep 17 00:00:00 2001
From: Grail Finder <wohilas@gmail.com>
Date: Tue, 31 Dec 2024 13:25:13 +0300
Subject: Feat: add rag [wip; skip-ci]

---
 storage/migrations/002_add_vector.up.sql | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 storage/migrations/002_add_vector.up.sql

(limited to 'storage/migrations/002_add_vector.up.sql')

diff --git a/storage/migrations/002_add_vector.up.sql b/storage/migrations/002_add_vector.up.sql
new file mode 100644
index 0000000..4fcc9aa
--- /dev/null
+++ b/storage/migrations/002_add_vector.up.sql
@@ -0,0 +1,6 @@
+CREATE VIRTUAL TABLE IF NOT EXISTS embeddings USING vec0(
+    id INTEGER PRIMARY KEY AUTOINCREMENT,
+    embedding FLOAT[5120],
+    slug TEXT NOT NULL,
+    raw_text TEXT NOT NULL
+);
-- 
cgit v1.2.3

