diff options
Diffstat (limited to 'proto/icing/proto/document.proto')
-rw-r--r-- | proto/icing/proto/document.proto | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/proto/icing/proto/document.proto b/proto/icing/proto/document.proto index 1a501e7..919769e 100644 --- a/proto/icing/proto/document.proto +++ b/proto/icing/proto/document.proto @@ -78,7 +78,7 @@ message DocumentProto { } // Holds a property field of the Document. -// Next tag: 8 +// Next tag: 9 message PropertyProto { // Name of the property. // See icing.lib.PropertyConfigProto.property_name for details. @@ -92,6 +92,17 @@ message PropertyProto { repeated bool boolean_values = 5; repeated bytes bytes_values = 6; repeated DocumentProto document_values = 7; + + message VectorProto { + // The values of the vector. + repeated float values = 1 [packed = true]; + // The model signature of the vector, which can be any string used to + // identify the model, so that embedding searches can be restricted only to + // the vectors with the matching target signature. + // Eg: "universal-sentence-encoder_v0" + optional string model_signature = 2; + } + repeated VectorProto vector_values = 8; } // Result of a call to IcingSearchEngine.Put |