faiss

package
v2.3.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FaissModel

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

func NewFaissModel

func NewFaissModel(name string) *FaissModel

func (*FaissModel) Init

func (m *FaissModel) Init(conf *recconf.AlgoConfig) error

func (*FaissModel) Run

func (m *FaissModel) Run(algoData interface{}) (interface{}, error)

type VectorClient

type VectorClient struct {
	ServerAddress string
	Timeout       time.Duration
	VectorClient  pb.VectorRetrievalClient
}

func NewVectorClient

func NewVectorClient(address string, timeout time.Duration) (*VectorClient, error)

func (*VectorClient) Search

func (c *VectorClient) Search(requestData interface{}) (*pb.VectorReply, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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