mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
* vector: restrict indexed-only searches to shared index coverage * vector: expose indexed-only queries through a compatible backend RPC * s3vectors: accept signed indexed-only search requests * s3vectors: document indexed-only queries and exercise SDK signing * vector: expose restricted ANN execution for enterprise ownership * vector: score unscored hits within the query scope * s3vectors: verify search mode in the SigV4 authenticator * s3vectors: resolve table descriptors for indexed-only queries * vector: recover short results within a fragment restriction * vector: avoid a fragment prefilter for fully indexed unfiltered queries * docs: remove the boto3 signing hook after query errors * vector: recover short indexed-only results with full coverage
1788 lines
54 KiB
Go
1788 lines
54 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.6
|
|
// protoc v7.35.0
|
|
// source: vector.proto
|
|
|
|
package vector_pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
structpb "google.golang.org/protobuf/types/known/structpb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type DistanceMetric int32
|
|
|
|
const (
|
|
DistanceMetric_DISTANCE_METRIC_UNSPECIFIED DistanceMetric = 0
|
|
DistanceMetric_L2 DistanceMetric = 1
|
|
DistanceMetric_COSINE DistanceMetric = 2
|
|
DistanceMetric_DOT_PRODUCT DistanceMetric = 3
|
|
)
|
|
|
|
// Enum value maps for DistanceMetric.
|
|
var (
|
|
DistanceMetric_name = map[int32]string{
|
|
0: "DISTANCE_METRIC_UNSPECIFIED",
|
|
1: "L2",
|
|
2: "COSINE",
|
|
3: "DOT_PRODUCT",
|
|
}
|
|
DistanceMetric_value = map[string]int32{
|
|
"DISTANCE_METRIC_UNSPECIFIED": 0,
|
|
"L2": 1,
|
|
"COSINE": 2,
|
|
"DOT_PRODUCT": 3,
|
|
}
|
|
)
|
|
|
|
func (x DistanceMetric) Enum() *DistanceMetric {
|
|
p := new(DistanceMetric)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x DistanceMetric) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (DistanceMetric) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_vector_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (DistanceMetric) Type() protoreflect.EnumType {
|
|
return &file_vector_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x DistanceMetric) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use DistanceMetric.Descriptor instead.
|
|
func (DistanceMetric) EnumDescriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
// Table addresses a Lance table through the namespace: the id parts as the
|
|
// namespace catalog joins them. The gateway resolves the table before it
|
|
// calls, so the engine opens it without a catalog round trip of its own.
|
|
type Table struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id []string `protobuf:"bytes,1,rep,name=id,proto3" json:"id,omitempty"`
|
|
// Dataset version to pin reads to; 0 means latest.
|
|
Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
|
|
// The table's Lance location, as the catalog describes it.
|
|
Location string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
|
|
// The bucket encrypts its objects with SSE-S3; the engine writes the
|
|
// table's files that way.
|
|
SseS3 bool `protobuf:"varint,5,opt,name=sse_s3,json=sseS3,proto3" json:"sse_s3,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Table) Reset() {
|
|
*x = Table{}
|
|
mi := &file_vector_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Table) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Table) ProtoMessage() {}
|
|
|
|
func (x *Table) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Table.ProtoReflect.Descriptor instead.
|
|
func (*Table) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Table) GetId() []string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Table) GetVersion() uint64 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Table) GetLocation() string {
|
|
if x != nil {
|
|
return x.Location
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Table) GetSseS3() bool {
|
|
if x != nil {
|
|
return x.SseS3
|
|
}
|
|
return false
|
|
}
|
|
|
|
type CreateIndexRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
Dimension uint32 `protobuf:"varint,2,opt,name=dimension,proto3" json:"dimension,omitempty"`
|
|
DistanceMetric DistanceMetric `protobuf:"varint,3,opt,name=distance_metric,json=distanceMetric,proto3,enum=vector_pb.DistanceMetric" json:"distance_metric,omitempty"`
|
|
NonFilterableMetadataKeys []string `protobuf:"bytes,4,rep,name=non_filterable_metadata_keys,json=nonFilterableMetadataKeys,proto3" json:"non_filterable_metadata_keys,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateIndexRequest) Reset() {
|
|
*x = CreateIndexRequest{}
|
|
mi := &file_vector_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateIndexRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateIndexRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateIndexRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateIndexRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateIndexRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CreateIndexRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateIndexRequest) GetDimension() uint32 {
|
|
if x != nil {
|
|
return x.Dimension
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateIndexRequest) GetDistanceMetric() DistanceMetric {
|
|
if x != nil {
|
|
return x.DistanceMetric
|
|
}
|
|
return DistanceMetric_DISTANCE_METRIC_UNSPECIFIED
|
|
}
|
|
|
|
func (x *CreateIndexRequest) GetNonFilterableMetadataKeys() []string {
|
|
if x != nil {
|
|
return x.NonFilterableMetadataKeys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateIndexResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateIndexResponse) Reset() {
|
|
*x = CreateIndexResponse{}
|
|
mi := &file_vector_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateIndexResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateIndexResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateIndexResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateIndexResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateIndexResponse) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *CreateIndexResponse) GetVersion() uint64 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DropIndexRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DropIndexRequest) Reset() {
|
|
*x = DropIndexRequest{}
|
|
mi := &file_vector_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DropIndexRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DropIndexRequest) ProtoMessage() {}
|
|
|
|
func (x *DropIndexRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DropIndexRequest.ProtoReflect.Descriptor instead.
|
|
func (*DropIndexRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *DropIndexRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DropIndexResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DropIndexResponse) Reset() {
|
|
*x = DropIndexResponse{}
|
|
mi := &file_vector_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DropIndexResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DropIndexResponse) ProtoMessage() {}
|
|
|
|
func (x *DropIndexResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DropIndexResponse.ProtoReflect.Descriptor instead.
|
|
func (*DropIndexResponse) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
type Vector struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
Data []float32 `protobuf:"fixed32,2,rep,packed,name=data,proto3" json:"data,omitempty"`
|
|
// JSON-typed metadata: numbers carry double precision, as on the wire.
|
|
Metadata *structpb.Struct `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Vector) Reset() {
|
|
*x = Vector{}
|
|
mi := &file_vector_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Vector) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Vector) ProtoMessage() {}
|
|
|
|
func (x *Vector) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Vector.ProtoReflect.Descriptor instead.
|
|
func (*Vector) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *Vector) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Vector) GetData() []float32 {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Vector) GetMetadata() *structpb.Struct {
|
|
if x != nil {
|
|
return x.Metadata
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PutVectorsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
Vectors []*Vector `protobuf:"bytes,2,rep,name=vectors,proto3" json:"vectors,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PutVectorsRequest) Reset() {
|
|
*x = PutVectorsRequest{}
|
|
mi := &file_vector_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PutVectorsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PutVectorsRequest) ProtoMessage() {}
|
|
|
|
func (x *PutVectorsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PutVectorsRequest.ProtoReflect.Descriptor instead.
|
|
func (*PutVectorsRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *PutVectorsRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PutVectorsRequest) GetVectors() []*Vector {
|
|
if x != nil {
|
|
return x.Vectors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PutVectorsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PutVectorsResponse) Reset() {
|
|
*x = PutVectorsResponse{}
|
|
mi := &file_vector_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PutVectorsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PutVectorsResponse) ProtoMessage() {}
|
|
|
|
func (x *PutVectorsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PutVectorsResponse.ProtoReflect.Descriptor instead.
|
|
func (*PutVectorsResponse) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *PutVectorsResponse) GetVersion() uint64 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetVectorsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
Keys []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
|
|
ReturnData bool `protobuf:"varint,3,opt,name=return_data,json=returnData,proto3" json:"return_data,omitempty"`
|
|
ReturnMetadata bool `protobuf:"varint,4,opt,name=return_metadata,json=returnMetadata,proto3" json:"return_metadata,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetVectorsRequest) Reset() {
|
|
*x = GetVectorsRequest{}
|
|
mi := &file_vector_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetVectorsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetVectorsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetVectorsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetVectorsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetVectorsRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *GetVectorsRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetVectorsRequest) GetKeys() []string {
|
|
if x != nil {
|
|
return x.Keys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetVectorsRequest) GetReturnData() bool {
|
|
if x != nil {
|
|
return x.ReturnData
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetVectorsRequest) GetReturnMetadata() bool {
|
|
if x != nil {
|
|
return x.ReturnMetadata
|
|
}
|
|
return false
|
|
}
|
|
|
|
type GetVectorsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Vectors []*Vector `protobuf:"bytes,1,rep,name=vectors,proto3" json:"vectors,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetVectorsResponse) Reset() {
|
|
*x = GetVectorsResponse{}
|
|
mi := &file_vector_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetVectorsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetVectorsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetVectorsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetVectorsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetVectorsResponse) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *GetVectorsResponse) GetVectors() []*Vector {
|
|
if x != nil {
|
|
return x.Vectors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteVectorsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
Keys []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteVectorsRequest) Reset() {
|
|
*x = DeleteVectorsRequest{}
|
|
mi := &file_vector_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteVectorsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteVectorsRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteVectorsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteVectorsRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteVectorsRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *DeleteVectorsRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DeleteVectorsRequest) GetKeys() []string {
|
|
if x != nil {
|
|
return x.Keys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteVectorsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteVectorsResponse) Reset() {
|
|
*x = DeleteVectorsResponse{}
|
|
mi := &file_vector_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteVectorsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteVectorsResponse) ProtoMessage() {}
|
|
|
|
func (x *DeleteVectorsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteVectorsResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeleteVectorsResponse) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *DeleteVectorsResponse) GetVersion() uint64 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListVectorsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
MaxResults uint32 `protobuf:"varint,2,opt,name=max_results,json=maxResults,proto3" json:"max_results,omitempty"`
|
|
NextToken string `protobuf:"bytes,3,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"`
|
|
ReturnData bool `protobuf:"varint,4,opt,name=return_data,json=returnData,proto3" json:"return_data,omitempty"`
|
|
ReturnMetadata bool `protobuf:"varint,5,opt,name=return_metadata,json=returnMetadata,proto3" json:"return_metadata,omitempty"`
|
|
// A nonzero segment_count lists only the rows whose position modulo
|
|
// segment_count is segment_index; next_token stays a row position.
|
|
SegmentCount uint32 `protobuf:"varint,6,opt,name=segment_count,json=segmentCount,proto3" json:"segment_count,omitempty"`
|
|
SegmentIndex uint32 `protobuf:"varint,7,opt,name=segment_index,json=segmentIndex,proto3" json:"segment_index,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListVectorsRequest) Reset() {
|
|
*x = ListVectorsRequest{}
|
|
mi := &file_vector_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListVectorsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListVectorsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListVectorsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListVectorsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListVectorsRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *ListVectorsRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListVectorsRequest) GetMaxResults() uint32 {
|
|
if x != nil {
|
|
return x.MaxResults
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListVectorsRequest) GetNextToken() string {
|
|
if x != nil {
|
|
return x.NextToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListVectorsRequest) GetReturnData() bool {
|
|
if x != nil {
|
|
return x.ReturnData
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ListVectorsRequest) GetReturnMetadata() bool {
|
|
if x != nil {
|
|
return x.ReturnMetadata
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ListVectorsRequest) GetSegmentCount() uint32 {
|
|
if x != nil {
|
|
return x.SegmentCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListVectorsRequest) GetSegmentIndex() uint32 {
|
|
if x != nil {
|
|
return x.SegmentIndex
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListVectorsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Vectors []*Vector `protobuf:"bytes,1,rep,name=vectors,proto3" json:"vectors,omitempty"`
|
|
NextToken string `protobuf:"bytes,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"`
|
|
// Set when segment_count was applied; an older engine ignores it.
|
|
Segmented bool `protobuf:"varint,3,opt,name=segmented,proto3" json:"segmented,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListVectorsResponse) Reset() {
|
|
*x = ListVectorsResponse{}
|
|
mi := &file_vector_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListVectorsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListVectorsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListVectorsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListVectorsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListVectorsResponse) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *ListVectorsResponse) GetVectors() []*Vector {
|
|
if x != nil {
|
|
return x.Vectors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListVectorsResponse) GetNextToken() string {
|
|
if x != nil {
|
|
return x.NextToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListVectorsResponse) GetSegmented() bool {
|
|
if x != nil {
|
|
return x.Segmented
|
|
}
|
|
return false
|
|
}
|
|
|
|
type QueryVectorsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
QueryVector []float32 `protobuf:"fixed32,2,rep,packed,name=query_vector,json=queryVector,proto3" json:"query_vector,omitempty"`
|
|
TopK uint32 `protobuf:"varint,3,opt,name=top_k,json=topK,proto3" json:"top_k,omitempty"`
|
|
// Lance SQL filter; empty means unfiltered. Metadata is one JSON
|
|
// `metadata` column, so the gateway translates S3 Vectors filter
|
|
// expressions onto it before they land here.
|
|
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
|
|
// Lance's post-filter escape hatch; off prefilters, matching S3 Vectors.
|
|
Postfilter bool `protobuf:"varint,5,opt,name=postfilter,proto3" json:"postfilter,omitempty"`
|
|
ReturnMetadata bool `protobuf:"varint,6,opt,name=return_metadata,json=returnMetadata,proto3" json:"return_metadata,omitempty"`
|
|
ReturnDistance bool `protobuf:"varint,7,opt,name=return_distance,json=returnDistance,proto3" json:"return_distance,omitempty"`
|
|
ReturnData bool `protobuf:"varint,8,opt,name=return_data,json=returnData,proto3" json:"return_data,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) Reset() {
|
|
*x = QueryVectorsRequest{}
|
|
mi := &file_vector_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryVectorsRequest) ProtoMessage() {}
|
|
|
|
func (x *QueryVectorsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use QueryVectorsRequest.ProtoReflect.Descriptor instead.
|
|
func (*QueryVectorsRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) GetQueryVector() []float32 {
|
|
if x != nil {
|
|
return x.QueryVector
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) GetTopK() uint32 {
|
|
if x != nil {
|
|
return x.TopK
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) GetFilter() string {
|
|
if x != nil {
|
|
return x.Filter
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) GetPostfilter() bool {
|
|
if x != nil {
|
|
return x.Postfilter
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) GetReturnMetadata() bool {
|
|
if x != nil {
|
|
return x.ReturnMetadata
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) GetReturnDistance() bool {
|
|
if x != nil {
|
|
return x.ReturnDistance
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) GetReturnData() bool {
|
|
if x != nil {
|
|
return x.ReturnData
|
|
}
|
|
return false
|
|
}
|
|
|
|
type QueryResult struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
Distance float32 `protobuf:"fixed32,2,opt,name=distance,proto3" json:"distance,omitempty"`
|
|
Metadata *structpb.Struct `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
|
Data []float32 `protobuf:"fixed32,4,rep,packed,name=data,proto3" json:"data,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *QueryResult) Reset() {
|
|
*x = QueryResult{}
|
|
mi := &file_vector_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *QueryResult) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryResult) ProtoMessage() {}
|
|
|
|
func (x *QueryResult) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use QueryResult.ProtoReflect.Descriptor instead.
|
|
func (*QueryResult) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *QueryResult) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *QueryResult) GetDistance() float32 {
|
|
if x != nil {
|
|
return x.Distance
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *QueryResult) GetMetadata() *structpb.Struct {
|
|
if x != nil {
|
|
return x.Metadata
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *QueryResult) GetData() []float32 {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type QueryVectorsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Vectors []*QueryResult `protobuf:"bytes,1,rep,name=vectors,proto3" json:"vectors,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *QueryVectorsResponse) Reset() {
|
|
*x = QueryVectorsResponse{}
|
|
mi := &file_vector_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *QueryVectorsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryVectorsResponse) ProtoMessage() {}
|
|
|
|
func (x *QueryVectorsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use QueryVectorsResponse.ProtoReflect.Descriptor instead.
|
|
func (*QueryVectorsResponse) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *QueryVectorsResponse) GetVectors() []*QueryResult {
|
|
if x != nil {
|
|
return x.Vectors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type FilterStatsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Only the id is read.
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FilterStatsRequest) Reset() {
|
|
*x = FilterStatsRequest{}
|
|
mi := &file_vector_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FilterStatsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FilterStatsRequest) ProtoMessage() {}
|
|
|
|
func (x *FilterStatsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FilterStatsRequest.ProtoReflect.Descriptor instead.
|
|
func (*FilterStatsRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *FilterStatsRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type FilterKeyStats struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
Queries uint64 `protobuf:"varint,2,opt,name=queries,proto3" json:"queries,omitempty"`
|
|
// Their total latency.
|
|
Seconds float64 `protobuf:"fixed64,3,opt,name=seconds,proto3" json:"seconds,omitempty"`
|
|
// The operand types the key was compared with.
|
|
StringOperand bool `protobuf:"varint,4,opt,name=string_operand,json=stringOperand,proto3" json:"string_operand,omitempty"`
|
|
NumberOperand bool `protobuf:"varint,5,opt,name=number_operand,json=numberOperand,proto3" json:"number_operand,omitempty"`
|
|
BoolOperand bool `protobuf:"varint,6,opt,name=bool_operand,json=boolOperand,proto3" json:"bool_operand,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FilterKeyStats) Reset() {
|
|
*x = FilterKeyStats{}
|
|
mi := &file_vector_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FilterKeyStats) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FilterKeyStats) ProtoMessage() {}
|
|
|
|
func (x *FilterKeyStats) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[18]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FilterKeyStats.ProtoReflect.Descriptor instead.
|
|
func (*FilterKeyStats) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *FilterKeyStats) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FilterKeyStats) GetQueries() uint64 {
|
|
if x != nil {
|
|
return x.Queries
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *FilterKeyStats) GetSeconds() float64 {
|
|
if x != nil {
|
|
return x.Seconds
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *FilterKeyStats) GetStringOperand() bool {
|
|
if x != nil {
|
|
return x.StringOperand
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *FilterKeyStats) GetNumberOperand() bool {
|
|
if x != nil {
|
|
return x.NumberOperand
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *FilterKeyStats) GetBoolOperand() bool {
|
|
if x != nil {
|
|
return x.BoolOperand
|
|
}
|
|
return false
|
|
}
|
|
|
|
type FilterStatsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Keys []*FilterKeyStats `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
|
|
// The stats cover at most this long, less when the engine started later.
|
|
WindowSeconds uint32 `protobuf:"varint,2,opt,name=window_seconds,json=windowSeconds,proto3" json:"window_seconds,omitempty"`
|
|
// Keys of this index not counted because the engine tracks a bounded
|
|
// number of them.
|
|
Truncated bool `protobuf:"varint,3,opt,name=truncated,proto3" json:"truncated,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FilterStatsResponse) Reset() {
|
|
*x = FilterStatsResponse{}
|
|
mi := &file_vector_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FilterStatsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FilterStatsResponse) ProtoMessage() {}
|
|
|
|
func (x *FilterStatsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[19]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FilterStatsResponse.ProtoReflect.Descriptor instead.
|
|
func (*FilterStatsResponse) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *FilterStatsResponse) GetKeys() []*FilterKeyStats {
|
|
if x != nil {
|
|
return x.Keys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *FilterStatsResponse) GetWindowSeconds() uint32 {
|
|
if x != nil {
|
|
return x.WindowSeconds
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *FilterStatsResponse) GetTruncated() bool {
|
|
if x != nil {
|
|
return x.Truncated
|
|
}
|
|
return false
|
|
}
|
|
|
|
type MetadataKeysRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MetadataKeysRequest) Reset() {
|
|
*x = MetadataKeysRequest{}
|
|
mi := &file_vector_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MetadataKeysRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MetadataKeysRequest) ProtoMessage() {}
|
|
|
|
func (x *MetadataKeysRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[20]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MetadataKeysRequest.ProtoReflect.Descriptor instead.
|
|
func (*MetadataKeysRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *MetadataKeysRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MetadataKey struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
// requested, building, ready or off.
|
|
State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
|
|
// The hidden column holding the key; empty while requested.
|
|
Column string `protobuf:"bytes,3,opt,name=column,proto3" json:"column,omitempty"`
|
|
// Rows the key's scalar index covers, of the table's rows.
|
|
IndexedRows uint64 `protobuf:"varint,4,opt,name=indexed_rows,json=indexedRows,proto3" json:"indexed_rows,omitempty"`
|
|
Rows uint64 `protobuf:"varint,5,opt,name=rows,proto3" json:"rows,omitempty"`
|
|
IndexBytes uint64 `protobuf:"varint,6,opt,name=index_bytes,json=indexBytes,proto3" json:"index_bytes,omitempty"`
|
|
Segments uint32 `protobuf:"varint,7,opt,name=segments,proto3" json:"segments,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MetadataKey) Reset() {
|
|
*x = MetadataKey{}
|
|
mi := &file_vector_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MetadataKey) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MetadataKey) ProtoMessage() {}
|
|
|
|
func (x *MetadataKey) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[21]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MetadataKey.ProtoReflect.Descriptor instead.
|
|
func (*MetadataKey) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *MetadataKey) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MetadataKey) GetState() string {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MetadataKey) GetColumn() string {
|
|
if x != nil {
|
|
return x.Column
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MetadataKey) GetIndexedRows() uint64 {
|
|
if x != nil {
|
|
return x.IndexedRows
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MetadataKey) GetRows() uint64 {
|
|
if x != nil {
|
|
return x.Rows
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MetadataKey) GetIndexBytes() uint64 {
|
|
if x != nil {
|
|
return x.IndexBytes
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MetadataKey) GetSegments() uint32 {
|
|
if x != nil {
|
|
return x.Segments
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type MetadataKeysResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Keys []*MetadataKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
|
|
Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
|
|
// The table's rows, and its vector index type (empty without one).
|
|
Rows uint64 `protobuf:"varint,3,opt,name=rows,proto3" json:"rows,omitempty"`
|
|
VectorIndex string `protobuf:"bytes,4,opt,name=vector_index,json=vectorIndex,proto3" json:"vector_index,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MetadataKeysResponse) Reset() {
|
|
*x = MetadataKeysResponse{}
|
|
mi := &file_vector_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MetadataKeysResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MetadataKeysResponse) ProtoMessage() {}
|
|
|
|
func (x *MetadataKeysResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[22]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MetadataKeysResponse.ProtoReflect.Descriptor instead.
|
|
func (*MetadataKeysResponse) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *MetadataKeysResponse) GetKeys() []*MetadataKey {
|
|
if x != nil {
|
|
return x.Keys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MetadataKeysResponse) GetVersion() uint64 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MetadataKeysResponse) GetRows() uint64 {
|
|
if x != nil {
|
|
return x.Rows
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MetadataKeysResponse) GetVectorIndex() string {
|
|
if x != nil {
|
|
return x.VectorIndex
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UpdateMetadataKeyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
|
Remove bool `protobuf:"varint,3,opt,name=remove,proto3" json:"remove,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateMetadataKeyRequest) Reset() {
|
|
*x = UpdateMetadataKeyRequest{}
|
|
mi := &file_vector_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateMetadataKeyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateMetadataKeyRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateMetadataKeyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[23]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateMetadataKeyRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateMetadataKeyRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
func (x *UpdateMetadataKeyRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpdateMetadataKeyRequest) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateMetadataKeyRequest) GetRemove() bool {
|
|
if x != nil {
|
|
return x.Remove
|
|
}
|
|
return false
|
|
}
|
|
|
|
var File_vector_proto protoreflect.FileDescriptor
|
|
|
|
const file_vector_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\fvector.proto\x12\tvector_pb\x1a\x1cgoogle/protobuf/struct.proto\"{\n" +
|
|
"\x05Table\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x03(\tR\x02id\x12\x18\n" +
|
|
"\aversion\x18\x02 \x01(\x04R\aversion\x12\x1a\n" +
|
|
"\blocation\x18\x03 \x01(\tR\blocation\x12\x15\n" +
|
|
"\x06sse_s3\x18\x05 \x01(\bR\x05sseS3J\x04\b\x04\x10\x05R\x0fstorage_options\"\xdf\x01\n" +
|
|
"\x12CreateIndexRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12\x1c\n" +
|
|
"\tdimension\x18\x02 \x01(\rR\tdimension\x12B\n" +
|
|
"\x0fdistance_metric\x18\x03 \x01(\x0e2\x19.vector_pb.DistanceMetricR\x0edistanceMetric\x12?\n" +
|
|
"\x1cnon_filterable_metadata_keys\x18\x04 \x03(\tR\x19nonFilterableMetadataKeys\"/\n" +
|
|
"\x13CreateIndexResponse\x12\x18\n" +
|
|
"\aversion\x18\x01 \x01(\x04R\aversion\":\n" +
|
|
"\x10DropIndexRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\"\x13\n" +
|
|
"\x11DropIndexResponse\"c\n" +
|
|
"\x06Vector\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x12\n" +
|
|
"\x04data\x18\x02 \x03(\x02R\x04data\x123\n" +
|
|
"\bmetadata\x18\x03 \x01(\v2\x17.google.protobuf.StructR\bmetadata\"h\n" +
|
|
"\x11PutVectorsRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12+\n" +
|
|
"\avectors\x18\x02 \x03(\v2\x11.vector_pb.VectorR\avectors\".\n" +
|
|
"\x12PutVectorsResponse\x12\x18\n" +
|
|
"\aversion\x18\x01 \x01(\x04R\aversion\"\x99\x01\n" +
|
|
"\x11GetVectorsRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12\x12\n" +
|
|
"\x04keys\x18\x02 \x03(\tR\x04keys\x12\x1f\n" +
|
|
"\vreturn_data\x18\x03 \x01(\bR\n" +
|
|
"returnData\x12'\n" +
|
|
"\x0freturn_metadata\x18\x04 \x01(\bR\x0ereturnMetadata\"A\n" +
|
|
"\x12GetVectorsResponse\x12+\n" +
|
|
"\avectors\x18\x01 \x03(\v2\x11.vector_pb.VectorR\avectors\"R\n" +
|
|
"\x14DeleteVectorsRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12\x12\n" +
|
|
"\x04keys\x18\x02 \x03(\tR\x04keys\"1\n" +
|
|
"\x15DeleteVectorsResponse\x12\x18\n" +
|
|
"\aversion\x18\x01 \x01(\x04R\aversion\"\x90\x02\n" +
|
|
"\x12ListVectorsRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12\x1f\n" +
|
|
"\vmax_results\x18\x02 \x01(\rR\n" +
|
|
"maxResults\x12\x1d\n" +
|
|
"\n" +
|
|
"next_token\x18\x03 \x01(\tR\tnextToken\x12\x1f\n" +
|
|
"\vreturn_data\x18\x04 \x01(\bR\n" +
|
|
"returnData\x12'\n" +
|
|
"\x0freturn_metadata\x18\x05 \x01(\bR\x0ereturnMetadata\x12#\n" +
|
|
"\rsegment_count\x18\x06 \x01(\rR\fsegmentCount\x12#\n" +
|
|
"\rsegment_index\x18\a \x01(\rR\fsegmentIndex\"\x7f\n" +
|
|
"\x13ListVectorsResponse\x12+\n" +
|
|
"\avectors\x18\x01 \x03(\v2\x11.vector_pb.VectorR\avectors\x12\x1d\n" +
|
|
"\n" +
|
|
"next_token\x18\x02 \x01(\tR\tnextToken\x12\x1c\n" +
|
|
"\tsegmented\x18\x03 \x01(\bR\tsegmented\"\xa0\x02\n" +
|
|
"\x13QueryVectorsRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12!\n" +
|
|
"\fquery_vector\x18\x02 \x03(\x02R\vqueryVector\x12\x13\n" +
|
|
"\x05top_k\x18\x03 \x01(\rR\x04topK\x12\x16\n" +
|
|
"\x06filter\x18\x04 \x01(\tR\x06filter\x12\x1e\n" +
|
|
"\n" +
|
|
"postfilter\x18\x05 \x01(\bR\n" +
|
|
"postfilter\x12'\n" +
|
|
"\x0freturn_metadata\x18\x06 \x01(\bR\x0ereturnMetadata\x12'\n" +
|
|
"\x0freturn_distance\x18\a \x01(\bR\x0ereturnDistance\x12\x1f\n" +
|
|
"\vreturn_data\x18\b \x01(\bR\n" +
|
|
"returnData\"\x84\x01\n" +
|
|
"\vQueryResult\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x1a\n" +
|
|
"\bdistance\x18\x02 \x01(\x02R\bdistance\x123\n" +
|
|
"\bmetadata\x18\x03 \x01(\v2\x17.google.protobuf.StructR\bmetadata\x12\x12\n" +
|
|
"\x04data\x18\x04 \x03(\x02R\x04data\"H\n" +
|
|
"\x14QueryVectorsResponse\x120\n" +
|
|
"\avectors\x18\x01 \x03(\v2\x16.vector_pb.QueryResultR\avectors\"<\n" +
|
|
"\x12FilterStatsRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\"\xc7\x01\n" +
|
|
"\x0eFilterKeyStats\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x18\n" +
|
|
"\aqueries\x18\x02 \x01(\x04R\aqueries\x12\x18\n" +
|
|
"\aseconds\x18\x03 \x01(\x01R\aseconds\x12%\n" +
|
|
"\x0estring_operand\x18\x04 \x01(\bR\rstringOperand\x12%\n" +
|
|
"\x0enumber_operand\x18\x05 \x01(\bR\rnumberOperand\x12!\n" +
|
|
"\fbool_operand\x18\x06 \x01(\bR\vboolOperand\"\x89\x01\n" +
|
|
"\x13FilterStatsResponse\x12-\n" +
|
|
"\x04keys\x18\x01 \x03(\v2\x19.vector_pb.FilterKeyStatsR\x04keys\x12%\n" +
|
|
"\x0ewindow_seconds\x18\x02 \x01(\rR\rwindowSeconds\x12\x1c\n" +
|
|
"\ttruncated\x18\x03 \x01(\bR\ttruncated\"=\n" +
|
|
"\x13MetadataKeysRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\"\xc1\x01\n" +
|
|
"\vMetadataKey\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05state\x18\x02 \x01(\tR\x05state\x12\x16\n" +
|
|
"\x06column\x18\x03 \x01(\tR\x06column\x12!\n" +
|
|
"\findexed_rows\x18\x04 \x01(\x04R\vindexedRows\x12\x12\n" +
|
|
"\x04rows\x18\x05 \x01(\x04R\x04rows\x12\x1f\n" +
|
|
"\vindex_bytes\x18\x06 \x01(\x04R\n" +
|
|
"indexBytes\x12\x1a\n" +
|
|
"\bsegments\x18\a \x01(\rR\bsegments\"\x93\x01\n" +
|
|
"\x14MetadataKeysResponse\x12*\n" +
|
|
"\x04keys\x18\x01 \x03(\v2\x16.vector_pb.MetadataKeyR\x04keys\x12\x18\n" +
|
|
"\aversion\x18\x02 \x01(\x04R\aversion\x12\x12\n" +
|
|
"\x04rows\x18\x03 \x01(\x04R\x04rows\x12!\n" +
|
|
"\fvector_index\x18\x04 \x01(\tR\vvectorIndex\"l\n" +
|
|
"\x18UpdateMetadataKeyRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12\x10\n" +
|
|
"\x03key\x18\x02 \x01(\tR\x03key\x12\x16\n" +
|
|
"\x06remove\x18\x03 \x01(\bR\x06remove*V\n" +
|
|
"\x0eDistanceMetric\x12\x1f\n" +
|
|
"\x1bDISTANCE_METRIC_UNSPECIFIED\x10\x00\x12\x06\n" +
|
|
"\x02L2\x10\x01\x12\n" +
|
|
"\n" +
|
|
"\x06COSINE\x10\x02\x12\x0f\n" +
|
|
"\vDOT_PRODUCT\x10\x032\x80\a\n" +
|
|
"\rVectorService\x12L\n" +
|
|
"\vCreateIndex\x12\x1d.vector_pb.CreateIndexRequest\x1a\x1e.vector_pb.CreateIndexResponse\x12F\n" +
|
|
"\tDropIndex\x12\x1b.vector_pb.DropIndexRequest\x1a\x1c.vector_pb.DropIndexResponse\x12I\n" +
|
|
"\n" +
|
|
"PutVectors\x12\x1c.vector_pb.PutVectorsRequest\x1a\x1d.vector_pb.PutVectorsResponse\x12I\n" +
|
|
"\n" +
|
|
"GetVectors\x12\x1c.vector_pb.GetVectorsRequest\x1a\x1d.vector_pb.GetVectorsResponse\x12R\n" +
|
|
"\rDeleteVectors\x12\x1f.vector_pb.DeleteVectorsRequest\x1a .vector_pb.DeleteVectorsResponse\x12L\n" +
|
|
"\vListVectors\x12\x1d.vector_pb.ListVectorsRequest\x1a\x1e.vector_pb.ListVectorsResponse\x12O\n" +
|
|
"\fQueryVectors\x12\x1e.vector_pb.QueryVectorsRequest\x1a\x1f.vector_pb.QueryVectorsResponse\x12V\n" +
|
|
"\x13QueryIndexedVectors\x12\x1e.vector_pb.QueryVectorsRequest\x1a\x1f.vector_pb.QueryVectorsResponse\x12L\n" +
|
|
"\vFilterStats\x12\x1d.vector_pb.FilterStatsRequest\x1a\x1e.vector_pb.FilterStatsResponse\x12O\n" +
|
|
"\fMetadataKeys\x12\x1e.vector_pb.MetadataKeysRequest\x1a\x1f.vector_pb.MetadataKeysResponse\x12Y\n" +
|
|
"\x11UpdateMetadataKey\x12#.vector_pb.UpdateMetadataKeyRequest\x1a\x1f.vector_pb.MetadataKeysResponseB2Z0github.com/seaweedfs/seaweedfs/weed/pb/vector_pbb\x06proto3"
|
|
|
|
var (
|
|
file_vector_proto_rawDescOnce sync.Once
|
|
file_vector_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_vector_proto_rawDescGZIP() []byte {
|
|
file_vector_proto_rawDescOnce.Do(func() {
|
|
file_vector_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_vector_proto_rawDesc), len(file_vector_proto_rawDesc)))
|
|
})
|
|
return file_vector_proto_rawDescData
|
|
}
|
|
|
|
var file_vector_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_vector_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
|
|
var file_vector_proto_goTypes = []any{
|
|
(DistanceMetric)(0), // 0: vector_pb.DistanceMetric
|
|
(*Table)(nil), // 1: vector_pb.Table
|
|
(*CreateIndexRequest)(nil), // 2: vector_pb.CreateIndexRequest
|
|
(*CreateIndexResponse)(nil), // 3: vector_pb.CreateIndexResponse
|
|
(*DropIndexRequest)(nil), // 4: vector_pb.DropIndexRequest
|
|
(*DropIndexResponse)(nil), // 5: vector_pb.DropIndexResponse
|
|
(*Vector)(nil), // 6: vector_pb.Vector
|
|
(*PutVectorsRequest)(nil), // 7: vector_pb.PutVectorsRequest
|
|
(*PutVectorsResponse)(nil), // 8: vector_pb.PutVectorsResponse
|
|
(*GetVectorsRequest)(nil), // 9: vector_pb.GetVectorsRequest
|
|
(*GetVectorsResponse)(nil), // 10: vector_pb.GetVectorsResponse
|
|
(*DeleteVectorsRequest)(nil), // 11: vector_pb.DeleteVectorsRequest
|
|
(*DeleteVectorsResponse)(nil), // 12: vector_pb.DeleteVectorsResponse
|
|
(*ListVectorsRequest)(nil), // 13: vector_pb.ListVectorsRequest
|
|
(*ListVectorsResponse)(nil), // 14: vector_pb.ListVectorsResponse
|
|
(*QueryVectorsRequest)(nil), // 15: vector_pb.QueryVectorsRequest
|
|
(*QueryResult)(nil), // 16: vector_pb.QueryResult
|
|
(*QueryVectorsResponse)(nil), // 17: vector_pb.QueryVectorsResponse
|
|
(*FilterStatsRequest)(nil), // 18: vector_pb.FilterStatsRequest
|
|
(*FilterKeyStats)(nil), // 19: vector_pb.FilterKeyStats
|
|
(*FilterStatsResponse)(nil), // 20: vector_pb.FilterStatsResponse
|
|
(*MetadataKeysRequest)(nil), // 21: vector_pb.MetadataKeysRequest
|
|
(*MetadataKey)(nil), // 22: vector_pb.MetadataKey
|
|
(*MetadataKeysResponse)(nil), // 23: vector_pb.MetadataKeysResponse
|
|
(*UpdateMetadataKeyRequest)(nil), // 24: vector_pb.UpdateMetadataKeyRequest
|
|
(*structpb.Struct)(nil), // 25: google.protobuf.Struct
|
|
}
|
|
var file_vector_proto_depIdxs = []int32{
|
|
1, // 0: vector_pb.CreateIndexRequest.table:type_name -> vector_pb.Table
|
|
0, // 1: vector_pb.CreateIndexRequest.distance_metric:type_name -> vector_pb.DistanceMetric
|
|
1, // 2: vector_pb.DropIndexRequest.table:type_name -> vector_pb.Table
|
|
25, // 3: vector_pb.Vector.metadata:type_name -> google.protobuf.Struct
|
|
1, // 4: vector_pb.PutVectorsRequest.table:type_name -> vector_pb.Table
|
|
6, // 5: vector_pb.PutVectorsRequest.vectors:type_name -> vector_pb.Vector
|
|
1, // 6: vector_pb.GetVectorsRequest.table:type_name -> vector_pb.Table
|
|
6, // 7: vector_pb.GetVectorsResponse.vectors:type_name -> vector_pb.Vector
|
|
1, // 8: vector_pb.DeleteVectorsRequest.table:type_name -> vector_pb.Table
|
|
1, // 9: vector_pb.ListVectorsRequest.table:type_name -> vector_pb.Table
|
|
6, // 10: vector_pb.ListVectorsResponse.vectors:type_name -> vector_pb.Vector
|
|
1, // 11: vector_pb.QueryVectorsRequest.table:type_name -> vector_pb.Table
|
|
25, // 12: vector_pb.QueryResult.metadata:type_name -> google.protobuf.Struct
|
|
16, // 13: vector_pb.QueryVectorsResponse.vectors:type_name -> vector_pb.QueryResult
|
|
1, // 14: vector_pb.FilterStatsRequest.table:type_name -> vector_pb.Table
|
|
19, // 15: vector_pb.FilterStatsResponse.keys:type_name -> vector_pb.FilterKeyStats
|
|
1, // 16: vector_pb.MetadataKeysRequest.table:type_name -> vector_pb.Table
|
|
22, // 17: vector_pb.MetadataKeysResponse.keys:type_name -> vector_pb.MetadataKey
|
|
1, // 18: vector_pb.UpdateMetadataKeyRequest.table:type_name -> vector_pb.Table
|
|
2, // 19: vector_pb.VectorService.CreateIndex:input_type -> vector_pb.CreateIndexRequest
|
|
4, // 20: vector_pb.VectorService.DropIndex:input_type -> vector_pb.DropIndexRequest
|
|
7, // 21: vector_pb.VectorService.PutVectors:input_type -> vector_pb.PutVectorsRequest
|
|
9, // 22: vector_pb.VectorService.GetVectors:input_type -> vector_pb.GetVectorsRequest
|
|
11, // 23: vector_pb.VectorService.DeleteVectors:input_type -> vector_pb.DeleteVectorsRequest
|
|
13, // 24: vector_pb.VectorService.ListVectors:input_type -> vector_pb.ListVectorsRequest
|
|
15, // 25: vector_pb.VectorService.QueryVectors:input_type -> vector_pb.QueryVectorsRequest
|
|
15, // 26: vector_pb.VectorService.QueryIndexedVectors:input_type -> vector_pb.QueryVectorsRequest
|
|
18, // 27: vector_pb.VectorService.FilterStats:input_type -> vector_pb.FilterStatsRequest
|
|
21, // 28: vector_pb.VectorService.MetadataKeys:input_type -> vector_pb.MetadataKeysRequest
|
|
24, // 29: vector_pb.VectorService.UpdateMetadataKey:input_type -> vector_pb.UpdateMetadataKeyRequest
|
|
3, // 30: vector_pb.VectorService.CreateIndex:output_type -> vector_pb.CreateIndexResponse
|
|
5, // 31: vector_pb.VectorService.DropIndex:output_type -> vector_pb.DropIndexResponse
|
|
8, // 32: vector_pb.VectorService.PutVectors:output_type -> vector_pb.PutVectorsResponse
|
|
10, // 33: vector_pb.VectorService.GetVectors:output_type -> vector_pb.GetVectorsResponse
|
|
12, // 34: vector_pb.VectorService.DeleteVectors:output_type -> vector_pb.DeleteVectorsResponse
|
|
14, // 35: vector_pb.VectorService.ListVectors:output_type -> vector_pb.ListVectorsResponse
|
|
17, // 36: vector_pb.VectorService.QueryVectors:output_type -> vector_pb.QueryVectorsResponse
|
|
17, // 37: vector_pb.VectorService.QueryIndexedVectors:output_type -> vector_pb.QueryVectorsResponse
|
|
20, // 38: vector_pb.VectorService.FilterStats:output_type -> vector_pb.FilterStatsResponse
|
|
23, // 39: vector_pb.VectorService.MetadataKeys:output_type -> vector_pb.MetadataKeysResponse
|
|
23, // 40: vector_pb.VectorService.UpdateMetadataKey:output_type -> vector_pb.MetadataKeysResponse
|
|
30, // [30:41] is the sub-list for method output_type
|
|
19, // [19:30] is the sub-list for method input_type
|
|
19, // [19:19] is the sub-list for extension type_name
|
|
19, // [19:19] is the sub-list for extension extendee
|
|
0, // [0:19] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_vector_proto_init() }
|
|
func file_vector_proto_init() {
|
|
if File_vector_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_vector_proto_rawDesc), len(file_vector_proto_rawDesc)),
|
|
NumEnums: 1,
|
|
NumMessages: 24,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_vector_proto_goTypes,
|
|
DependencyIndexes: file_vector_proto_depIdxs,
|
|
EnumInfos: file_vector_proto_enumTypes,
|
|
MessageInfos: file_vector_proto_msgTypes,
|
|
}.Build()
|
|
File_vector_proto = out.File
|
|
file_vector_proto_goTypes = nil
|
|
file_vector_proto_depIdxs = nil
|
|
}
|