Skip to main content

Module db

Module db 

Source
Expand description

SQLite-vec operations for vector storage and search.

This module handles all interactions with the SQLite database using the sqlite-vec extension for vector similarity search.

Structs§

SearchResult
Search result from vector similarity search.

Functions§

count_entries
Gets the total number of entries in the index.
create_index
Creates or overwrites the vector index with the given entries.
get_database_path
Gets the path to the SQLite database.
index_exists
Checks if the vector index exists.
search
Performs vector similarity search on the index.