cover

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package cover contains placeholders for a cover-tree based ANN index. The full implementation can be copied from viant/gds/tree/cover when needed; this stub keeps package structure stable without third-party deps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DistanceFunction

type DistanceFunction string

DistanceFunction names supported distance metrics.

const (
	Cosine DistanceFunction = "cosine"
	L2     DistanceFunction = "l2"
)

type Node

type Node struct {
	// contains filtered or unexported fields
}

Node is a minimal tree node placeholder.

type Point

type Point struct {
	Vector    []float32
	Magnitude float32
	// contains filtered or unexported fields
}

Point represents an embedding vector and its cached magnitude.

type Tree

type Tree[T any] struct {
	// contains filtered or unexported fields
}

Tree is a placeholder that may later be replaced by a true cover tree. For now it only stores points, and callers can build a higher-level index.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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