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)
Click to show internal directories.
Click to hide internal directories.