inmemory

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: 6 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
	MaxElements uint32
	SpaceType   graph.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) HasOuterLabel

func (s *Service) HasOuterLabel(outerLabel string) bool

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, text []byte, vector []float32)

func (*Service) Search

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

Jump to

Keyboard shortcuts

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