Expand description
Cross-integration helpers for the ruvnet crate ecosystem.
Provides integration::FannAdapter for ruv-FANN layer-embedding storage
and integration::SemanticSearchAdapter for sparc semantic file search.
Cross-integration helpers for ruvnet crate ecosystem.
This module provides ergonomic adapters that make it straightforward to use
ruvector-core as a dependency from other ruvnet crates:
- ruv-FANN: neural-network weights can be stored and retrieved via
[
FannAdapter] using cosine similarity search across layer embeddings. - sparc / semantic file search: [
SemanticSearchAdapter] wrapsVectorDBwith file-path metadata so sparc can locate relevant source files by embedding query strings.
Both adapters are thin, zero-overhead wrappers — they own no additional
memory beyond what the underlying VectorDB already holds.
Structs§
- Fann
Adapter - Adapter that lets ruv-FANN store and retrieve layer-weight embeddings.
- File
Entry - A file-path entry as indexed by
SemanticSearchAdapter. - Semantic
Search Adapter - Adapter for sparc-style semantic file search.
Functions§
- cosine_
similarity - Compute the cosine similarity in [−1, 1] between two vectors.
- normalize
- Normalise a vector to unit length for cosine-distance workloads.