adding in entity extraction layer with semantic search enabled
This commit is contained in:
@@ -10,7 +10,7 @@ function upsertEntity(name, type, notes = null, metadata = null) {
|
|||||||
INSERT INTO entities (name, type, notes, metadata)
|
INSERT INTO entities (name, type, notes, metadata)
|
||||||
VALUES (?, ?, ?, ?)
|
VALUES (?, ?, ?, ?)
|
||||||
ON CONFLICT(name, type) DO UPDATE SET
|
ON CONFLICT(name, type) DO UPDATE SET
|
||||||
notes = excluded.notes,
|
notes = COALESCE(entities.notes, excluded.notes),
|
||||||
metadata = excluded.metadata,
|
metadata = excluded.metadata,
|
||||||
updated_at = unixepoch()
|
updated_at = unixepoch()
|
||||||
`);
|
`);
|
||||||
|
|||||||
Reference in New Issue
Block a user