faiss

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 7 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(ctx context.Context) (err error)

func (*FaissModel) Run

func (m *FaissModel) Run(data interface{}) (resp interface{}, err error)

type VectorClient

type VectorClient struct {
	ServerAddress string
	Timeout       time.Duration
	VectorClient  pb.VectorRetrievalClient
	// contains filtered or unexported fields
}

func NewVectorClient

func NewVectorClient(ctx context.Context, address string, timeout time.Duration) (client *VectorClient, err error)

func (*VectorClient) Search

func (c *VectorClient) Search(req interface{}) (resp *pb.VectorResp, err error)

Jump to

Keyboard shortcuts

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