graph

package
v0.0.0-...-c32d9a2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Dim            int
	M              int
	EFConstruction int
	EF             int
	MaxElements    uint32
	SpaceType      SpaceType
}

type Service

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

func New

func New(cfg *Configuration) *Service

func (*Service) Delete

func (s *Service) Delete(outerLabel string)

func (*Service) IndexesLoaded

func (s *Service) IndexesLoaded() uint32

func (*Service) ListIDs

func (s *Service) ListIDs() []string

func (*Service) Put

func (s *Service) Put(outerLabel string, vector []float32)

func (*Service) Search

func (s *Service) Search(vectors []float32, resultsNum int) map[string]float32

func (*Service) SetEF

func (s *Service) SetEF(ef int)

type SpaceType

type SpaceType string
const (
	SpaceTypeIP     SpaceType = "ip"
	SpaceTypeCosine SpaceType = "cosine"
	SpaceTypeL2     SpaceType = "l2"
)

Jump to

Keyboard shortcuts

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