Documentation
¶
Index ¶
- type DB
- func (db *DB) DeleteCollection(ctx context.Context, name string) error
- func (db *DB) InsertEmbedding(ctx context.Context, chunkID int64, embedding []float32) error
- func (db *DB) Ping(ctx context.Context) error
- func (db *DB) RenameCollectionData(ctx context.Context, oldName, newName, path string) error
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.