Documentation
¶
Index ¶
- Variables
- func RegisterWeaviateServer(s grpc.ServiceRegistrar, srv WeaviateServer)
- type AdditionalProps
- type NearObjectParams
- func (*NearObjectParams) Descriptor() ([]byte, []int)deprecated
- func (x *NearObjectParams) GetCertainty() float64
- func (x *NearObjectParams) GetDistance() float64
- func (x *NearObjectParams) GetId() string
- func (*NearObjectParams) ProtoMessage()
- func (x *NearObjectParams) ProtoReflect() protoreflect.Message
- func (x *NearObjectParams) Reset()
- func (x *NearObjectParams) String() string
- type NearVectorParams
- func (*NearVectorParams) Descriptor() ([]byte, []int)deprecated
- func (x *NearVectorParams) GetCertainty() float64
- func (x *NearVectorParams) GetDistance() float64
- func (x *NearVectorParams) GetVector() []float32
- func (*NearVectorParams) ProtoMessage()
- func (x *NearVectorParams) ProtoReflect() protoreflect.Message
- func (x *NearVectorParams) Reset()
- func (x *NearVectorParams) String() string
- type SearchReply
- func (*SearchReply) Descriptor() ([]byte, []int)deprecated
- func (x *SearchReply) GetResults() []*SearchResult
- func (x *SearchReply) GetTook() float32
- func (*SearchReply) ProtoMessage()
- func (x *SearchReply) ProtoReflect() protoreflect.Message
- func (x *SearchReply) Reset()
- func (x *SearchReply) String() string
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest) GetAdditionalProperties() []string
- func (x *SearchRequest) GetClassName() string
- func (x *SearchRequest) GetLimit() uint32
- func (x *SearchRequest) GetNearObject() *NearObjectParams
- func (x *SearchRequest) GetNearVector() *NearVectorParams
- func (x *SearchRequest) GetProperties() []string
- func (*SearchRequest) ProtoMessage()
- func (x *SearchRequest) ProtoReflect() protoreflect.Message
- func (x *SearchRequest) Reset()
- func (x *SearchRequest) String() string
- type SearchResult
- func (*SearchResult) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResult) GetAdditionalProperties() *AdditionalProps
- func (x *SearchResult) GetProperties() *structpb.Struct
- func (*SearchResult) ProtoMessage()
- func (x *SearchResult) ProtoReflect() protoreflect.Message
- func (x *SearchResult) Reset()
- func (x *SearchResult) String() string
- type UnimplementedWeaviateServer
- type UnsafeWeaviateServer
- type WeaviateClient
- type WeaviateServer
Constants ¶
This section is empty.
Variables ¶
var File_weaviate_proto protoreflect.FileDescriptor
var Weaviate_ServiceDesc = grpc.ServiceDesc{ ServiceName: "weaviategrpc.Weaviate", HandlerType: (*WeaviateServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Search", Handler: _Weaviate_Search_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "weaviate.proto", }
Weaviate_ServiceDesc is the grpc.ServiceDesc for Weaviate service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWeaviateServer ¶
func RegisterWeaviateServer(s grpc.ServiceRegistrar, srv WeaviateServer)
Types ¶
type AdditionalProps ¶
type AdditionalProps struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AdditionalProps) Descriptor
deprecated
func (*AdditionalProps) Descriptor() ([]byte, []int)
Deprecated: Use AdditionalProps.ProtoReflect.Descriptor instead.
func (*AdditionalProps) GetId ¶
func (x *AdditionalProps) GetId() string
func (*AdditionalProps) ProtoMessage ¶
func (*AdditionalProps) ProtoMessage()
func (*AdditionalProps) ProtoReflect ¶
func (x *AdditionalProps) ProtoReflect() protoreflect.Message
func (*AdditionalProps) Reset ¶
func (x *AdditionalProps) Reset()
func (*AdditionalProps) String ¶
func (x *AdditionalProps) String() string
type NearObjectParams ¶
type NearObjectParams struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Certainty *float64 `protobuf:"fixed64,2,opt,name=certainty,proto3,oneof" json:"certainty,omitempty"` Distance *float64 `protobuf:"fixed64,3,opt,name=distance,proto3,oneof" json:"distance,omitempty"` // contains filtered or unexported fields }
func (*NearObjectParams) Descriptor
deprecated
func (*NearObjectParams) Descriptor() ([]byte, []int)
Deprecated: Use NearObjectParams.ProtoReflect.Descriptor instead.
func (*NearObjectParams) GetCertainty ¶
func (x *NearObjectParams) GetCertainty() float64
func (*NearObjectParams) GetDistance ¶
func (x *NearObjectParams) GetDistance() float64
func (*NearObjectParams) GetId ¶
func (x *NearObjectParams) GetId() string
func (*NearObjectParams) ProtoMessage ¶
func (*NearObjectParams) ProtoMessage()
func (*NearObjectParams) ProtoReflect ¶
func (x *NearObjectParams) ProtoReflect() protoreflect.Message
func (*NearObjectParams) Reset ¶
func (x *NearObjectParams) Reset()
func (*NearObjectParams) String ¶
func (x *NearObjectParams) String() string
type NearVectorParams ¶
type NearVectorParams struct { // protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED Vector []float32 `protobuf:"fixed32,1,rep,packed,name=vector,proto3" json:"vector,omitempty"` Certainty *float64 `protobuf:"fixed64,2,opt,name=certainty,proto3,oneof" json:"certainty,omitempty"` Distance *float64 `protobuf:"fixed64,3,opt,name=distance,proto3,oneof" json:"distance,omitempty"` // contains filtered or unexported fields }
func (*NearVectorParams) Descriptor
deprecated
func (*NearVectorParams) Descriptor() ([]byte, []int)
Deprecated: Use NearVectorParams.ProtoReflect.Descriptor instead.
func (*NearVectorParams) GetCertainty ¶
func (x *NearVectorParams) GetCertainty() float64
func (*NearVectorParams) GetDistance ¶
func (x *NearVectorParams) GetDistance() float64
func (*NearVectorParams) GetVector ¶
func (x *NearVectorParams) GetVector() []float32
func (*NearVectorParams) ProtoMessage ¶
func (*NearVectorParams) ProtoMessage()
func (*NearVectorParams) ProtoReflect ¶
func (x *NearVectorParams) ProtoReflect() protoreflect.Message
func (*NearVectorParams) Reset ¶
func (x *NearVectorParams) Reset()
func (*NearVectorParams) String ¶
func (x *NearVectorParams) String() string
type SearchReply ¶
type SearchReply struct { Results []*SearchResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` Took float32 `protobuf:"fixed32,2,opt,name=took,proto3" json:"took,omitempty"` // contains filtered or unexported fields }
func (*SearchReply) Descriptor
deprecated
func (*SearchReply) Descriptor() ([]byte, []int)
Deprecated: Use SearchReply.ProtoReflect.Descriptor instead.
func (*SearchReply) GetResults ¶
func (x *SearchReply) GetResults() []*SearchResult
func (*SearchReply) GetTook ¶
func (x *SearchReply) GetTook() float32
func (*SearchReply) ProtoMessage ¶
func (*SearchReply) ProtoMessage()
func (*SearchReply) ProtoReflect ¶
func (x *SearchReply) ProtoReflect() protoreflect.Message
func (*SearchReply) Reset ¶
func (x *SearchReply) Reset()
func (*SearchReply) String ¶
func (x *SearchReply) String() string
type SearchRequest ¶
type SearchRequest struct { ClassName string `protobuf:"bytes,1,opt,name=class_name,json=className,proto3" json:"class_name,omitempty"` Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Properties []string `protobuf:"bytes,3,rep,name=properties,proto3" json:"properties,omitempty"` AdditionalProperties []string `protobuf:"bytes,4,rep,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"` NearVector *NearVectorParams `protobuf:"bytes,5,opt,name=near_vector,json=nearVector,proto3" json:"near_vector,omitempty"` NearObject *NearObjectParams `protobuf:"bytes,6,opt,name=near_object,json=nearObject,proto3" json:"near_object,omitempty"` // contains filtered or unexported fields }
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetAdditionalProperties ¶
func (x *SearchRequest) GetAdditionalProperties() []string
func (*SearchRequest) GetClassName ¶
func (x *SearchRequest) GetClassName() string
func (*SearchRequest) GetLimit ¶
func (x *SearchRequest) GetLimit() uint32
func (*SearchRequest) GetNearObject ¶
func (x *SearchRequest) GetNearObject() *NearObjectParams
func (*SearchRequest) GetNearVector ¶
func (x *SearchRequest) GetNearVector() *NearVectorParams
func (*SearchRequest) GetProperties ¶
func (x *SearchRequest) GetProperties() []string
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) ProtoReflect ¶
func (x *SearchRequest) ProtoReflect() protoreflect.Message
func (*SearchRequest) Reset ¶
func (x *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (x *SearchRequest) String() string
type SearchResult ¶
type SearchResult struct { Properties *structpb.Struct `protobuf:"bytes,1,opt,name=properties,proto3" json:"properties,omitempty"` AdditionalProperties *AdditionalProps `protobuf:"bytes,2,opt,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"` // contains filtered or unexported fields }
func (*SearchResult) Descriptor
deprecated
func (*SearchResult) Descriptor() ([]byte, []int)
Deprecated: Use SearchResult.ProtoReflect.Descriptor instead.
func (*SearchResult) GetAdditionalProperties ¶
func (x *SearchResult) GetAdditionalProperties() *AdditionalProps
func (*SearchResult) GetProperties ¶
func (x *SearchResult) GetProperties() *structpb.Struct
func (*SearchResult) ProtoMessage ¶
func (*SearchResult) ProtoMessage()
func (*SearchResult) ProtoReflect ¶
func (x *SearchResult) ProtoReflect() protoreflect.Message
func (*SearchResult) Reset ¶
func (x *SearchResult) Reset()
func (*SearchResult) String ¶
func (x *SearchResult) String() string
type UnimplementedWeaviateServer ¶
type UnimplementedWeaviateServer struct{}
UnimplementedWeaviateServer must be embedded to have forward compatible implementations.
func (UnimplementedWeaviateServer) Search ¶
func (UnimplementedWeaviateServer) Search(context.Context, *SearchRequest) (*SearchReply, error)
type UnsafeWeaviateServer ¶
type UnsafeWeaviateServer interface {
// contains filtered or unexported methods
}
UnsafeWeaviateServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WeaviateServer will result in compilation errors.
type WeaviateClient ¶
type WeaviateClient interface {
Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchReply, error)
}
WeaviateClient is the client API for Weaviate 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.
func NewWeaviateClient ¶
func NewWeaviateClient(cc grpc.ClientConnInterface) WeaviateClient
type WeaviateServer ¶
type WeaviateServer interface { Search(context.Context, *SearchRequest) (*SearchReply, error) // contains filtered or unexported methods }
WeaviateServer is the server API for Weaviate service. All implementations must embed UnimplementedWeaviateServer for forward compatibility