Feature/semantic similarity (#36)
* fix: mixed up migrations * feat: semantic similarity first take * feat: semantic similarity first round of fixes * feat: more work on making semantic similarity work properly * feat: getPostBySlug for the AI * feat: show similarity in post-link-insert-modal * chore: remove done doc --------- Co-authored-by: hugo <hugoms@me.com>
This commit is contained in:
15
drizzle/0011_embedding_tables.sql
Normal file
15
drizzle/0011_embedding_tables.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
CREATE TABLE `dismissed_duplicate_pairs` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`project_id` text NOT NULL,
|
||||
`post_id_a` text NOT NULL,
|
||||
`post_id_b` text NOT NULL,
|
||||
`dismissed_at` integer NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX `dismissed_pairs_idx` ON `dismissed_duplicate_pairs` (`project_id`,`post_id_a`,`post_id_b`);--> statement-breakpoint
|
||||
CREATE TABLE `embedding_keys` (
|
||||
`label` integer PRIMARY KEY NOT NULL,
|
||||
`post_id` text NOT NULL,
|
||||
`project_id` text NOT NULL,
|
||||
`content_hash` text NOT NULL
|
||||
);
|
||||
Reference in New Issue
Block a user