-
Notifications
You must be signed in to change notification settings - Fork 0
/
indexing_core.proto
executable file
·45 lines (37 loc) · 1.56 KB
/
indexing_core.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
syntax = "proto3";
import "custom_dim.proto";
option java_package = "com.vectara.indexing";
option java_outer_classname = "CoreIndexingProtos";
option go_package = "vectara.com/public/proto/indexingcore";
package com.vectara.indexing;
// Part of a document. A document consists of several such parts.
message CoreDocumentPart {
// A part of the document. e.g., a sentence.
string text = 1;
// Context of the part.
string context = 2;
// Metadata about this part of the document. This should be a json string.
// It is passed through the system, without being used at indexing time. It
// can be retrieved at query time.
string metadata_json = 3;
// A list of custom dimension values that are included in the generated
// representation of this part. These are optional and take on the corpus
// default custom dimension value if not explicitly provided for the document
repeated CustomDimension custom_dims = 4;
}
// A document to index.
message CoreDocument {
// A document ID to assign to this document.
string document_id = 1;
// Metadata about the document. This should be a json string. It can be
// retrieved at query time.
string metadata_json = 2;
// All parts of this document.
repeated CoreDocumentPart parts = 3;
// This field provides a way to specify a blanket context for all parts. If
// the context in a part is empty, this context will be used.
string default_part_context = 4;
// A list of custom dimension values that are included in the generated
// representation of all parts.
repeated CustomDimension custom_dims = 5;
}