Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterIndexerServiceServer(s grpc.ServiceRegistrar, srv IndexerServiceServer)
- type GetPodScoresRequest
- func (*GetPodScoresRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPodScoresRequest) GetModelName() string
- func (x *GetPodScoresRequest) GetPodIdentifiers() []string
- func (x *GetPodScoresRequest) GetPrompt() string
- func (*GetPodScoresRequest) ProtoMessage()
- func (x *GetPodScoresRequest) ProtoReflect() protoreflect.Message
- func (x *GetPodScoresRequest) Reset()
- func (x *GetPodScoresRequest) String() string
- type GetPodScoresResponse
- func (*GetPodScoresResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPodScoresResponse) GetScores() []*PodScore
- func (*GetPodScoresResponse) ProtoMessage()
- func (x *GetPodScoresResponse) ProtoReflect() protoreflect.Message
- func (x *GetPodScoresResponse) Reset()
- func (x *GetPodScoresResponse) String() string
- type IndexerServiceClient
- type IndexerServiceServer
- type PodScore
- type UnimplementedIndexerServiceServer
- type UnsafeIndexerServiceServer
Constants ¶
const (
IndexerService_GetPodScores_FullMethodName = "/indexer.v1.IndexerService/GetPodScores"
)
Variables ¶
var File_api_indexerpb_indexer_proto protoreflect.FileDescriptor
var IndexerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "indexer.v1.IndexerService", HandlerType: (*IndexerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetPodScores", Handler: _IndexerService_GetPodScores_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/indexerpb/indexer.proto", }
IndexerService_ServiceDesc is the grpc.ServiceDesc for IndexerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterIndexerServiceServer ¶
func RegisterIndexerServiceServer(s grpc.ServiceRegistrar, srv IndexerServiceServer)
Types ¶
type GetPodScoresRequest ¶
type GetPodScoresRequest struct {
Prompt string `protobuf:"bytes,1,opt,name=prompt,proto3" json:"prompt,omitempty"`
ModelName string `protobuf:"bytes,2,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"`
PodIdentifiers []string `protobuf:"bytes,3,rep,name=pod_identifiers,json=podIdentifiers,proto3" json:"pod_identifiers,omitempty"`
// contains filtered or unexported fields
}
GetPodScores
func (*GetPodScoresRequest) Descriptor
deprecated
func (*GetPodScoresRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPodScoresRequest.ProtoReflect.Descriptor instead.
func (*GetPodScoresRequest) GetModelName ¶
func (x *GetPodScoresRequest) GetModelName() string
func (*GetPodScoresRequest) GetPodIdentifiers ¶
func (x *GetPodScoresRequest) GetPodIdentifiers() []string
func (*GetPodScoresRequest) GetPrompt ¶
func (x *GetPodScoresRequest) GetPrompt() string
func (*GetPodScoresRequest) ProtoMessage ¶
func (*GetPodScoresRequest) ProtoMessage()
func (*GetPodScoresRequest) ProtoReflect ¶
func (x *GetPodScoresRequest) ProtoReflect() protoreflect.Message
func (*GetPodScoresRequest) Reset ¶
func (x *GetPodScoresRequest) Reset()
func (*GetPodScoresRequest) String ¶
func (x *GetPodScoresRequest) String() string
type GetPodScoresResponse ¶
type GetPodScoresResponse struct {
Scores []*PodScore `protobuf:"bytes,1,rep,name=scores,proto3" json:"scores,omitempty"`
// contains filtered or unexported fields
}
func (*GetPodScoresResponse) Descriptor
deprecated
func (*GetPodScoresResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPodScoresResponse.ProtoReflect.Descriptor instead.
func (*GetPodScoresResponse) GetScores ¶
func (x *GetPodScoresResponse) GetScores() []*PodScore
func (*GetPodScoresResponse) ProtoMessage ¶
func (*GetPodScoresResponse) ProtoMessage()
func (*GetPodScoresResponse) ProtoReflect ¶
func (x *GetPodScoresResponse) ProtoReflect() protoreflect.Message
func (*GetPodScoresResponse) Reset ¶
func (x *GetPodScoresResponse) Reset()
func (*GetPodScoresResponse) String ¶
func (x *GetPodScoresResponse) String() string
type IndexerServiceClient ¶
type IndexerServiceClient interface {
// Score pods for a prompt and model. Wraps Indexer.GetPodScores.
GetPodScores(ctx context.Context, in *GetPodScoresRequest, opts ...grpc.CallOption) (*GetPodScoresResponse, error)
}
IndexerServiceClient is the client API for IndexerService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
IndexerService exposes a minimal set of RPCs to interact with the KV cache indexer. This is an MVP designed to wrap the existing pkg/kvcache.Indexer functionality behind gRPC.
func NewIndexerServiceClient ¶
func NewIndexerServiceClient(cc grpc.ClientConnInterface) IndexerServiceClient
type IndexerServiceServer ¶
type IndexerServiceServer interface {
// Score pods for a prompt and model. Wraps Indexer.GetPodScores.
GetPodScores(context.Context, *GetPodScoresRequest) (*GetPodScoresResponse, error)
// contains filtered or unexported methods
}
IndexerServiceServer is the server API for IndexerService service. All implementations must embed UnimplementedIndexerServiceServer for forward compatibility.
IndexerService exposes a minimal set of RPCs to interact with the KV cache indexer. This is an MVP designed to wrap the existing pkg/kvcache.Indexer functionality behind gRPC.
type PodScore ¶
type PodScore struct {
Pod string `protobuf:"bytes,1,opt,name=pod,proto3" json:"pod,omitempty"`
Score float64 `protobuf:"fixed64,2,opt,name=score,proto3" json:"score,omitempty"`
// contains filtered or unexported fields
}
func (*PodScore) Descriptor
deprecated
func (*PodScore) ProtoMessage ¶
func (*PodScore) ProtoMessage()
func (*PodScore) ProtoReflect ¶
func (x *PodScore) ProtoReflect() protoreflect.Message
type UnimplementedIndexerServiceServer ¶
type UnimplementedIndexerServiceServer struct{}
UnimplementedIndexerServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedIndexerServiceServer) GetPodScores ¶
func (UnimplementedIndexerServiceServer) GetPodScores(context.Context, *GetPodScoresRequest) (*GetPodScoresResponse, error)
type UnsafeIndexerServiceServer ¶
type UnsafeIndexerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeIndexerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IndexerServiceServer will result in compilation errors.