vectordb

package
v0.0.0-...-388aa53 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	UpdateWithIds(extXb []float32, extXids []int64) error
	AddWithIds(newXb []float32, newXids []int64) error
	Search(xq, distances []float32, xids []int64) (int, error)
	UpdateIndex() error
	Destroy() error

	Clean() error
	Records() (uint64, error)
	CreateSnap(path string) error
	ApplySnap(path string) error
}

DB vectordb

func NewDB

func NewDB(path string, dim, flatThr int, distThr float32) (DB, error)

NewDB create a db

Jump to

Keyboard shortcuts

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