Expand description
Fact CRUD with FTS5 synchronization.
Every fact operation that touches facts_fts is transactional.
See SPEC.md §8.3 for the insert/update/delete procedures.
Functions§
- delete_
fact_ with_ fts - Delete a fact and its FTS entry in a transaction.
- delete_
namespace - Delete all facts in a namespace atomically. Returns count of deleted facts.
- get_
fact - Get a fact by ID.
- get_
fact_ embedding - Get a fact’s raw embedding bytes.
- insert_
fact_ with_ fts - Insert a fact and its FTS entry in a transaction.
- insert_
fact_ with_ fts_ q8 - Insert a fact with both f32 and quantized embeddings.
- list_
facts - List facts in a namespace with pagination.
- update_
fact_ with_ fts - Update a fact’s content and embedding, with FTS sync.