mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
* vector: derive the indexed metadata key columns An indexed metadata key is a hidden `_mk_<n>` column of List<Utf8>: the strings an S3 `$eq` on a string matches, that is the value when it is a string or the string elements of an array, and nothing for any other type or a missing key. The field metadata names the key and its state (`building` or `ready`). The module derives the column from metadata given as JSON (the write path) or as stored (jsonb or JSON text, for a backfill), and reads the indexed keys from a schema. It lives in the worker crate so the engine and the worker share it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: fill the indexed metadata key columns on PutVectors PutVectors builds its batch against the table's current schema. Once a table has indexed metadata key columns, the three-column batch no longer matches that schema and the write fails. Fill each `_mk_*` column the schema has from the row's metadata, whatever the key's state; a column the engine does not know still fails the request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: answer string $eq and $in on a ready indexed key from its column The gateway renders a string `$eq` or `$in` on a key as an OR of `json_extract(metadata, P) = '"v"'` (or IN) and `json_array_contains(metadata, P, '"v"')` over the same values. On the parsed filter, a top-level conjunct of that shape on a key whose column is `ready` becomes `array_has` / `array_has_any` on the column, which its LABEL_LIST index answers. The two halves must name the same key and the same strings, the scalar half in the text json_extract returns for them; anything else, including `$ne`, `$nin`, `$exists`, numbers and booleans, stays on the JSON path, and the other conjuncts still apply. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: score few indexed matches exactly, per scope With a ready indexed key in the filter, `ann` first counts the rows of its scope that the key's conjuncts match, through the scalar index. When they are at most the limit it scores them exactly over that scope, the way the short-result fallback does; above it, the vector index searches with the indexed prefilter, and the fallback still applies. The scope is the one `exact_in_scope` scores, so per-scope exact answers merge into the global exact top-k. The limit is `Query::exact_match_limit` (None takes 256; 0 never counts), set by the engine's --exact-match-limit (WEED_VECTOR_EXACT_MATCH_LIMIT). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: count filtered queries by metadata key For each index, the engine counts its QueryVectors calls by the metadata keys of the parsed filter, with their total latency and the operand types each key was compared with, over the last hour in 5-minute buckets. At most 512 indexes and 32 keys per index are kept (an idle key makes room; otherwise the index is marked truncated), and the stats are not exported as metrics labels. The new FilterStats RPC returns an index's stats; the gateway's discovery client forwards it like the other calls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: report the metadata columns capability in gRPC health An engine whose writes fill the indexed metadata key columns reports the gRPC health service `weed.vector.capability.metadata_columns` as serving, so an operator action can refuse to index a key while an older engine could still write the table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: expire filter stats' operand kinds and truncation with the window The operand kinds a key was compared with, and the mark that a key went uncounted, outlived the queries that set them. Keep the kinds per 5-minute bucket and the truncation as the bucket it last happened in, so both leave the hour window with the counts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: fill indexed key columns a write left empty racing their add A PutVectors that opened the table before an indexed key's column was added, and commits after the add, is rebased by Lance onto the wider schema: it commits, and the rows it wrote hold NULL in the new column, so the column's index misses them (reproduced in the test: 100 of 150 rows). After its commit, PutVectors now looks for indexed-key columns the batch did not carry, reads those of its keys whose column is still NULL, derives the values from their stored metadata and patches just those columns with a partial-schema merge that updates only rows still NULL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: keep filter stats' truncation mark at the later bucket record() reads the clock before it takes the lock, so a call that waited on the lock across a bucket boundary could move the truncation mark (and the index's last-used bucket) back to its earlier bucket, and the mark then left the window one bucket early. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * vector: derive a raced write's indexed key columns from current metadata A PutVectors that opened the table before an indexed key's column was added is retried by Lance against the wider schema: rows it inserts hold NULL there, and rows it updates keep the value derived from their old metadata, which the NULL-only heal never looked at. The heal now derives the columns for all of the write's keys. Its merge also ran with Lance's retry, which joins the values derived before the conflict onto the rows a later write of the same keys left. It now fails on a conflict and is redone from the latest version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * vector: check the raced write's keys keep the later write's rows Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1484 lines
45 KiB
Go
1484 lines
45 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.6
|
|
// protoc v3.21.12
|
|
// 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
|
|
}
|
|
|
|
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*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\xfc\x04\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\x12L\n" +
|
|
"\vFilterStats\x12\x1d.vector_pb.FilterStatsRequest\x1a\x1e.vector_pb.FilterStatsResponseB2Z0github.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, 20)
|
|
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
|
|
(*structpb.Struct)(nil), // 21: 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
|
|
21, // 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
|
|
21, // 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
|
|
2, // 16: vector_pb.VectorService.CreateIndex:input_type -> vector_pb.CreateIndexRequest
|
|
4, // 17: vector_pb.VectorService.DropIndex:input_type -> vector_pb.DropIndexRequest
|
|
7, // 18: vector_pb.VectorService.PutVectors:input_type -> vector_pb.PutVectorsRequest
|
|
9, // 19: vector_pb.VectorService.GetVectors:input_type -> vector_pb.GetVectorsRequest
|
|
11, // 20: vector_pb.VectorService.DeleteVectors:input_type -> vector_pb.DeleteVectorsRequest
|
|
13, // 21: vector_pb.VectorService.ListVectors:input_type -> vector_pb.ListVectorsRequest
|
|
15, // 22: vector_pb.VectorService.QueryVectors:input_type -> vector_pb.QueryVectorsRequest
|
|
18, // 23: vector_pb.VectorService.FilterStats:input_type -> vector_pb.FilterStatsRequest
|
|
3, // 24: vector_pb.VectorService.CreateIndex:output_type -> vector_pb.CreateIndexResponse
|
|
5, // 25: vector_pb.VectorService.DropIndex:output_type -> vector_pb.DropIndexResponse
|
|
8, // 26: vector_pb.VectorService.PutVectors:output_type -> vector_pb.PutVectorsResponse
|
|
10, // 27: vector_pb.VectorService.GetVectors:output_type -> vector_pb.GetVectorsResponse
|
|
12, // 28: vector_pb.VectorService.DeleteVectors:output_type -> vector_pb.DeleteVectorsResponse
|
|
14, // 29: vector_pb.VectorService.ListVectors:output_type -> vector_pb.ListVectorsResponse
|
|
17, // 30: vector_pb.VectorService.QueryVectors:output_type -> vector_pb.QueryVectorsResponse
|
|
20, // 31: vector_pb.VectorService.FilterStats:output_type -> vector_pb.FilterStatsResponse
|
|
24, // [24:32] is the sub-list for method output_type
|
|
16, // [16:24] is the sub-list for method input_type
|
|
16, // [16:16] is the sub-list for extension type_name
|
|
16, // [16:16] is the sub-list for extension extendee
|
|
0, // [0:16] 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: 20,
|
|
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
|
|
}
|