* 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>
16 lines
518 B
SQL
16 lines
518 B
SQL
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
|
|
);
|