pai_web

package
v2.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterVectorRetrievalServer

func RegisterVectorRetrievalServer(s *grpc.Server, srv VectorRetrievalServer)

Types

type UnimplementedVectorRetrievalServer

type UnimplementedVectorRetrievalServer struct {
}

UnimplementedVectorRetrievalServer can be embedded to have forward compatible implementations.

func (*UnimplementedVectorRetrievalServer) Search

type VectorReply

type VectorReply struct {
	Retval               []uint64  `protobuf:"varint,1,rep,packed,name=retval,proto3" json:"retval,omitempty"`
	Scores               []float32 `protobuf:"fixed32,2,rep,packed,name=scores,proto3" json:"scores,omitempty"`
	Labels               []string  `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*VectorReply) Descriptor

func (*VectorReply) Descriptor() ([]byte, []int)

func (*VectorReply) GetLabels

func (m *VectorReply) GetLabels() []string

func (*VectorReply) GetRetval

func (m *VectorReply) GetRetval() []uint64

func (*VectorReply) GetScores

func (m *VectorReply) GetScores() []float32

func (*VectorReply) ProtoMessage

func (*VectorReply) ProtoMessage()

func (*VectorReply) Reset

func (m *VectorReply) Reset()

func (*VectorReply) String

func (m *VectorReply) String() string

func (*VectorReply) XXX_DiscardUnknown

func (m *VectorReply) XXX_DiscardUnknown()

func (*VectorReply) XXX_Marshal

func (m *VectorReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VectorReply) XXX_Merge

func (m *VectorReply) XXX_Merge(src proto.Message)

func (*VectorReply) XXX_Size

func (m *VectorReply) XXX_Size() int

func (*VectorReply) XXX_Unmarshal

func (m *VectorReply) XXX_Unmarshal(b []byte) error

type VectorRequest

type VectorRequest struct {
	K                    uint32    `protobuf:"varint,1,opt,name=k,proto3" json:"k,omitempty"`
	Vector               []float32 `protobuf:"fixed32,2,rep,packed,name=vector,proto3" json:"vector,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*VectorRequest) Descriptor

func (*VectorRequest) Descriptor() ([]byte, []int)

func (*VectorRequest) GetK

func (m *VectorRequest) GetK() uint32

func (*VectorRequest) GetVector

func (m *VectorRequest) GetVector() []float32

func (*VectorRequest) ProtoMessage

func (*VectorRequest) ProtoMessage()

func (*VectorRequest) Reset

func (m *VectorRequest) Reset()

func (*VectorRequest) String

func (m *VectorRequest) String() string

func (*VectorRequest) XXX_DiscardUnknown

func (m *VectorRequest) XXX_DiscardUnknown()

func (*VectorRequest) XXX_Marshal

func (m *VectorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VectorRequest) XXX_Merge

func (m *VectorRequest) XXX_Merge(src proto.Message)

func (*VectorRequest) XXX_Size

func (m *VectorRequest) XXX_Size() int

func (*VectorRequest) XXX_Unmarshal

func (m *VectorRequest) XXX_Unmarshal(b []byte) error

type VectorRetrievalClient

type VectorRetrievalClient interface {
	Search(ctx context.Context, in *VectorRequest, opts ...grpc.CallOption) (*VectorReply, error)
}

VectorRetrievalClient is the client API for VectorRetrieval service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewVectorRetrievalClient

func NewVectorRetrievalClient(cc *grpc.ClientConn) VectorRetrievalClient

type VectorRetrievalServer

type VectorRetrievalServer interface {
	Search(context.Context, *VectorRequest) (*VectorReply, error)
}

VectorRetrievalServer is the server API for VectorRetrieval service.

Jump to

Keyboard shortcuts

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