use-vector-store 0.1.0

Vector-store and embedding modeling primitives for RustUse
Documentation
  • Coverage
  • 85.37%
    35 out of 41 items documented1 out of 35 items with examples
  • Size
  • Source code size: 12.22 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 902.5 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-nosql
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-vector-store

Vector-store and embedding modeling primitives for RustUse.

Experimental

use-vector-store is experimental while use-nosql remains below 0.3.0.

Example

use use_vector_store::{Embedding, SimilarityMetric, VectorDimension, VectorId, VectorRecord};

let record = VectorRecord::new(VectorId::new("review_1"), Embedding::new(vec![0.1, 0.2]))
    .with_dimension(VectorDimension::new(2))?
    .with_similarity_metric(SimilarityMetric::Cosine);

assert_eq!(record.dimension(), Some(VectorDimension::new(2)));
# Ok::<(), use_vector_store::InvalidDimensionError>(())

Scope

  • Vector identifiers, embeddings, dimensions, similarity metrics, metadata, and records.
  • Dimension consistency validation.

Non-goals

  • Qdrant, Pinecone, Weaviate, or other vector database clients.
  • Approximate nearest-neighbor indexes.
  • Embedding generation.

License

Licensed under either Apache-2.0 or MIT.