File tree 4 files changed +7
-7
lines changed
apple/swift_homomorphic_encryption
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ message PNNSConfig {
31
31
apple.swift_homomorphic_encryption.pnns.v1.MatrixPacking query_packing = 3 ;
32
32
// Number of entries in each vector.
33
33
uint32 vector_dimension = 4 ;
34
- // Metric for similarity computation .
34
+ // Metric for computing distances .
35
35
apple.swift_homomorphic_encryption.pnns.v1.DistanceMetric distance_metric = 5 ;
36
36
// hash of EvaluationKeyConfig.
37
37
bytes evaluation_key_config_hash = 6 ;
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ message ClientConfig {
29
29
MatrixPacking query_packing = 3 ;
30
30
// Number of entries in each vector.
31
31
uint32 vector_dimension = 4 ;
32
- // Galois elements required for nearest neighbors computation .
32
+ // Galois elements required for nearest neighbor search .
33
33
repeated uint32 galois_elements = 5 ;
34
34
// Metric for distances between vectors.
35
35
DistanceMetric distance_metric = 6 ;
Original file line number Diff line number Diff line change 15
15
syntax = "proto3" ;
16
16
package apple.swift_homomorphic_encryption.pnns.v1 ;
17
17
18
- // Row in a private nearest neighbors search database.
18
+ // Row in a private nearest neighbor search database.
19
19
message DatabaseRow {
20
20
// Unique identifier for the database entry.
21
21
uint64 entry_id = 1 ;
22
22
// Metadata associated with the entry.
23
23
bytes entry_metadata = 2 ;
24
- // Vector for use in nearest neighbors computation .
24
+ // Vector for use in nearest neighbor search .
25
25
repeated float vector = 3 ;
26
26
}
27
27
28
- // A private nearest neighbors search database.
28
+ // A private nearest neighbor search database.
29
29
message Database {
30
30
// Rows in the database.
31
31
repeated DatabaseRow rows = 1 ;
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ package apple.swift_homomorphic_encryption.pnns.v1;
18
18
import "apple/swift_homomorphic_encryption/pnns/v1/pnns.proto" ;
19
19
import "apple/swift_homomorphic_encryption/pnns/v1/pnns_server_config.proto" ;
20
20
21
- // Serialized pre-processed nearest neighbors database.
21
+ // Serialized pre-processed nearest neighbor database.
22
22
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.
24
24
repeated SerializedPlaintextMatrix plaintext_matrices = 1 ;
25
25
// Unique identifier for each entry in the database.
26
26
repeated uint64 entry_ids = 2 ;
You can’t perform that action at this time.
0 commit comments