Skip to content

Commit

Permalink
test with new proto files
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-aerospike committed Oct 16, 2024
1 parent 2047a23 commit 8b80e3a
Show file tree
Hide file tree
Showing 12 changed files with 107 additions and 93 deletions.
6 changes: 6 additions & 0 deletions proto/index.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ import "types.proto";
message IndexStatusResponse {
// Number of unmerged index records.
int64 unmergedRecordCount = 2;

// Number of vector records indexed (0 in case healer has not yet run).
int64 indexHealerVectorRecordsIndexed = 3;

// Number of vertices in the main index (0 in case healer has not yet run).
int64 indexHealerVerticesValid = 4;
}

message GcInvalidVerticesRequest {
Expand Down
8 changes: 4 additions & 4 deletions proto/transact.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ message PutRequest {
// The key for the record to insert/update
Key key = 1;

// The type of the put/write request.
WriteType writeType = 2;
// The type of the put/write request. Defaults to UPSERT.
optional WriteType writeType = 2;

// The record fields.
repeated Field fields = 3;
Expand Down Expand Up @@ -88,8 +88,8 @@ enum ProjectionType {

// A projection filter.
message ProjectionFilter {
// The type of the selector.
ProjectionType type = 1;
// The type of the selector. Defaults to ALL.
optional ProjectionType type = 1;

// Names of desired fields / selectors.
repeated string fields = 2;
Expand Down
18 changes: 13 additions & 5 deletions proto/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ message HnswParams {

// Configures merge of batch indices to main index.
HnswIndexMergeParams mergeParams = 8;

// Verify whether the underlying vector has changed before returning the kAnn
// result. Defaults to true.
optional bool enableVectorIntegrityCheck = 9;
}

// Params for the HNSW index search.
Expand Down Expand Up @@ -234,7 +238,7 @@ message HnswCachingParams {
// A cache entry will expire after this time in milliseconds has
// expired after the entry was added to cache.
// Defaults to the global cache config configured for the VectorDB.
optional uint64 expiry = 2;
optional int64 expiry = 2;
}

// Params to configure Hnsw index cache
Expand Down Expand Up @@ -292,6 +296,10 @@ message HnswIndexUpdate {

// Configures merge of batch indices to main index.
optional HnswIndexMergeParams mergeParams = 5;

// Verify whether the underlying vector has changed before returning the kAnn
// result. Defaults to true.
optional bool enableVectorIntegrityCheck = 6;
}

// Index storage configuration
Expand All @@ -310,15 +318,15 @@ message IndexDefinition {
// The index identifier.
IndexId id = 1;

// The type of index.
IndexType type = 2;
// The type of index. Defaults to HNSW.
optional IndexType type = 2;

// Number of dimensions in data.
// Vectors not matching the dimension count will not be indexed.
uint32 dimensions = 3;

// Optional The distance metric to use. Defaults to SQUARED_EUCLIDEAN
VectorDistanceMetric vectorDistanceMetric = 4;
// Optional The distance metric to use. Defaults to SQUARED_EUCLIDEAN.
optional VectorDistanceMetric vectorDistanceMetric = 4;

// Name of the record vector field to index.
string field = 5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from . import auth_pb2 as auth__pb2

GRPC_GENERATED_VERSION = '1.66.1'
GRPC_GENERATED_VERSION = '1.66.2'
GRPC_VERSION = grpc.__version__
_version_not_supported = False

Expand Down
40 changes: 20 additions & 20 deletions src/aerospike_vector_search/shared/proto_generated/index_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from . import index_pb2 as index__pb2
from . import types_pb2 as types__pb2

GRPC_GENERATED_VERSION = '1.66.1'
GRPC_GENERATED_VERSION = '1.66.2'
GRPC_VERSION = grpc.__version__
_version_not_supported = False

Expand Down
44 changes: 22 additions & 22 deletions src/aerospike_vector_search/shared/proto_generated/transact_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from . import transact_pb2 as transact__pb2
from . import types_pb2 as types__pb2

GRPC_GENERATED_VERSION = '1.66.1'
GRPC_GENERATED_VERSION = '1.66.2'
GRPC_VERSION = grpc.__version__
_version_not_supported = False

Expand Down
Loading

0 comments on commit 8b80e3a

Please sign in to comment.