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:
@@ -156,6 +156,10 @@ Object.defineProperty(globalThis, 'window', {
|
||||
validate: vi.fn().mockResolvedValue({ valid: true, errors: [] }),
|
||||
rebuildFromFiles: vi.fn().mockResolvedValue(undefined),
|
||||
},
|
||||
embeddings: {
|
||||
findSimilar: vi.fn().mockResolvedValue([]),
|
||||
computeSimilarities: vi.fn().mockResolvedValue({}),
|
||||
},
|
||||
on: vi.fn(() => () => {}),
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user