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