Expand description
C-ABI Foreign Function Interface for Syna database.
This module provides extern “C” functions for cross-language access.
All functions use catch_unwind to prevent Rust panics from unwinding
into foreign code.
Functions§
- SYNA_
cascade_ close - Closes the Cascade Index.
- SYNA_
cascade_ flush - Flushes the Cascade Index to disk.
- SYNA_
cascade_ insert - Inserts a vector into the Cascade Index.
- SYNA_
cascade_ insert_ batch - Inserts multiple vectors into the Cascade Index.
- SYNA_
cascade_ len - Returns the number of vectors in the Cascade Index.
- SYNA_
cascade_ new - Creates a new Cascade Index.
- SYNA_
cascade_ search - Searches the Cascade Index for nearest neighbors.
- SYNA_
cascade_ search_ params - Searches with custom parameters.
- SYNA_
close - Closes a database and removes it from the global registry.
- SYNA_
compact - Compacts the database by rewriting only the latest non-deleted entries.
- SYNA_
delete - Deletes a key from the database by appending a tombstone entry.
- SYNA_
exists - Checks if a key exists in the database and is not deleted.
- SYNA_
exp_ end_ run - Ends a run with the given status.
- SYNA_
exp_ log_ artifact - Logs an artifact for a run.
- SYNA_
exp_ log_ metric - Logs a metric value for a run.
- SYNA_
exp_ log_ param - Logs a parameter for a run.
- SYNA_
exp_ start_ run - Starts a new experiment run.
- SYNA_
exp_ tracker_ open - Opens or creates an experiment tracker at the given path.
- SYNA_
free_ bytes - Frees memory allocated by
SYNA_get_bytes(). - SYNA_
free_ json - Frees a JSON string allocated by
SYNA_vector_store_search(). - SYNA_
free_ keys - Frees memory allocated by
SYNA_keys(). - SYNA_
free_ tensor - Frees memory allocated by
SYNA_get_history_tensor(). - SYNA_
free_ text - Frees memory allocated by
SYNA_get_text(). - SYNA_
free_ vector - Frees memory allocated by
SYNA_get_vector(). - SYNA_
get_ bytes - Reads a byte array from the database.
- SYNA_
get_ float - Reads a float value from the database.
- SYNA_
get_ history_ tensor - Retrieves the complete history of float values for a key as a contiguous array.
- SYNA_
get_ int - Reads an integer value from the database.
- SYNA_
get_ text - Reads a text value from the database.
- SYNA_
get_ vector - Retrieves a vector (embedding) from the database.
- SYNA_
gwi_ close - Close a GWI and remove from registry
- SYNA_
gwi_ flush - Flush GWI changes to disk
- SYNA_
gwi_ initialize - Initialize GWI attractors from sample vectors
- SYNA_
gwi_ insert - Insert a vector into the GWI
- SYNA_
gwi_ insert_ batch - Batch insert vectors into the GWI
- SYNA_
gwi_ len - Get number of vectors in the GWI
- SYNA_
gwi_ new - Create a new Gravity Well Index
- SYNA_
gwi_ open - Open an existing Gravity Well Index
- SYNA_
gwi_ search - Search for k nearest neighbors in the GWI
- SYNA_
gwi_ search_ nprobe - Search for k nearest neighbors with custom nprobe
- SYNA_
keys - Returns a list of all non-deleted keys in the database.
- SYNA_
mmap_ vector_ store_ build_ index - Builds the HNSW index for the mmap vector store.
- SYNA_
mmap_ vector_ store_ close - Closes the mmap vector store and removes it from the registry.
- SYNA_
mmap_ vector_ store_ flush - Flushes the mmap vector store to disk.
- SYNA_
mmap_ vector_ store_ insert - Inserts a vector into the mmap vector store.
- SYNA_
mmap_ vector_ store_ insert_ batch - Inserts multiple vectors in a batch (maximum throughput).
- SYNA_
mmap_ vector_ store_ len - Returns the number of vectors in the mmap vector store.
- SYNA_
mmap_ vector_ store_ new - Creates or opens a memory-mapped vector store at the given path.
- SYNA_
mmap_ vector_ store_ search - Searches for the k nearest neighbors in the mmap vector store.
- SYNA_
model_ list - Lists all versions of a model.
- SYNA_
model_ load - Loads a model from the registry with checksum verification.
- SYNA_
model_ registry_ open - Opens or creates a model registry at the given path.
- SYNA_
model_ save - Saves a model to the registry with automatic versioning.
- SYNA_
model_ set_ stage - Sets the deployment stage for a model version.
- SYNA_
open - Opens a database at the given path and registers it in the global registry.
- SYNA_
open_ with_ config - Opens a database with sync_on_write disabled for high-throughput writes.
- SYNA_
put_ bytes - Writes a byte array to the database.
- SYNA_
put_ float - Writes a float value to the database.
- SYNA_
put_ floats_ batch - Writes multiple float values to the database in a single batch operation.
- SYNA_
put_ int - Writes an integer value to the database.
- SYNA_
put_ text - Writes a text value to the database.
- SYNA_
put_ vector - Stores a vector (embedding) in the database.
- SYNA_
vector_ store_ build_ index - Builds the HNSW index for a vector store.
- SYNA_
vector_ store_ close - Closes a vector store and saves any pending changes.
- SYNA_
vector_ store_ flush - Flushes any pending changes to disk without closing the store.
- SYNA_
vector_ store_ has_ index - Returns whether a vector store has an HNSW index built.
- SYNA_
vector_ store_ insert - Inserts a vector into the store.
- SYNA_
vector_ store_ insert_ batch - Inserts multiple vectors in a single batch operation.
- SYNA_
vector_ store_ insert_ batch_ fast - Inserts multiple vectors without updating the index (maximum write speed).
- SYNA_
vector_ store_ new - Creates a new vector store at the given path.
- SYNA_
vector_ store_ new_ with_ config - Creates a new vector store with sync_on_write configuration.
- SYNA_
vector_ store_ search - Searches for k nearest neighbors in the vector store.