Implement semantic embeddings and duplicate review
This commit is contained in:
1 parent
fd4fd744e0
commit
e8764262a3
42 files changed
+3808
-79
No files matched your search
@@ -258,9 +258,12 @@ CREATE TABLE IF NOT EXISTS embedding_keys (
|
||||
post_id TEXT NOT NULL,
|
||||
project_id TEXT NOT NULL,
|
||||
content_hash TEXT NOT NULL,
|
||||
vector TEXT NOT NULL
|
||||
vector BLOB NOT NULL
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS embedding_keys_project_post_idx
|
||||
ON embedding_keys(project_id, post_id);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS dismissed_duplicate_pairs (
|
||||
id TEXT NOT NULL PRIMARY KEY,
|
||||
project_id TEXT NOT NULL REFERENCES projects(id),
|
||||
|
||||
Reference in new issue
Block a user