vectorcalc

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CosineSimilarity

func CosineSimilarity(a, b []float64) float64

CosineSimilarity returns normalized dot-product similarity. Zero vectors or differently sized vectors cannot provide positive semantic evidence.

func ValidateEmbedding

func ValidateEmbedding(vector []float64) error

ValidateEmbedding rejects empty or non-finite embedding vectors before they are indexed or compared.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL