package
Version:
v1.0.3
Opens a new window with list of versions in this module.
Published: Mar 27, 2024
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Storage represents the storage layer for vectors.
NewStorage creates a new instance of Storage.
Close closes the storage and performs any necessary cleanup.
Delete removes a vector from the storage by ID.
Get retrieves a vector from the storage by ID.
GetAll retrieves all vectors from the storage.
Insert inserts a vector into the storage.
Vector represents a vector in the database.
Add adds another vector to the current vector.
Distance calculates the cosine similarity between two vectors.
Normalize normalizes the vector to unit length.
Subtract subtracts another vector from the current vector.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.