package
0.0.0-20250118220621-b25942ac992a
Repository: https://github.com/ardanlabs/ai-training.git
Documentation: pkg.go.dev
# Functions
Add calculates the addition of two vectors.
CosineSimilarity takes two vectors and computes the similarity between them using a cosine algorithm.
Similarity calculates the similarity between two vectors.
Sub calculates the subtraction of two vectors.
# Structs
SimilarityResult represents the result of performaing a similarity check between two embeddings.
# Interfaces
Data represents data that can be vectorized.