Skip to content

Commit e2fcb50

Browse files
authored
Neighbors -> Neighbor in PNNS (#13)
1 parent 4b54a2a commit e2fcb50

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

apple/swift_homomorphic_encryption/api/pnns/v1/pnns.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ message PNNSConfig {
3131
apple.swift_homomorphic_encryption.pnns.v1.MatrixPacking query_packing = 3;
3232
// Number of entries in each vector.
3333
uint32 vector_dimension = 4;
34-
// Metric for similarity computation.
34+
// Metric for computing distances.
3535
apple.swift_homomorphic_encryption.pnns.v1.DistanceMetric distance_metric = 5;
3636
// hash of EvaluationKeyConfig.
3737
bytes evaluation_key_config_hash = 6;

apple/swift_homomorphic_encryption/pnns/v1/pnns_client_config.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ message ClientConfig {
2929
MatrixPacking query_packing = 3;
3030
// Number of entries in each vector.
3131
uint32 vector_dimension = 4;
32-
// Galois elements required for nearest neighbors computation.
32+
// Galois elements required for nearest neighbor search.
3333
repeated uint32 galois_elements = 5;
3434
// Metric for distances between vectors.
3535
DistanceMetric distance_metric = 6;

apple/swift_homomorphic_encryption/pnns/v1/pnns_database.proto

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
syntax = "proto3";
1616
package apple.swift_homomorphic_encryption.pnns.v1;
1717

18-
// Row in a private nearest neighbors search database.
18+
// Row in a private nearest neighbor search database.
1919
message DatabaseRow {
2020
// Unique identifier for the database entry.
2121
uint64 entry_id = 1;
2222
// Metadata associated with the entry.
2323
bytes entry_metadata = 2;
24-
// Vector for use in nearest neighbors computation.
24+
// Vector for use in nearest neighbor search.
2525
repeated float vector = 3;
2626
}
2727

28-
// A private nearest neighbors search database.
28+
// A private nearest neighbor search database.
2929
message Database {
3030
// Rows in the database.
3131
repeated DatabaseRow rows = 1;

apple/swift_homomorphic_encryption/pnns/v1/pnns_processed_database.proto

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ package apple.swift_homomorphic_encryption.pnns.v1;
1818
import "apple/swift_homomorphic_encryption/pnns/v1/pnns.proto";
1919
import "apple/swift_homomorphic_encryption/pnns/v1/pnns_server_config.proto";
2020

21-
// Serialized pre-processed nearest neighbors database.
21+
// Serialized pre-processed nearest neighbor database.
2222
message SerializedProcessedDatabase {
23-
// Pre-computed values for the nearest neighbors computation, one per plaintext CRT modulus.
23+
// Pre-computed values for the nearest neighbor search, one per plaintext CRT modulus.
2424
repeated SerializedPlaintextMatrix plaintext_matrices = 1;
2525
// Unique identifier for each entry in the database.
2626
repeated uint64 entry_ids = 2;

0 commit comments

Comments
 (0)