Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB wraps a *sql.DB with qi-specific helpers.
func Open ¶
Open opens (or creates) the qi SQLite database at path, runs migrations, and configures WAL mode.
func (*DB) DeleteCollection ¶ added in v0.4.0
DeleteCollection removes all data associated with the given collection name: chunk vectors, embeddings, chunks (FTS triggers keep chunks_fts in sync), documents, index runs, and the collections table row. Orphaned content blobs (not referenced by any remaining document) are also pruned.
func (*DB) InsertEmbedding ¶
InsertEmbedding stores a vector embedding for a chunk as a raw BLOB.
Click to show internal directories.
Click to hide internal directories.