semantic

package
v0.0.0-...-7779a7b Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const EPSILON = 1e-10

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract interface {
	Search(queryVec []float64, candidates map[string][]float64, threshold float64, k uint32) (res []string, err error)
}

type Semantic

type Semantic struct{}

func New

func New() *Semantic

func (*Semantic) Search

func (s *Semantic) Search(queryVec []float64, candidates map[string][]float64, threshold float64, k uint32) (ids []string, err error)

Jump to

Keyboard shortcuts

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