package
0.16.2
Repository: https://github.com/hypermodeinc/modus.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CosineDistance computes the cosine distance between two vectors.
EuclideanDistance computes the Euclidean distance between two vectors.
LoadSavedGraph opens a graph from a file, reads it, and returns it.
No description provided by the author
No description provided by the author
NewGraph returns a new graph with default parameters, roughly designed for storing OpenAI embeddings.
RegisterDistanceFunc registers a distance function with a name.

# Variables

No description provided by the author

# Structs

Analyzer is a struct that holds a graph and provides methods for analyzing it.
Graph is a Hierarchical Navigable Small World graph.
Node is a node in the graph.
SavedGraph is a wrapper around a graph that persists changes to a file upon calls to Save.
No description provided by the author

# Type aliases

DistanceFunc is a function that computes the distance between two vectors.
No description provided by the author