nidx-protos 6.3.7.post4120__py3-none-any.whl → 6.4.0.post4129__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nidx_protos/nidx_pb2.py +6 -6
- nidx_protos/nidx_pb2_grpc.py +0 -43
- nidx_protos/nodereader_pb2.py +17 -37
- nidx_protos/nodereader_pb2.pyi +0 -156
- nidx_protos/noderesources_pb2.py +55 -71
- nidx_protos/noderesources_pb2.pyi +0 -80
- nidx_protos/nodewriter_pb2.py +15 -25
- nidx_protos/nodewriter_pb2.pyi +0 -62
- {nidx_protos-6.3.7.post4120.dist-info → nidx_protos-6.4.0.post4129.dist-info}/METADATA +1 -1
- nidx_protos-6.4.0.post4129.dist-info/RECORD +15 -0
- nidx_protos/nodereader_pb2_grpc.py +0 -579
- nidx_protos/nodewriter_pb2_grpc.py +0 -571
- nidx_protos-6.3.7.post4120.dist-info/RECORD +0 -17
- {nidx_protos-6.3.7.post4120.dist-info → nidx_protos-6.4.0.post4129.dist-info}/WHEEL +0 -0
- {nidx_protos-6.3.7.post4120.dist-info → nidx_protos-6.4.0.post4129.dist-info}/entry_points.txt +0 -0
nidx_protos/nidx_pb2.py
CHANGED
@@ -46,7 +46,7 @@ except AttributeError:
|
|
46
46
|
nucliadb__protos_dot_utils__pb2 = nidx__protos_dot_nodewriter__pb2.nucliadb_protos.utils_pb2
|
47
47
|
|
48
48
|
|
49
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16nidx_protos/nidx.proto\x12\x04nidx\x1a\x1cnidx_protos/nodereader.proto\x1a\x1cnidx_protos/nodewriter.proto\"\x92\x01\n\x0cNotification\x12\x0c\n\x04uuid\x18\x03 \x01(\t\x12\x0c\n\x04kbid\x18\x04 \x01(\t\x12\r\n\x05seqid\x18\x05 \x01(\x03\x12)\n\x06\x61\x63tion\x18\x06 \x01(\x0e\x32\x19.nidx.Notification.Action\",\n\x06\x41\x63tion\x12\n\n\x06\x43OMMIT\x10\x00\x12\t\n\x05\x41\x42ORT\x10\x01\x12\x0b\n\x07INDEXED\x10\x02\x32\
|
49
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16nidx_protos/nidx.proto\x12\x04nidx\x1a\x1cnidx_protos/nodereader.proto\x1a\x1cnidx_protos/nodewriter.proto\"\x92\x01\n\x0cNotification\x12\x0c\n\x04uuid\x18\x03 \x01(\t\x12\x0c\n\x04kbid\x18\x04 \x01(\t\x12\r\n\x05seqid\x18\x05 \x01(\x03\x12)\n\x06\x61\x63tion\x18\x06 \x01(\x0e\x32\x19.nidx.Notification.Action\",\n\x06\x41\x63tion\x12\n\n\x06\x43OMMIT\x10\x00\x12\t\n\x05\x41\x42ORT\x10\x01\x12\x0b\n\x07INDEXED\x10\x02\x32\xf1\x03\n\x07NidxApi\x12?\n\x08GetShard\x12\x1b.nodereader.GetShardRequest\x1a\x14.noderesources.Shard\"\x00\x12\x46\n\x08NewShard\x12\x1b.nodewriter.NewShardRequest\x1a\x1b.noderesources.ShardCreated\"\x00\x12?\n\x0b\x44\x65leteShard\x12\x16.noderesources.ShardId\x1a\x16.noderesources.ShardId\"\x00\x12\x42\n\nListShards\x12\x19.noderesources.EmptyQuery\x1a\x17.noderesources.ShardIds\"\x00\x12G\n\x0c\x41\x64\x64VectorSet\x12\x1f.nodewriter.NewVectorSetRequest\x1a\x14.nodewriter.OpStatus\"\x00\x12\x45\n\x0fRemoveVectorSet\x12\x1a.noderesources.VectorSetID\x1a\x14.nodewriter.OpStatus\"\x00\x12H\n\x0eListVectorSets\x12\x16.noderesources.ShardId\x1a\x1c.noderesources.VectorSetList\"\x00\x32\xf7\x02\n\x0cNidxSearcher\x12\x41\n\x06Search\x12\x19.nodereader.SearchRequest\x1a\x1a.nodereader.SearchResponse\"\x00\x12P\n\x0bGraphSearch\x12\x1e.nodereader.GraphSearchRequest\x1a\x1f.nodereader.GraphSearchResponse\"\x00\x12\x44\n\x07Suggest\x12\x1a.nodereader.SuggestRequest\x1a\x1b.nodereader.SuggestResponse\"\x00\x12\x46\n\nParagraphs\x12\x19.nodereader.StreamRequest\x1a\x19.nodereader.ParagraphItem\"\x00\x30\x01\x12\x44\n\tDocuments\x12\x19.nodereader.StreamRequest\x1a\x18.nodereader.DocumentItem\"\x00\x30\x01\x32H\n\x0bNidxIndexer\x12\x39\n\x05Index\x12\x18.nodewriter.IndexMessage\x1a\x14.nodewriter.OpStatus\"\x00\x62\x06proto3')
|
50
50
|
|
51
51
|
_globals = globals()
|
52
52
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -58,9 +58,9 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
58
58
|
_globals['_NOTIFICATION_ACTION']._serialized_start=195
|
59
59
|
_globals['_NOTIFICATION_ACTION']._serialized_end=239
|
60
60
|
_globals['_NIDXAPI']._serialized_start=242
|
61
|
-
_globals['_NIDXAPI']._serialized_end=
|
62
|
-
_globals['_NIDXSEARCHER']._serialized_start=
|
63
|
-
_globals['_NIDXSEARCHER']._serialized_end=
|
64
|
-
_globals['_NIDXINDEXER']._serialized_start=
|
65
|
-
_globals['_NIDXINDEXER']._serialized_end=
|
61
|
+
_globals['_NIDXAPI']._serialized_end=739
|
62
|
+
_globals['_NIDXSEARCHER']._serialized_start=742
|
63
|
+
_globals['_NIDXSEARCHER']._serialized_end=1117
|
64
|
+
_globals['_NIDXINDEXER']._serialized_start=1119
|
65
|
+
_globals['_NIDXINDEXER']._serialized_end=1191
|
66
66
|
# @@protoc_insertion_point(module_scope)
|
nidx_protos/nidx_pb2_grpc.py
CHANGED
@@ -71,11 +71,6 @@ class NidxApiStub(object):
|
|
71
71
|
request_serializer=nidx__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
72
72
|
response_deserializer=nidx__protos_dot_noderesources__pb2.VectorSetList.FromString,
|
73
73
|
_registered_method=True)
|
74
|
-
self.GetMetadata = channel.unary_unary(
|
75
|
-
'/nidx.NidxApi/GetMetadata',
|
76
|
-
request_serializer=nidx__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
|
77
|
-
response_deserializer=nidx__protos_dot_noderesources__pb2.NodeMetadata.FromString,
|
78
|
-
_registered_method=True)
|
79
74
|
|
80
75
|
|
81
76
|
class NidxApiServicer(object):
|
@@ -123,12 +118,6 @@ class NidxApiServicer(object):
|
|
123
118
|
context.set_details('Method not implemented!')
|
124
119
|
raise NotImplementedError('Method not implemented!')
|
125
120
|
|
126
|
-
def GetMetadata(self, request, context):
|
127
|
-
"""Missing associated documentation comment in .proto file."""
|
128
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
129
|
-
context.set_details('Method not implemented!')
|
130
|
-
raise NotImplementedError('Method not implemented!')
|
131
|
-
|
132
121
|
|
133
122
|
def add_NidxApiServicer_to_server(servicer, server):
|
134
123
|
rpc_method_handlers = {
|
@@ -167,11 +156,6 @@ def add_NidxApiServicer_to_server(servicer, server):
|
|
167
156
|
request_deserializer=nidx__protos_dot_noderesources__pb2.ShardId.FromString,
|
168
157
|
response_serializer=nidx__protos_dot_noderesources__pb2.VectorSetList.SerializeToString,
|
169
158
|
),
|
170
|
-
'GetMetadata': grpc.unary_unary_rpc_method_handler(
|
171
|
-
servicer.GetMetadata,
|
172
|
-
request_deserializer=nidx__protos_dot_noderesources__pb2.EmptyQuery.FromString,
|
173
|
-
response_serializer=nidx__protos_dot_noderesources__pb2.NodeMetadata.SerializeToString,
|
174
|
-
),
|
175
159
|
}
|
176
160
|
generic_handler = grpc.method_handlers_generic_handler(
|
177
161
|
'nidx.NidxApi', rpc_method_handlers)
|
@@ -372,33 +356,6 @@ class NidxApi(object):
|
|
372
356
|
metadata,
|
373
357
|
_registered_method=True)
|
374
358
|
|
375
|
-
@staticmethod
|
376
|
-
def GetMetadata(request,
|
377
|
-
target,
|
378
|
-
options=(),
|
379
|
-
channel_credentials=None,
|
380
|
-
call_credentials=None,
|
381
|
-
insecure=False,
|
382
|
-
compression=None,
|
383
|
-
wait_for_ready=None,
|
384
|
-
timeout=None,
|
385
|
-
metadata=None):
|
386
|
-
return grpc.experimental.unary_unary(
|
387
|
-
request,
|
388
|
-
target,
|
389
|
-
'/nidx.NidxApi/GetMetadata',
|
390
|
-
nidx__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
|
391
|
-
nidx__protos_dot_noderesources__pb2.NodeMetadata.FromString,
|
392
|
-
options,
|
393
|
-
channel_credentials,
|
394
|
-
insecure,
|
395
|
-
call_credentials,
|
396
|
-
compression,
|
397
|
-
wait_for_ready,
|
398
|
-
timeout,
|
399
|
-
metadata,
|
400
|
-
_registered_method=True)
|
401
|
-
|
402
359
|
|
403
360
|
class NidxSearcherStub(object):
|
404
361
|
"""Missing associated documentation comment in .proto file."""
|
nidx_protos/nodereader_pb2.py
CHANGED
@@ -33,7 +33,7 @@ from nucliadb_protos import utils_pb2 as nucliadb__protos_dot_utils__pb2
|
|
33
33
|
from nidx_protos.noderesources_pb2 import *
|
34
34
|
from nucliadb_protos.utils_pb2 import *
|
35
35
|
|
36
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cnidx_protos/nodereader.proto\x12\nnodereader\x1a\x1fnidx_protos/noderesources.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bnucliadb_protos/utils.proto\"\x82\x01\n\x0cStreamFilter\x12\x39\n\x0b\x63onjunction\x18\x01 \x01(\x0e\x32$.nodereader.StreamFilter.Conjunction\x12\x0e\n\x06labels\x18\x02 \x03(\t\"\'\n\x0b\x43onjunction\x12\x07\n\x03\x41ND\x10\x00\x12\x06\n\x02OR\x10\x01\x12\x07\n\x03NOT\x10\x02\"\x19\n\x07\x46\x61\x63\x65ted\x12\x0e\n\x06labels\x18\x01 \x03(\t\"\xc3\x01\n\x07OrderBy\x12\x11\n\x05\x66ield\x18\x01 \x01(\tB\x02\x18\x01\x12+\n\x04type\x18\x02 \x01(\x0e\x32\x1d.nodereader.OrderBy.OrderType\x12/\n\x07sort_by\x18\x03 \x01(\x0e\x32\x1e.nodereader.OrderBy.OrderField\"\x1e\n\tOrderType\x12\x08\n\x04\x44\x45SC\x10\x00\x12\x07\n\x03\x41SC\x10\x01\"\'\n\nOrderField\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0c\n\x08MODIFIED\x10\x01\")\n\x0b\x46\x61\x63\x65tResult\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\r\n\x05total\x18\x02 \x01(\x05\"=\n\x0c\x46\x61\x63\x65tResults\x12-\n\x0c\x66\x61\x63\x65tresults\x18\x01 \x03(\x0b\x32\x17.nodereader.FacetResult\",\n\x0bResultScore\x12\x0c\n\x04\x62m25\x18\x01 \x01(\x02\x12\x0f\n\x07\x62ooster\x18\x02 \x01(\x02\"e\n\x0e\x44ocumentResult\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12&\n\x05score\x18\x03 \x01(\x0b\x32\x17.nodereader.ResultScore\x12\r\n\x05\x66ield\x18\x04 \x01(\t\x12\x0e\n\x06labels\x18\x05 \x03(\t\"\xbb\x02\n\x16\x44ocumentSearchResponse\x12\r\n\x05total\x18\x01 \x01(\x05\x12+\n\x07results\x18\x02 \x03(\x0b\x32\x1a.nodereader.DocumentResult\x12>\n\x06\x66\x61\x63\x65ts\x18\x03 \x03(\x0b\x32..nodereader.DocumentSearchResponse.FacetsEntry\x12\x13\n\x0bpage_number\x18\x04 \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x05 \x01(\x05\x12\r\n\x05query\x18\x06 \x01(\t\x12\x11\n\tnext_page\x18\x07 \x01(\x08\x12\x0c\n\x04\x62m25\x18\x08 \x01(\x08\x1aG\n\x0b\x46\x61\x63\x65tsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.nodereader.FacetResults:\x02\x38\x01\"\xf8\x01\n\x0fParagraphResult\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12\r\n\x05\x66ield\x18\x03 \x01(\t\x12\r\n\x05start\x18\x04 \x01(\x04\x12\x0b\n\x03\x65nd\x18\x05 \x01(\x04\x12\x11\n\tparagraph\x18\x06 \x01(\t\x12\r\n\x05split\x18\x07 \x01(\t\x12\r\n\x05index\x18\x08 \x01(\x04\x12&\n\x05score\x18\t \x01(\x0b\x32\x17.nodereader.ResultScore\x12\x0f\n\x07matches\x18\n \x03(\t\x12\x32\n\x08metadata\x18\x0b \x01(\x0b\x32 .noderesources.ParagraphMetadata\x12\x0e\n\x06labels\x18\x0c \x03(\t\"\xe8\x02\n\x17ParagraphSearchResponse\x12\x16\n\x0e\x66uzzy_distance\x18\n \x01(\x05\x12\r\n\x05total\x18\x01 \x01(\x05\x12,\n\x07results\x18\x02 \x03(\x0b\x32\x1b.nodereader.ParagraphResult\x12?\n\x06\x66\x61\x63\x65ts\x18\x03 \x03(\x0b\x32/.nodereader.ParagraphSearchResponse.FacetsEntry\x12\x13\n\x0bpage_number\x18\x04 \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x05 \x01(\x05\x12\r\n\x05query\x18\x06 \x01(\t\x12\x11\n\tnext_page\x18\x07 \x01(\x08\x12\x0c\n\x04\x62m25\x18\x08 \x01(\x08\x12\x10\n\x08\x65matches\x18\t \x03(\t\x1aG\n\x0b\x46\x61\x63\x65tsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.nodereader.FacetResults:\x02\x38\x01\"&\n\x18\x44ocumentVectorIdentifier\x12\n\n\x02id\x18\x01 \x01(\t\"\x98\x01\n\x0e\x44ocumentScored\x12\x34\n\x06\x64oc_id\x18\x01 \x01(\x0b\x32$.nodereader.DocumentVectorIdentifier\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x31\n\x08metadata\x18\x03 \x01(\x0b\x32\x1f.noderesources.SentenceMetadata\x12\x0e\n\x06labels\x18\x04 \x03(\t\"s\n\x14VectorSearchResponse\x12-\n\tdocuments\x18\x01 \x03(\x0b\x32\x1a.nodereader.DocumentScored\x12\x13\n\x0bpage_number\x18\x04 \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x05 \x01(\x05\"B\n\x1cRelationPrefixSearchResponse\x12\"\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.utils.RelationNode\"\x88\x0b\n\nGraphQuery\x12.\n\x04path\x18\x01 \x01(\x0b\x32 .nodereader.GraphQuery.PathQuery\x1a\xf4\x04\n\x04Node\x12\x12\n\x05value\x18\x01 \x01(\tH\x01\x88\x01\x01\x12\x34\n\tnode_type\x18\x02 \x01(\x0e\x32\x1c.utils.RelationNode.NodeTypeH\x02\x88\x01\x01\x12\x19\n\x0cnode_subtype\x18\x03 \x01(\tH\x03\x88\x01\x01\x12=\n\nmatch_kind\x18\x04 \x01(\x0e\x32%.nodereader.GraphQuery.Node.MatchKindB\x02\x18\x01\x12\x37\n\x05\x65xact\x18\x05 \x01(\x0b\x32&.nodereader.GraphQuery.Node.ExactMatchH\x00\x12\x37\n\x05\x66uzzy\x18\x06 \x01(\x0b\x32&.nodereader.GraphQuery.Node.FuzzyMatchH\x00\x1a\x45\n\nExactMatch\x12\x37\n\x04kind\x18\x01 \x01(\x0e\x32).nodereader.GraphQuery.Node.MatchLocation\x1aW\n\nFuzzyMatch\x12\x37\n\x04kind\x18\x01 \x01(\x0e\x32).nodereader.GraphQuery.Node.MatchLocation\x12\x10\n\x08\x64istance\x18\x02 \x01(\r\"7\n\tMatchKind\x12\x14\n\x10\x44\x45PRECATED_EXACT\x10\x00\x12\x14\n\x10\x44\x45PRECATED_FUZZY\x10\x01\"B\n\rMatchLocation\x12\x08\n\x04\x46ULL\x10\x00\x12\n\n\x06PREFIX\x10\x01\x12\t\n\x05WORDS\x10\x02\x12\x10\n\x0cPREFIX_WORDS\x10\x03\x42\x10\n\x0enew_match_kindB\x08\n\x06_valueB\x0c\n\n_node_typeB\x0f\n\r_node_subtype\x1at\n\x08Relation\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x38\n\rrelation_type\x18\x02 \x01(\x0e\x32\x1c.utils.Relation.RelationTypeH\x01\x88\x01\x01\x42\x08\n\x06_valueB\x10\n\x0e_relation_type\x1a\xe3\x01\n\x04Path\x12\x30\n\x06source\x18\x01 \x01(\x0b\x32\x1b.nodereader.GraphQuery.NodeH\x00\x88\x01\x01\x12\x36\n\x08relation\x18\x02 \x01(\x0b\x32\x1f.nodereader.GraphQuery.RelationH\x01\x88\x01\x01\x12\x35\n\x0b\x64\x65stination\x18\x03 \x01(\x0b\x32\x1b.nodereader.GraphQuery.NodeH\x02\x88\x01\x01\x12\x12\n\nundirected\x18\x04 \x01(\x08\x42\t\n\x07_sourceB\x0b\n\t_relationB\x0e\n\x0c_destination\x1a?\n\tBoolQuery\x12\x32\n\x08operands\x18\x01 \x03(\x0b\x32 .nodereader.GraphQuery.PathQuery\x1a\x1c\n\x0b\x46\x61\x63\x65tFilter\x12\r\n\x05\x66\x61\x63\x65t\x18\x01 \x01(\t\x1a\x97\x02\n\tPathQuery\x12+\n\x04path\x18\x01 \x01(\x0b\x32\x1b.nodereader.GraphQuery.PathH\x00\x12\x34\n\x08\x62ool_not\x18\x02 \x01(\x0b\x32 .nodereader.GraphQuery.PathQueryH\x00\x12\x34\n\x08\x62ool_and\x18\x03 \x01(\x0b\x32 .nodereader.GraphQuery.BoolQueryH\x00\x12\x33\n\x07\x62ool_or\x18\x04 \x01(\x0b\x32 .nodereader.GraphQuery.BoolQueryH\x00\x12\x33\n\x05\x66\x61\x63\x65t\x18\x05 \x01(\x0b\x32\".nodereader.GraphQuery.FacetFilterH\x00\x42\x07\n\x05query\"\xc1\x02\n\x12GraphSearchRequest\x12\r\n\x05shard\x18\x01 \x01(\t\x12%\n\x05query\x18\x02 \x01(\x0b\x32\x16.nodereader.GraphQuery\x12\x36\n\x04kind\x18\x03 \x01(\x0e\x32(.nodereader.GraphSearchRequest.QueryKind\x12\r\n\x05top_k\x18\x04 \x01(\r\x12&\n\x08security\x18\x05 \x01(\x0b\x32\x0f.utils.SecurityH\x00\x88\x01\x01\x12\x37\n\x0c\x66ield_filter\x18\x06 \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x01\x88\x01\x01\"/\n\tQueryKind\x12\x08\n\x04PATH\x10\x00\x12\t\n\x05NODES\x10\x01\x12\r\n\tRELATIONS\x10\x02\x42\x0b\n\t_securityB\x0f\n\r_field_filter\"\xbe\x03\n\x13GraphSearchResponse\x12\"\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.utils.RelationNode\x12;\n\trelations\x18\x02 \x03(\x0b\x32(.nodereader.GraphSearchResponse.Relation\x12\x33\n\x05graph\x18\x03 \x03(\x0b\x32$.nodereader.GraphSearchResponse.Path\x1aN\n\x08Relation\x12\x33\n\rrelation_type\x18\x01 \x01(\x0e\x32\x1c.utils.Relation.RelationType\x12\r\n\x05label\x18\x02 \x01(\t\x1a\xc0\x01\n\x04Path\x12\x0e\n\x06source\x18\x01 \x01(\r\x12\x10\n\x08relation\x18\x02 \x01(\r\x12\x13\n\x0b\x64\x65stination\x18\x03 \x01(\r\x12.\n\x08metadata\x18\x04 \x01(\x0b\x32\x17.utils.RelationMetadataH\x00\x88\x01\x01\x12\x1e\n\x11resource_field_id\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x0e\n\x06\x66\x61\x63\x65ts\x18\x06 \x03(\tB\x0b\n\t_metadataB\x14\n\x12_resource_field_id\"\xfa\x07\n\x10\x46ilterExpression\x12\x45\n\x08\x62ool_and\x18\x01 \x01(\x0b\x32\x31.nodereader.FilterExpression.FilterExpressionListH\x00\x12\x44\n\x07\x62ool_or\x18\x02 \x01(\x0b\x32\x31.nodereader.FilterExpression.FilterExpressionListH\x00\x12\x30\n\x08\x62ool_not\x18\x03 \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x00\x12?\n\x08resource\x18\x04 \x01(\x0b\x32+.nodereader.FilterExpression.ResourceFilterH\x00\x12\x39\n\x05\x66ield\x18\x05 \x01(\x0b\x32(.nodereader.FilterExpression.FieldFilterH\x00\x12=\n\x07keyword\x18\x06 \x01(\x0b\x32*.nodereader.FilterExpression.KeywordFilterH\x00\x12<\n\x04\x64\x61te\x18\x07 \x01(\x0b\x32,.nodereader.FilterExpression.DateRangeFilterH\x00\x12\x39\n\x05\x66\x61\x63\x65t\x18\x08 \x01(\x0b\x32(.nodereader.FilterExpression.FacetFilterH\x00\x1a\x46\n\x14\x46ilterExpressionList\x12.\n\x08operands\x18\x01 \x03(\x0b\x32\x1c.nodereader.FilterExpression\x1a%\n\x0eResourceFilter\x12\x13\n\x0bresource_id\x18\x01 \x01(\t\x1a\x45\n\x0b\x46ieldFilter\x12\x12\n\nfield_type\x18\x01 \x01(\t\x12\x15\n\x08\x66ield_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_field_id\x1a\xf4\x01\n\x0f\x44\x61teRangeFilter\x12\x45\n\x05\x66ield\x18\x01 \x01(\x0e\x32\x36.nodereader.FilterExpression.DateRangeFilter.DateField\x12.\n\x05since\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x88\x01\x01\x12.\n\x05until\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x88\x01\x01\"&\n\tDateField\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0c\n\x08MODIFIED\x10\x01\x42\x08\n\x06_sinceB\x08\n\x06_until\x1a \n\rKeywordFilter\x12\x0f\n\x07keyword\x18\x01 \x01(\t\x1a\x1c\n\x0b\x46\x61\x63\x65tFilter\x12\r\n\x05\x66\x61\x63\x65t\x18\x01 \x01(\tB\x06\n\x04\x65xpr\"\x84\x06\n\rSearchRequest\x12\r\n\x05shard\x18\x01 \x01(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\t\x12\"\n\x05order\x18\x05 \x01(\x0b\x32\x13.nodereader.OrderBy\x12$\n\x07\x66\x61\x63\x65ted\x18\x06 \x01(\x0b\x32\x13.nodereader.Faceted\x12\x13\n\x0bpage_number\x18\x07 \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x08 \x01(\x05\x12\x0e\n\x06vector\x18\n \x03(\x02\x12\x11\n\tvectorset\x18\x0f \x01(\t\x12\x11\n\tparagraph\x18\x0c \x01(\x08\x12\x10\n\x08\x64ocument\x18\r \x01(\x08\x12\x17\n\x0fwith_duplicates\x18\x0e \x01(\x08\x12\x14\n\x0conly_faceted\x18\x10 \x01(\x08\x12\x1b\n\x0e\x61\x64vanced_query\x18\x12 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\x12min_score_semantic\x18\x17 \x01(\x02\x12\x16\n\x0emin_score_bm25\x18\x19 \x01(\x02\x12&\n\x08security\x18\x18 \x01(\x0b\x32\x0f.utils.SecurityH\x01\x88\x01\x01\x12\x37\n\x0c\x66ield_filter\x18\x1a \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x02\x88\x01\x01\x12;\n\x10paragraph_filter\x18\x1b \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x03\x88\x01\x01\x12\x33\n\x0f\x66ilter_operator\x18\x1c \x01(\x0e\x32\x1a.nodereader.FilterOperator\x12;\n\x0cgraph_search\x18\x1d \x01(\x0b\x32%.nodereader.SearchRequest.GraphSearch\x1a\x34\n\x0bGraphSearch\x12%\n\x05query\x18\x01 \x01(\x0b\x32\x16.nodereader.GraphQueryB\x11\n\x0f_advanced_queryB\x0b\n\t_securityB\x0f\n\r_field_filterB\x13\n\x11_paragraph_filterJ\x04\x08\x14\x10\x15J\x04\x08\x15\x10\x16\"\xad\x02\n\x0eSuggestRequest\x12\r\n\x05shard\x18\x01 \x01(\t\x12\x0c\n\x04\x62ody\x18\x02 \x01(\t\x12-\n\x08\x66\x65\x61tures\x18\x06 \x03(\x0e\x32\x1b.nodereader.SuggestFeatures\x12\x37\n\x0c\x66ield_filter\x18\x07 \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x00\x88\x01\x01\x12;\n\x10paragraph_filter\x18\x08 \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x01\x88\x01\x01\x12\x33\n\x0f\x66ilter_operator\x18\t \x01(\x0e\x32\x1a.nodereader.FilterOperatorB\x0f\n\r_field_filterB\x13\n\x11_paragraph_filter\"2\n\x0fRelatedEntities\x12\x10\n\x08\x65ntities\x18\x01 \x03(\t\x12\r\n\x05total\x18\x02 \x01(\r\"\xb1\x01\n\x0fSuggestResponse\x12\r\n\x05total\x18\x01 \x01(\x05\x12,\n\x07results\x18\x02 \x03(\x0b\x32\x1b.nodereader.ParagraphResult\x12\r\n\x05query\x18\x03 \x01(\t\x12\x10\n\x08\x65matches\x18\x04 \x03(\t\x12@\n\x0e\x65ntity_results\x18\x06 \x01(\x0b\x32(.nodereader.RelationPrefixSearchResponse\"\xe6\x01\n\x0eSearchResponse\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".nodereader.DocumentSearchResponse\x12\x36\n\tparagraph\x18\x02 \x01(\x0b\x32#.nodereader.ParagraphSearchResponse\x12\x30\n\x06vector\x18\x03 \x01(\x0b\x32 .nodereader.VectorSearchResponse\x12.\n\x05graph\x18\x05 \x01(\x0b\x32\x1f.nodereader.GraphSearchResponseJ\x04\x08\x04\x10\x05\"\x1b\n\x0cIdCollection\x12\x0b\n\x03ids\x18\x01 \x03(\t\"Q\n\x0cRelationEdge\x12/\n\tedge_type\x18\x01 \x01(\x0e\x32\x1c.utils.Relation.RelationType\x12\x10\n\x08property\x18\x02 \x01(\t\"2\n\x08\x45\x64geList\x12&\n\x04list\x18\x01 \x03(\x0b\x32\x18.nodereader.RelationEdge\"N\n\x0fGetShardRequest\x12(\n\x08shard_id\x18\x01 \x01(\x0b\x32\x16.noderesources.ShardId\x12\x11\n\tvectorset\x18\x02 \x01(\t\"+\n\rParagraphItem\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06labels\x18\x02 \x03(\t\";\n\x0c\x44ocumentItem\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12\r\n\x05\x66ield\x18\x02 \x01(\t\x12\x0e\n\x06labels\x18\x03 \x03(\t\"c\n\rStreamRequest\x12(\n\x08shard_id\x18\x03 \x01(\x0b\x32\x16.noderesources.ShardId\x12(\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x18.nodereader.StreamFilter\"(\n\x14GetShardFilesRequest\x12\x10\n\x08shard_id\x18\x01 \x01(\t\"5\n\rShardFileList\x12$\n\x05\x66iles\x18\x02 \x03(\x0b\x32\x15.nodereader.ShardFile\"0\n\tShardFile\x12\x15\n\rrelative_path\x18\x01 \x01(\t\x12\x0c\n\x04size\x18\x02 \x01(\x04\"C\n\x18\x44ownloadShardFileRequest\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x15\n\rrelative_path\x18\x02 \x01(\t\"-\n\x0eShardFileChunk\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\r\n\x05index\x18\x02 \x01(\x05*!\n\x0e\x46ilterOperator\x12\x07\n\x03\x41ND\x10\x00\x12\x06\n\x02OR\x10\x01*/\n\x0fSuggestFeatures\x12\x0c\n\x08\x45NTITIES\x10\x00\x12\x0e\n\nPARAGRAPHS\x10\x01\x32\xdf\x06\n\nNodeReader\x12?\n\x08GetShard\x12\x1b.nodereader.GetShardRequest\x1a\x14.noderesources.Shard\"\x00\x12\x41\n\x0b\x44ocumentIds\x12\x16.noderesources.ShardId\x1a\x18.nodereader.IdCollection\"\x00\x12\x42\n\x0cParagraphIds\x12\x16.noderesources.ShardId\x1a\x18.nodereader.IdCollection\"\x00\x12\x43\n\tVectorIds\x12\x1a.noderesources.VectorSetID\x1a\x18.nodereader.IdCollection\"\x00\x12\x41\n\x0bRelationIds\x12\x16.noderesources.ShardId\x1a\x18.nodereader.IdCollection\"\x00\x12?\n\rRelationEdges\x12\x16.noderesources.ShardId\x1a\x14.nodereader.EdgeList\"\x00\x12\x41\n\x06Search\x12\x19.nodereader.SearchRequest\x1a\x1a.nodereader.SearchResponse\"\x00\x12\x44\n\x07Suggest\x12\x1a.nodereader.SuggestRequest\x1a\x1b.nodereader.SuggestResponse\"\x00\x12\x46\n\nParagraphs\x12\x19.nodereader.StreamRequest\x1a\x19.nodereader.ParagraphItem\"\x00\x30\x01\x12\x44\n\tDocuments\x12\x19.nodereader.StreamRequest\x1a\x18.nodereader.DocumentItem\"\x00\x30\x01\x12N\n\rGetShardFiles\x12 .nodereader.GetShardFilesRequest\x1a\x19.nodereader.ShardFileList\"\x00\x12Y\n\x11\x44ownloadShardFile\x12$.nodereader.DownloadShardFileRequest\x1a\x1a.nodereader.ShardFileChunk\"\x00\x30\x01P\x00P\x02\x62\x06proto3')
|
36
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cnidx_protos/nodereader.proto\x12\nnodereader\x1a\x1fnidx_protos/noderesources.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bnucliadb_protos/utils.proto\"\x82\x01\n\x0cStreamFilter\x12\x39\n\x0b\x63onjunction\x18\x01 \x01(\x0e\x32$.nodereader.StreamFilter.Conjunction\x12\x0e\n\x06labels\x18\x02 \x03(\t\"\'\n\x0b\x43onjunction\x12\x07\n\x03\x41ND\x10\x00\x12\x06\n\x02OR\x10\x01\x12\x07\n\x03NOT\x10\x02\"\x19\n\x07\x46\x61\x63\x65ted\x12\x0e\n\x06labels\x18\x01 \x03(\t\"\xc3\x01\n\x07OrderBy\x12\x11\n\x05\x66ield\x18\x01 \x01(\tB\x02\x18\x01\x12+\n\x04type\x18\x02 \x01(\x0e\x32\x1d.nodereader.OrderBy.OrderType\x12/\n\x07sort_by\x18\x03 \x01(\x0e\x32\x1e.nodereader.OrderBy.OrderField\"\x1e\n\tOrderType\x12\x08\n\x04\x44\x45SC\x10\x00\x12\x07\n\x03\x41SC\x10\x01\"\'\n\nOrderField\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0c\n\x08MODIFIED\x10\x01\")\n\x0b\x46\x61\x63\x65tResult\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\r\n\x05total\x18\x02 \x01(\x05\"=\n\x0c\x46\x61\x63\x65tResults\x12-\n\x0c\x66\x61\x63\x65tresults\x18\x01 \x03(\x0b\x32\x17.nodereader.FacetResult\",\n\x0bResultScore\x12\x0c\n\x04\x62m25\x18\x01 \x01(\x02\x12\x0f\n\x07\x62ooster\x18\x02 \x01(\x02\"e\n\x0e\x44ocumentResult\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12&\n\x05score\x18\x03 \x01(\x0b\x32\x17.nodereader.ResultScore\x12\r\n\x05\x66ield\x18\x04 \x01(\t\x12\x0e\n\x06labels\x18\x05 \x03(\t\"\xbb\x02\n\x16\x44ocumentSearchResponse\x12\r\n\x05total\x18\x01 \x01(\x05\x12+\n\x07results\x18\x02 \x03(\x0b\x32\x1a.nodereader.DocumentResult\x12>\n\x06\x66\x61\x63\x65ts\x18\x03 \x03(\x0b\x32..nodereader.DocumentSearchResponse.FacetsEntry\x12\x13\n\x0bpage_number\x18\x04 \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x05 \x01(\x05\x12\r\n\x05query\x18\x06 \x01(\t\x12\x11\n\tnext_page\x18\x07 \x01(\x08\x12\x0c\n\x04\x62m25\x18\x08 \x01(\x08\x1aG\n\x0b\x46\x61\x63\x65tsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.nodereader.FacetResults:\x02\x38\x01\"\xf8\x01\n\x0fParagraphResult\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12\r\n\x05\x66ield\x18\x03 \x01(\t\x12\r\n\x05start\x18\x04 \x01(\x04\x12\x0b\n\x03\x65nd\x18\x05 \x01(\x04\x12\x11\n\tparagraph\x18\x06 \x01(\t\x12\r\n\x05split\x18\x07 \x01(\t\x12\r\n\x05index\x18\x08 \x01(\x04\x12&\n\x05score\x18\t \x01(\x0b\x32\x17.nodereader.ResultScore\x12\x0f\n\x07matches\x18\n \x03(\t\x12\x32\n\x08metadata\x18\x0b \x01(\x0b\x32 .noderesources.ParagraphMetadata\x12\x0e\n\x06labels\x18\x0c \x03(\t\"\xe8\x02\n\x17ParagraphSearchResponse\x12\x16\n\x0e\x66uzzy_distance\x18\n \x01(\x05\x12\r\n\x05total\x18\x01 \x01(\x05\x12,\n\x07results\x18\x02 \x03(\x0b\x32\x1b.nodereader.ParagraphResult\x12?\n\x06\x66\x61\x63\x65ts\x18\x03 \x03(\x0b\x32/.nodereader.ParagraphSearchResponse.FacetsEntry\x12\x13\n\x0bpage_number\x18\x04 \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x05 \x01(\x05\x12\r\n\x05query\x18\x06 \x01(\t\x12\x11\n\tnext_page\x18\x07 \x01(\x08\x12\x0c\n\x04\x62m25\x18\x08 \x01(\x08\x12\x10\n\x08\x65matches\x18\t \x03(\t\x1aG\n\x0b\x46\x61\x63\x65tsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.nodereader.FacetResults:\x02\x38\x01\"&\n\x18\x44ocumentVectorIdentifier\x12\n\n\x02id\x18\x01 \x01(\t\"\x98\x01\n\x0e\x44ocumentScored\x12\x34\n\x06\x64oc_id\x18\x01 \x01(\x0b\x32$.nodereader.DocumentVectorIdentifier\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x31\n\x08metadata\x18\x03 \x01(\x0b\x32\x1f.noderesources.SentenceMetadata\x12\x0e\n\x06labels\x18\x04 \x03(\t\"s\n\x14VectorSearchResponse\x12-\n\tdocuments\x18\x01 \x03(\x0b\x32\x1a.nodereader.DocumentScored\x12\x13\n\x0bpage_number\x18\x04 \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x05 \x01(\x05\"B\n\x1cRelationPrefixSearchResponse\x12\"\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.utils.RelationNode\"\x88\x0b\n\nGraphQuery\x12.\n\x04path\x18\x01 \x01(\x0b\x32 .nodereader.GraphQuery.PathQuery\x1a\xf4\x04\n\x04Node\x12\x12\n\x05value\x18\x01 \x01(\tH\x01\x88\x01\x01\x12\x34\n\tnode_type\x18\x02 \x01(\x0e\x32\x1c.utils.RelationNode.NodeTypeH\x02\x88\x01\x01\x12\x19\n\x0cnode_subtype\x18\x03 \x01(\tH\x03\x88\x01\x01\x12=\n\nmatch_kind\x18\x04 \x01(\x0e\x32%.nodereader.GraphQuery.Node.MatchKindB\x02\x18\x01\x12\x37\n\x05\x65xact\x18\x05 \x01(\x0b\x32&.nodereader.GraphQuery.Node.ExactMatchH\x00\x12\x37\n\x05\x66uzzy\x18\x06 \x01(\x0b\x32&.nodereader.GraphQuery.Node.FuzzyMatchH\x00\x1a\x45\n\nExactMatch\x12\x37\n\x04kind\x18\x01 \x01(\x0e\x32).nodereader.GraphQuery.Node.MatchLocation\x1aW\n\nFuzzyMatch\x12\x37\n\x04kind\x18\x01 \x01(\x0e\x32).nodereader.GraphQuery.Node.MatchLocation\x12\x10\n\x08\x64istance\x18\x02 \x01(\r\"7\n\tMatchKind\x12\x14\n\x10\x44\x45PRECATED_EXACT\x10\x00\x12\x14\n\x10\x44\x45PRECATED_FUZZY\x10\x01\"B\n\rMatchLocation\x12\x08\n\x04\x46ULL\x10\x00\x12\n\n\x06PREFIX\x10\x01\x12\t\n\x05WORDS\x10\x02\x12\x10\n\x0cPREFIX_WORDS\x10\x03\x42\x10\n\x0enew_match_kindB\x08\n\x06_valueB\x0c\n\n_node_typeB\x0f\n\r_node_subtype\x1at\n\x08Relation\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x38\n\rrelation_type\x18\x02 \x01(\x0e\x32\x1c.utils.Relation.RelationTypeH\x01\x88\x01\x01\x42\x08\n\x06_valueB\x10\n\x0e_relation_type\x1a\xe3\x01\n\x04Path\x12\x30\n\x06source\x18\x01 \x01(\x0b\x32\x1b.nodereader.GraphQuery.NodeH\x00\x88\x01\x01\x12\x36\n\x08relation\x18\x02 \x01(\x0b\x32\x1f.nodereader.GraphQuery.RelationH\x01\x88\x01\x01\x12\x35\n\x0b\x64\x65stination\x18\x03 \x01(\x0b\x32\x1b.nodereader.GraphQuery.NodeH\x02\x88\x01\x01\x12\x12\n\nundirected\x18\x04 \x01(\x08\x42\t\n\x07_sourceB\x0b\n\t_relationB\x0e\n\x0c_destination\x1a?\n\tBoolQuery\x12\x32\n\x08operands\x18\x01 \x03(\x0b\x32 .nodereader.GraphQuery.PathQuery\x1a\x1c\n\x0b\x46\x61\x63\x65tFilter\x12\r\n\x05\x66\x61\x63\x65t\x18\x01 \x01(\t\x1a\x97\x02\n\tPathQuery\x12+\n\x04path\x18\x01 \x01(\x0b\x32\x1b.nodereader.GraphQuery.PathH\x00\x12\x34\n\x08\x62ool_not\x18\x02 \x01(\x0b\x32 .nodereader.GraphQuery.PathQueryH\x00\x12\x34\n\x08\x62ool_and\x18\x03 \x01(\x0b\x32 .nodereader.GraphQuery.BoolQueryH\x00\x12\x33\n\x07\x62ool_or\x18\x04 \x01(\x0b\x32 .nodereader.GraphQuery.BoolQueryH\x00\x12\x33\n\x05\x66\x61\x63\x65t\x18\x05 \x01(\x0b\x32\".nodereader.GraphQuery.FacetFilterH\x00\x42\x07\n\x05query\"\xc1\x02\n\x12GraphSearchRequest\x12\r\n\x05shard\x18\x01 \x01(\t\x12%\n\x05query\x18\x02 \x01(\x0b\x32\x16.nodereader.GraphQuery\x12\x36\n\x04kind\x18\x03 \x01(\x0e\x32(.nodereader.GraphSearchRequest.QueryKind\x12\r\n\x05top_k\x18\x04 \x01(\r\x12&\n\x08security\x18\x05 \x01(\x0b\x32\x0f.utils.SecurityH\x00\x88\x01\x01\x12\x37\n\x0c\x66ield_filter\x18\x06 \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x01\x88\x01\x01\"/\n\tQueryKind\x12\x08\n\x04PATH\x10\x00\x12\t\n\x05NODES\x10\x01\x12\r\n\tRELATIONS\x10\x02\x42\x0b\n\t_securityB\x0f\n\r_field_filter\"\xbe\x03\n\x13GraphSearchResponse\x12\"\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.utils.RelationNode\x12;\n\trelations\x18\x02 \x03(\x0b\x32(.nodereader.GraphSearchResponse.Relation\x12\x33\n\x05graph\x18\x03 \x03(\x0b\x32$.nodereader.GraphSearchResponse.Path\x1aN\n\x08Relation\x12\x33\n\rrelation_type\x18\x01 \x01(\x0e\x32\x1c.utils.Relation.RelationType\x12\r\n\x05label\x18\x02 \x01(\t\x1a\xc0\x01\n\x04Path\x12\x0e\n\x06source\x18\x01 \x01(\r\x12\x10\n\x08relation\x18\x02 \x01(\r\x12\x13\n\x0b\x64\x65stination\x18\x03 \x01(\r\x12.\n\x08metadata\x18\x04 \x01(\x0b\x32\x17.utils.RelationMetadataH\x00\x88\x01\x01\x12\x1e\n\x11resource_field_id\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x0e\n\x06\x66\x61\x63\x65ts\x18\x06 \x03(\tB\x0b\n\t_metadataB\x14\n\x12_resource_field_id\"\xfa\x07\n\x10\x46ilterExpression\x12\x45\n\x08\x62ool_and\x18\x01 \x01(\x0b\x32\x31.nodereader.FilterExpression.FilterExpressionListH\x00\x12\x44\n\x07\x62ool_or\x18\x02 \x01(\x0b\x32\x31.nodereader.FilterExpression.FilterExpressionListH\x00\x12\x30\n\x08\x62ool_not\x18\x03 \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x00\x12?\n\x08resource\x18\x04 \x01(\x0b\x32+.nodereader.FilterExpression.ResourceFilterH\x00\x12\x39\n\x05\x66ield\x18\x05 \x01(\x0b\x32(.nodereader.FilterExpression.FieldFilterH\x00\x12=\n\x07keyword\x18\x06 \x01(\x0b\x32*.nodereader.FilterExpression.KeywordFilterH\x00\x12<\n\x04\x64\x61te\x18\x07 \x01(\x0b\x32,.nodereader.FilterExpression.DateRangeFilterH\x00\x12\x39\n\x05\x66\x61\x63\x65t\x18\x08 \x01(\x0b\x32(.nodereader.FilterExpression.FacetFilterH\x00\x1a\x46\n\x14\x46ilterExpressionList\x12.\n\x08operands\x18\x01 \x03(\x0b\x32\x1c.nodereader.FilterExpression\x1a%\n\x0eResourceFilter\x12\x13\n\x0bresource_id\x18\x01 \x01(\t\x1a\x45\n\x0b\x46ieldFilter\x12\x12\n\nfield_type\x18\x01 \x01(\t\x12\x15\n\x08\x66ield_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_field_id\x1a\xf4\x01\n\x0f\x44\x61teRangeFilter\x12\x45\n\x05\x66ield\x18\x01 \x01(\x0e\x32\x36.nodereader.FilterExpression.DateRangeFilter.DateField\x12.\n\x05since\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x88\x01\x01\x12.\n\x05until\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x88\x01\x01\"&\n\tDateField\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0c\n\x08MODIFIED\x10\x01\x42\x08\n\x06_sinceB\x08\n\x06_until\x1a \n\rKeywordFilter\x12\x0f\n\x07keyword\x18\x01 \x01(\t\x1a\x1c\n\x0b\x46\x61\x63\x65tFilter\x12\r\n\x05\x66\x61\x63\x65t\x18\x01 \x01(\tB\x06\n\x04\x65xpr\"\x84\x06\n\rSearchRequest\x12\r\n\x05shard\x18\x01 \x01(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\t\x12\"\n\x05order\x18\x05 \x01(\x0b\x32\x13.nodereader.OrderBy\x12$\n\x07\x66\x61\x63\x65ted\x18\x06 \x01(\x0b\x32\x13.nodereader.Faceted\x12\x13\n\x0bpage_number\x18\x07 \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x08 \x01(\x05\x12\x0e\n\x06vector\x18\n \x03(\x02\x12\x11\n\tvectorset\x18\x0f \x01(\t\x12\x11\n\tparagraph\x18\x0c \x01(\x08\x12\x10\n\x08\x64ocument\x18\r \x01(\x08\x12\x17\n\x0fwith_duplicates\x18\x0e \x01(\x08\x12\x14\n\x0conly_faceted\x18\x10 \x01(\x08\x12\x1b\n\x0e\x61\x64vanced_query\x18\x12 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\x12min_score_semantic\x18\x17 \x01(\x02\x12\x16\n\x0emin_score_bm25\x18\x19 \x01(\x02\x12&\n\x08security\x18\x18 \x01(\x0b\x32\x0f.utils.SecurityH\x01\x88\x01\x01\x12\x37\n\x0c\x66ield_filter\x18\x1a \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x02\x88\x01\x01\x12;\n\x10paragraph_filter\x18\x1b \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x03\x88\x01\x01\x12\x33\n\x0f\x66ilter_operator\x18\x1c \x01(\x0e\x32\x1a.nodereader.FilterOperator\x12;\n\x0cgraph_search\x18\x1d \x01(\x0b\x32%.nodereader.SearchRequest.GraphSearch\x1a\x34\n\x0bGraphSearch\x12%\n\x05query\x18\x01 \x01(\x0b\x32\x16.nodereader.GraphQueryB\x11\n\x0f_advanced_queryB\x0b\n\t_securityB\x0f\n\r_field_filterB\x13\n\x11_paragraph_filterJ\x04\x08\x14\x10\x15J\x04\x08\x15\x10\x16\"\xad\x02\n\x0eSuggestRequest\x12\r\n\x05shard\x18\x01 \x01(\t\x12\x0c\n\x04\x62ody\x18\x02 \x01(\t\x12-\n\x08\x66\x65\x61tures\x18\x06 \x03(\x0e\x32\x1b.nodereader.SuggestFeatures\x12\x37\n\x0c\x66ield_filter\x18\x07 \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x00\x88\x01\x01\x12;\n\x10paragraph_filter\x18\x08 \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x01\x88\x01\x01\x12\x33\n\x0f\x66ilter_operator\x18\t \x01(\x0e\x32\x1a.nodereader.FilterOperatorB\x0f\n\r_field_filterB\x13\n\x11_paragraph_filter\"\xb1\x01\n\x0fSuggestResponse\x12\r\n\x05total\x18\x01 \x01(\x05\x12,\n\x07results\x18\x02 \x03(\x0b\x32\x1b.nodereader.ParagraphResult\x12\r\n\x05query\x18\x03 \x01(\t\x12\x10\n\x08\x65matches\x18\x04 \x03(\t\x12@\n\x0e\x65ntity_results\x18\x06 \x01(\x0b\x32(.nodereader.RelationPrefixSearchResponse\"\xe6\x01\n\x0eSearchResponse\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".nodereader.DocumentSearchResponse\x12\x36\n\tparagraph\x18\x02 \x01(\x0b\x32#.nodereader.ParagraphSearchResponse\x12\x30\n\x06vector\x18\x03 \x01(\x0b\x32 .nodereader.VectorSearchResponse\x12.\n\x05graph\x18\x05 \x01(\x0b\x32\x1f.nodereader.GraphSearchResponseJ\x04\x08\x04\x10\x05\"N\n\x0fGetShardRequest\x12(\n\x08shard_id\x18\x01 \x01(\x0b\x32\x16.noderesources.ShardId\x12\x11\n\tvectorset\x18\x02 \x01(\t\"+\n\rParagraphItem\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06labels\x18\x02 \x03(\t\";\n\x0c\x44ocumentItem\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12\r\n\x05\x66ield\x18\x02 \x01(\t\x12\x0e\n\x06labels\x18\x03 \x03(\t\"c\n\rStreamRequest\x12(\n\x08shard_id\x18\x03 \x01(\x0b\x32\x16.noderesources.ShardId\x12(\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x18.nodereader.StreamFilter*!\n\x0e\x46ilterOperator\x12\x07\n\x03\x41ND\x10\x00\x12\x06\n\x02OR\x10\x01*/\n\x0fSuggestFeatures\x12\x0c\n\x08\x45NTITIES\x10\x00\x12\x0e\n\nPARAGRAPHS\x10\x01P\x00P\x02\x62\x06proto3')
|
37
37
|
|
38
38
|
_globals = globals()
|
39
39
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -48,10 +48,10 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
48
48
|
_globals['_PARAGRAPHSEARCHRESPONSE_FACETSENTRY']._serialized_options = b'8\001'
|
49
49
|
_globals['_GRAPHQUERY_NODE'].fields_by_name['match_kind']._loaded_options = None
|
50
50
|
_globals['_GRAPHQUERY_NODE'].fields_by_name['match_kind']._serialized_options = b'\030\001'
|
51
|
-
_globals['_FILTEROPERATOR']._serialized_start=
|
52
|
-
_globals['_FILTEROPERATOR']._serialized_end=
|
53
|
-
_globals['_SUGGESTFEATURES']._serialized_start=
|
54
|
-
_globals['_SUGGESTFEATURES']._serialized_end=
|
51
|
+
_globals['_FILTEROPERATOR']._serialized_start=7056
|
52
|
+
_globals['_FILTEROPERATOR']._serialized_end=7089
|
53
|
+
_globals['_SUGGESTFEATURES']._serialized_start=7091
|
54
|
+
_globals['_SUGGESTFEATURES']._serialized_end=7138
|
55
55
|
_globals['_STREAMFILTER']._serialized_start=140
|
56
56
|
_globals['_STREAMFILTER']._serialized_end=270
|
57
57
|
_globals['_STREAMFILTER_CONJUNCTION']._serialized_start=231
|
@@ -144,36 +144,16 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
144
144
|
_globals['_SEARCHREQUEST_GRAPHSEARCH']._serialized_end=5968
|
145
145
|
_globals['_SUGGESTREQUEST']._serialized_start=6053
|
146
146
|
_globals['_SUGGESTREQUEST']._serialized_end=6354
|
147
|
-
_globals['
|
148
|
-
_globals['
|
149
|
-
_globals['
|
150
|
-
_globals['
|
151
|
-
_globals['
|
152
|
-
_globals['
|
153
|
-
_globals['
|
154
|
-
_globals['
|
155
|
-
_globals['
|
156
|
-
_globals['
|
157
|
-
_globals['
|
158
|
-
_globals['
|
159
|
-
_globals['_GETSHARDREQUEST']._serialized_start=6985
|
160
|
-
_globals['_GETSHARDREQUEST']._serialized_end=7063
|
161
|
-
_globals['_PARAGRAPHITEM']._serialized_start=7065
|
162
|
-
_globals['_PARAGRAPHITEM']._serialized_end=7108
|
163
|
-
_globals['_DOCUMENTITEM']._serialized_start=7110
|
164
|
-
_globals['_DOCUMENTITEM']._serialized_end=7169
|
165
|
-
_globals['_STREAMREQUEST']._serialized_start=7171
|
166
|
-
_globals['_STREAMREQUEST']._serialized_end=7270
|
167
|
-
_globals['_GETSHARDFILESREQUEST']._serialized_start=7272
|
168
|
-
_globals['_GETSHARDFILESREQUEST']._serialized_end=7312
|
169
|
-
_globals['_SHARDFILELIST']._serialized_start=7314
|
170
|
-
_globals['_SHARDFILELIST']._serialized_end=7367
|
171
|
-
_globals['_SHARDFILE']._serialized_start=7369
|
172
|
-
_globals['_SHARDFILE']._serialized_end=7417
|
173
|
-
_globals['_DOWNLOADSHARDFILEREQUEST']._serialized_start=7419
|
174
|
-
_globals['_DOWNLOADSHARDFILEREQUEST']._serialized_end=7486
|
175
|
-
_globals['_SHARDFILECHUNK']._serialized_start=7488
|
176
|
-
_globals['_SHARDFILECHUNK']._serialized_end=7533
|
177
|
-
_globals['_NODEREADER']._serialized_start=7620
|
178
|
-
_globals['_NODEREADER']._serialized_end=8483
|
147
|
+
_globals['_SUGGESTRESPONSE']._serialized_start=6357
|
148
|
+
_globals['_SUGGESTRESPONSE']._serialized_end=6534
|
149
|
+
_globals['_SEARCHRESPONSE']._serialized_start=6537
|
150
|
+
_globals['_SEARCHRESPONSE']._serialized_end=6767
|
151
|
+
_globals['_GETSHARDREQUEST']._serialized_start=6769
|
152
|
+
_globals['_GETSHARDREQUEST']._serialized_end=6847
|
153
|
+
_globals['_PARAGRAPHITEM']._serialized_start=6849
|
154
|
+
_globals['_PARAGRAPHITEM']._serialized_end=6892
|
155
|
+
_globals['_DOCUMENTITEM']._serialized_start=6894
|
156
|
+
_globals['_DOCUMENTITEM']._serialized_end=6953
|
157
|
+
_globals['_STREAMREQUEST']._serialized_start=6955
|
158
|
+
_globals['_STREAMREQUEST']._serialized_end=7054
|
179
159
|
# @@protoc_insertion_point(module_scope)
|
nidx_protos/nodereader_pb2.pyi
CHANGED
@@ -21,13 +21,11 @@ else:
|
|
21
21
|
import typing_extensions
|
22
22
|
from nidx_protos.noderesources_pb2 import (
|
23
23
|
EmptyQuery as EmptyQuery,
|
24
|
-
EmptyResponse as EmptyResponse,
|
25
24
|
IndexMetadata as IndexMetadata,
|
26
25
|
IndexParagraph as IndexParagraph,
|
27
26
|
IndexParagraphs as IndexParagraphs,
|
28
27
|
IndexRelation as IndexRelation,
|
29
28
|
IndexRelations as IndexRelations,
|
30
|
-
NodeMetadata as NodeMetadata,
|
31
29
|
ParagraphMetadata as ParagraphMetadata,
|
32
30
|
Position as Position,
|
33
31
|
Representation as Representation,
|
@@ -1223,25 +1221,6 @@ class SuggestRequest(google.protobuf.message.Message):
|
|
1223
1221
|
|
1224
1222
|
global___SuggestRequest = SuggestRequest
|
1225
1223
|
|
1226
|
-
@typing.final
|
1227
|
-
class RelatedEntities(google.protobuf.message.Message):
|
1228
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
1229
|
-
|
1230
|
-
ENTITIES_FIELD_NUMBER: builtins.int
|
1231
|
-
TOTAL_FIELD_NUMBER: builtins.int
|
1232
|
-
total: builtins.int
|
1233
|
-
@property
|
1234
|
-
def entities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
1235
|
-
def __init__(
|
1236
|
-
self,
|
1237
|
-
*,
|
1238
|
-
entities: collections.abc.Iterable[builtins.str] | None = ...,
|
1239
|
-
total: builtins.int = ...,
|
1240
|
-
) -> None: ...
|
1241
|
-
def ClearField(self, field_name: typing.Literal["entities", b"entities", "total", b"total"]) -> None: ...
|
1242
|
-
|
1243
|
-
global___RelatedEntities = RelatedEntities
|
1244
|
-
|
1245
1224
|
@typing.final
|
1246
1225
|
class SuggestResponse(google.protobuf.message.Message):
|
1247
1226
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
@@ -1305,56 +1284,6 @@ class SearchResponse(google.protobuf.message.Message):
|
|
1305
1284
|
|
1306
1285
|
global___SearchResponse = SearchResponse
|
1307
1286
|
|
1308
|
-
@typing.final
|
1309
|
-
class IdCollection(google.protobuf.message.Message):
|
1310
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
1311
|
-
|
1312
|
-
IDS_FIELD_NUMBER: builtins.int
|
1313
|
-
@property
|
1314
|
-
def ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
1315
|
-
def __init__(
|
1316
|
-
self,
|
1317
|
-
*,
|
1318
|
-
ids: collections.abc.Iterable[builtins.str] | None = ...,
|
1319
|
-
) -> None: ...
|
1320
|
-
def ClearField(self, field_name: typing.Literal["ids", b"ids"]) -> None: ...
|
1321
|
-
|
1322
|
-
global___IdCollection = IdCollection
|
1323
|
-
|
1324
|
-
@typing.final
|
1325
|
-
class RelationEdge(google.protobuf.message.Message):
|
1326
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
1327
|
-
|
1328
|
-
EDGE_TYPE_FIELD_NUMBER: builtins.int
|
1329
|
-
PROPERTY_FIELD_NUMBER: builtins.int
|
1330
|
-
edge_type: nucliadb_protos.utils_pb2.Relation.RelationType.ValueType
|
1331
|
-
property: builtins.str
|
1332
|
-
def __init__(
|
1333
|
-
self,
|
1334
|
-
*,
|
1335
|
-
edge_type: nucliadb_protos.utils_pb2.Relation.RelationType.ValueType = ...,
|
1336
|
-
property: builtins.str = ...,
|
1337
|
-
) -> None: ...
|
1338
|
-
def ClearField(self, field_name: typing.Literal["edge_type", b"edge_type", "property", b"property"]) -> None: ...
|
1339
|
-
|
1340
|
-
global___RelationEdge = RelationEdge
|
1341
|
-
|
1342
|
-
@typing.final
|
1343
|
-
class EdgeList(google.protobuf.message.Message):
|
1344
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
1345
|
-
|
1346
|
-
LIST_FIELD_NUMBER: builtins.int
|
1347
|
-
@property
|
1348
|
-
def list(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RelationEdge]: ...
|
1349
|
-
def __init__(
|
1350
|
-
self,
|
1351
|
-
*,
|
1352
|
-
list: collections.abc.Iterable[global___RelationEdge] | None = ...,
|
1353
|
-
) -> None: ...
|
1354
|
-
def ClearField(self, field_name: typing.Literal["list", b"list"]) -> None: ...
|
1355
|
-
|
1356
|
-
global___EdgeList = EdgeList
|
1357
|
-
|
1358
1287
|
@typing.final
|
1359
1288
|
class GetShardRequest(google.protobuf.message.Message):
|
1360
1289
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
@@ -1436,88 +1365,3 @@ class StreamRequest(google.protobuf.message.Message):
|
|
1436
1365
|
def ClearField(self, field_name: typing.Literal["filter", b"filter", "shard_id", b"shard_id"]) -> None: ...
|
1437
1366
|
|
1438
1367
|
global___StreamRequest = StreamRequest
|
1439
|
-
|
1440
|
-
@typing.final
|
1441
|
-
class GetShardFilesRequest(google.protobuf.message.Message):
|
1442
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
1443
|
-
|
1444
|
-
SHARD_ID_FIELD_NUMBER: builtins.int
|
1445
|
-
shard_id: builtins.str
|
1446
|
-
def __init__(
|
1447
|
-
self,
|
1448
|
-
*,
|
1449
|
-
shard_id: builtins.str = ...,
|
1450
|
-
) -> None: ...
|
1451
|
-
def ClearField(self, field_name: typing.Literal["shard_id", b"shard_id"]) -> None: ...
|
1452
|
-
|
1453
|
-
global___GetShardFilesRequest = GetShardFilesRequest
|
1454
|
-
|
1455
|
-
@typing.final
|
1456
|
-
class ShardFileList(google.protobuf.message.Message):
|
1457
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
1458
|
-
|
1459
|
-
FILES_FIELD_NUMBER: builtins.int
|
1460
|
-
@property
|
1461
|
-
def files(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ShardFile]: ...
|
1462
|
-
def __init__(
|
1463
|
-
self,
|
1464
|
-
*,
|
1465
|
-
files: collections.abc.Iterable[global___ShardFile] | None = ...,
|
1466
|
-
) -> None: ...
|
1467
|
-
def ClearField(self, field_name: typing.Literal["files", b"files"]) -> None: ...
|
1468
|
-
|
1469
|
-
global___ShardFileList = ShardFileList
|
1470
|
-
|
1471
|
-
@typing.final
|
1472
|
-
class ShardFile(google.protobuf.message.Message):
|
1473
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
1474
|
-
|
1475
|
-
RELATIVE_PATH_FIELD_NUMBER: builtins.int
|
1476
|
-
SIZE_FIELD_NUMBER: builtins.int
|
1477
|
-
relative_path: builtins.str
|
1478
|
-
size: builtins.int
|
1479
|
-
def __init__(
|
1480
|
-
self,
|
1481
|
-
*,
|
1482
|
-
relative_path: builtins.str = ...,
|
1483
|
-
size: builtins.int = ...,
|
1484
|
-
) -> None: ...
|
1485
|
-
def ClearField(self, field_name: typing.Literal["relative_path", b"relative_path", "size", b"size"]) -> None: ...
|
1486
|
-
|
1487
|
-
global___ShardFile = ShardFile
|
1488
|
-
|
1489
|
-
@typing.final
|
1490
|
-
class DownloadShardFileRequest(google.protobuf.message.Message):
|
1491
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
1492
|
-
|
1493
|
-
SHARD_ID_FIELD_NUMBER: builtins.int
|
1494
|
-
RELATIVE_PATH_FIELD_NUMBER: builtins.int
|
1495
|
-
shard_id: builtins.str
|
1496
|
-
relative_path: builtins.str
|
1497
|
-
def __init__(
|
1498
|
-
self,
|
1499
|
-
*,
|
1500
|
-
shard_id: builtins.str = ...,
|
1501
|
-
relative_path: builtins.str = ...,
|
1502
|
-
) -> None: ...
|
1503
|
-
def ClearField(self, field_name: typing.Literal["relative_path", b"relative_path", "shard_id", b"shard_id"]) -> None: ...
|
1504
|
-
|
1505
|
-
global___DownloadShardFileRequest = DownloadShardFileRequest
|
1506
|
-
|
1507
|
-
@typing.final
|
1508
|
-
class ShardFileChunk(google.protobuf.message.Message):
|
1509
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
1510
|
-
|
1511
|
-
DATA_FIELD_NUMBER: builtins.int
|
1512
|
-
INDEX_FIELD_NUMBER: builtins.int
|
1513
|
-
data: builtins.bytes
|
1514
|
-
index: builtins.int
|
1515
|
-
def __init__(
|
1516
|
-
self,
|
1517
|
-
*,
|
1518
|
-
data: builtins.bytes = ...,
|
1519
|
-
index: builtins.int = ...,
|
1520
|
-
) -> None: ...
|
1521
|
-
def ClearField(self, field_name: typing.Literal["data", b"data", "index", b"index"]) -> None: ...
|
1522
|
-
|
1523
|
-
global___ShardFileChunk = ShardFileChunk
|
nidx_protos/noderesources_pb2.py
CHANGED
@@ -27,7 +27,7 @@ from nucliadb_protos import utils_pb2 as nucliadb__protos_dot_utils__pb2
|
|
27
27
|
|
28
28
|
from nucliadb_protos.utils_pb2 import *
|
29
29
|
|
30
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fnidx_protos/noderesources.proto\x12\rnoderesources\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bnucliadb_protos/utils.proto\"/\n\x0fTextInformation\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x0e\n\x06labels\x18\x02 \x03(\t\"j\n\rIndexMetadata\x12,\n\x08modified\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07\x63reated\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x15\n\x07ShardId\x12\n\n\x02id\x18\x01 \x01(\t\"/\n\x08ShardIds\x12#\n\x03ids\x18\x01 \x03(\x0b\x32\x16.noderesources.ShardId\"\xdc\x04\n\x0cShardCreated\x12\n\n\x02id\x18\x01 \x01(\t\x12\x45\n\x10\x64ocument_service\x18\x02 \x01(\x0e\x32+.noderesources.ShardCreated.DocumentService\x12G\n\x11paragraph_service\x18\x03 \x01(\x0e\x32,.noderesources.ShardCreated.ParagraphService\x12\x41\n\x0evector_service\x18\x04 \x01(\x0e\x32).noderesources.ShardCreated.VectorService\x12\x45\n\x10relation_service\x18\x05 \x01(\x0e\x32+.noderesources.ShardCreated.RelationService\"U\n\x0f\x44ocumentService\x12\x0f\n\x0b\x44OCUMENT_V0\x10\x00\x12\x0f\n\x0b\x44OCUMENT_V1\x10\x01\x12\x0f\n\x0b\x44OCUMENT_V2\x10\x02\x12\x0f\n\x0b\x44OCUMENT_V3\x10\x03\"Z\n\x10ParagraphService\x12\x10\n\x0cPARAGRAPH_V0\x10\x00\x12\x10\n\x0cPARAGRAPH_V1\x10\x01\x12\x10\n\x0cPARAGRAPH_V2\x10\x02\x12\x10\n\x0cPARAGRAPH_V3\x10\x03\"-\n\rVectorService\x12\r\n\tVECTOR_V0\x10\x00\x12\r\n\tVECTOR_V1\x10\x01\"D\n\x0fRelationService\x12\x0f\n\x0bRELATION_V0\x10\x00\x12\x0f\n\x0bRELATION_V1\x10\x01\x12\x0f\n\x0bRELATION_V2\x10\x02\",\n\nResourceID\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x0c\n\x04uuid\x18\x02 \x01(\t\"\x94\x01\n\x05Shard\x12.\n\x08metadata\x18\x05 \x01(\x0b\x32\x1c.noderesources.ShardMetadata\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x0e\n\x06\x66ields\x18\x02 \x01(\x04\x12\x12\n\nparagraphs\x18\x03 \x01(\x04\x12\x11\n\tsentences\x18\x04 \x01(\x04\x12\x12\n\nsize_bytes\x18\x06 \x01(\x04\"\
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fnidx_protos/noderesources.proto\x12\rnoderesources\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bnucliadb_protos/utils.proto\"/\n\x0fTextInformation\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x0e\n\x06labels\x18\x02 \x03(\t\"j\n\rIndexMetadata\x12,\n\x08modified\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07\x63reated\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x15\n\x07ShardId\x12\n\n\x02id\x18\x01 \x01(\t\"/\n\x08ShardIds\x12#\n\x03ids\x18\x01 \x03(\x0b\x32\x16.noderesources.ShardId\"\xdc\x04\n\x0cShardCreated\x12\n\n\x02id\x18\x01 \x01(\t\x12\x45\n\x10\x64ocument_service\x18\x02 \x01(\x0e\x32+.noderesources.ShardCreated.DocumentService\x12G\n\x11paragraph_service\x18\x03 \x01(\x0e\x32,.noderesources.ShardCreated.ParagraphService\x12\x41\n\x0evector_service\x18\x04 \x01(\x0e\x32).noderesources.ShardCreated.VectorService\x12\x45\n\x10relation_service\x18\x05 \x01(\x0e\x32+.noderesources.ShardCreated.RelationService\"U\n\x0f\x44ocumentService\x12\x0f\n\x0b\x44OCUMENT_V0\x10\x00\x12\x0f\n\x0b\x44OCUMENT_V1\x10\x01\x12\x0f\n\x0b\x44OCUMENT_V2\x10\x02\x12\x0f\n\x0b\x44OCUMENT_V3\x10\x03\"Z\n\x10ParagraphService\x12\x10\n\x0cPARAGRAPH_V0\x10\x00\x12\x10\n\x0cPARAGRAPH_V1\x10\x01\x12\x10\n\x0cPARAGRAPH_V2\x10\x02\x12\x10\n\x0cPARAGRAPH_V3\x10\x03\"-\n\rVectorService\x12\r\n\tVECTOR_V0\x10\x00\x12\r\n\tVECTOR_V1\x10\x01\"D\n\x0fRelationService\x12\x0f\n\x0bRELATION_V0\x10\x00\x12\x0f\n\x0bRELATION_V1\x10\x01\x12\x0f\n\x0bRELATION_V2\x10\x02\",\n\nResourceID\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x0c\n\x04uuid\x18\x02 \x01(\t\"\x94\x01\n\x05Shard\x12.\n\x08metadata\x18\x05 \x01(\x0b\x32\x1c.noderesources.ShardMetadata\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x0e\n\x06\x66ields\x18\x02 \x01(\x04\x12\x12\n\nparagraphs\x18\x03 \x01(\x04\x12\x11\n\tsentences\x18\x04 \x01(\x04\x12\x12\n\nsize_bytes\x18\x06 \x01(\x04\"\x0c\n\nEmptyQuery\"\x87\x01\n\x08Position\x12\r\n\x05index\x18\x01 \x01(\x04\x12\r\n\x05start\x18\x02 \x01(\x04\x12\x0b\n\x03\x65nd\x18\x03 \x01(\x04\x12\x13\n\x0bpage_number\x18\x04 \x01(\x04\x12\x0f\n\x07in_page\x18\x07 \x01(\x08\x12\x15\n\rstart_seconds\x18\x05 \x03(\r\x12\x13\n\x0b\x65nd_seconds\x18\x06 \x03(\r\"2\n\x0eRepresentation\x12\x12\n\nis_a_table\x18\x01 \x01(\x08\x12\x0c\n\x04\x66ile\x18\x02 \x01(\t\"\x8e\x01\n\x10SentenceMetadata\x12)\n\x08position\x18\x01 \x01(\x0b\x32\x17.noderesources.Position\x12\x18\n\x10page_with_visual\x18\x02 \x01(\x08\x12\x35\n\x0erepresentation\x18\x03 \x01(\x0b\x32\x1d.noderesources.Representation\"S\n\x0eVectorSentence\x12\x0e\n\x06vector\x18\x01 \x03(\x02\x12\x31\n\x08metadata\x18\t \x01(\x0b\x32\x1f.noderesources.SentenceMetadata\"\xaa\x01\n\x12VectorsetSentences\x12\x43\n\tsentences\x18\x01 \x03(\x0b\x32\x30.noderesources.VectorsetSentences.SentencesEntry\x1aO\n\x0eSentencesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.noderesources.VectorSentence:\x02\x38\x01\"\x8f\x01\n\x11ParagraphMetadata\x12)\n\x08position\x18\x01 \x01(\x0b\x32\x17.noderesources.Position\x12\x18\n\x10page_with_visual\x18\x02 \x01(\x08\x12\x35\n\x0erepresentation\x18\x03 \x01(\x0b\x32\x1d.noderesources.Representation\"\xff\x03\n\x0eIndexParagraph\x12\r\n\x05start\x18\x01 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x05\x12\x0e\n\x06labels\x18\x03 \x03(\t\x12?\n\tsentences\x18\x04 \x03(\x0b\x32,.noderesources.IndexParagraph.SentencesEntry\x12T\n\x14vectorsets_sentences\x18\n \x03(\x0b\x32\x36.noderesources.IndexParagraph.VectorsetsSentencesEntry\x12\r\n\x05\x66ield\x18\x05 \x01(\t\x12\r\n\x05split\x18\x06 \x01(\t\x12\r\n\x05index\x18\x07 \x01(\x04\x12\x19\n\x11repeated_in_field\x18\x08 \x01(\x08\x12\x32\n\x08metadata\x18\t \x01(\x0b\x32 .noderesources.ParagraphMetadata\x1aO\n\x0eSentencesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.noderesources.VectorSentence:\x02\x38\x01\x1a]\n\x18VectorsetsSentencesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32!.noderesources.VectorsetSentences:\x02\x38\x01\"G\n\x0bVectorSetID\x12%\n\x05shard\x18\x01 \x01(\x0b\x32\x16.noderesources.ShardId\x12\x11\n\tvectorset\x18\x02 \x01(\t\"J\n\rVectorSetList\x12%\n\x05shard\x18\x01 \x01(\x0b\x32\x16.noderesources.ShardId\x12\x12\n\nvectorsets\x18\x02 \x03(\t\"\xa7\x01\n\x0fIndexParagraphs\x12\x42\n\nparagraphs\x18\x01 \x03(\x0b\x32..noderesources.IndexParagraphs.ParagraphsEntry\x1aP\n\x0fParagraphsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.noderesources.IndexParagraph:\x02\x38\x01\"\x83\x0b\n\x08Resource\x12+\n\x08resource\x18\x01 \x01(\x0b\x32\x19.noderesources.ResourceID\x12.\n\x08metadata\x18\x02 \x01(\x0b\x32\x1c.noderesources.IndexMetadata\x12\x31\n\x05texts\x18\x03 \x03(\x0b\x32\".noderesources.Resource.TextsEntry\x12\x0e\n\x06labels\x18\x04 \x03(\t\x12\x36\n\x06status\x18\x05 \x01(\x0e\x32&.noderesources.Resource.ResourceStatus\x12;\n\nparagraphs\x18\x06 \x03(\x0b\x32\'.noderesources.Resource.ParagraphsEntry\x12\x1c\n\x14paragraphs_to_delete\x18\x07 \x03(\t\x12\x1f\n\x13sentences_to_delete\x18\x08 \x03(\tB\x02\x18\x01\x12V\n\x19vector_prefixes_to_delete\x18\x0f \x03(\x0b\x32\x33.noderesources.Resource.VectorPrefixesToDeleteEntry\x12!\n\x19relation_fields_to_delete\x18\x10 \x03(\t\x12\x17\n\x0ftexts_to_delete\x18\x11 \x03(\t\x12\x44\n\x0f\x66ield_relations\x18\n \x03(\x0b\x32+.noderesources.Resource.FieldRelationsEntry\x12\x10\n\x08shard_id\x18\x0b \x01(\t\x12\x39\n\x07vectors\x18\x0c \x03(\x0b\x32$.noderesources.Resource.VectorsEntryB\x02\x18\x01\x12K\n\x11vectors_to_delete\x18\r \x03(\x0b\x32,.noderesources.Resource.VectorsToDeleteEntryB\x02\x18\x01\x12&\n\x08security\x18\x0e \x01(\x0b\x32\x0f.utils.SecurityH\x00\x88\x01\x01\x12\x12\n\nskip_texts\x18\x12 \x01(\x08\x12\x17\n\x0fskip_paragraphs\x18\x13 \x01(\x08\x1aL\n\nTextsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12-\n\x05value\x18\x02 \x01(\x0b\x32\x1e.noderesources.TextInformation:\x02\x38\x01\x1aQ\n\x0fParagraphsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12-\n\x05value\x18\x02 \x01(\x0b\x32\x1e.noderesources.IndexParagraphs:\x02\x38\x01\x1aX\n\x1bVectorPrefixesToDeleteEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12(\n\x05value\x18\x02 \x01(\x0b\x32\x19.noderesources.StringList:\x02\x38\x01\x1aT\n\x13\x46ieldRelationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.noderesources.IndexRelations:\x02\x38\x01\x1a\x42\n\x0cVectorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.utils.UserVectors:\x02\x38\x01\x1aN\n\x14VectorsToDeleteEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.utils.UserVectorsList:\x02\x38\x01\"h\n\x0eResourceStatus\x12\r\n\tPROCESSED\x10\x00\x12\t\n\x05\x45MPTY\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x12\n\n\x06\x44\x45LETE\x10\x03\x12\x0b\n\x07PENDING\x10\x04\x12\x0b\n\x07\x42LOCKED\x10\x05\x12\x0b\n\x07\x45XPIRED\x10\x06\x42\x0b\n\t_security\"M\n\rShardMetadata\x12\x0c\n\x04kbid\x18\x01 \x01(\t\x12.\n\x0frelease_channel\x18\x02 \x01(\x0e\x32\x15.utils.ReleaseChannel\"\x1b\n\nStringList\x12\r\n\x05items\x18\x01 \x03(\t\"x\n\rIndexRelation\x12!\n\x08relation\x18\x01 \x01(\x0b\x32\x0f.utils.Relation\x12\x1e\n\x11resource_field_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x0e\n\x06\x66\x61\x63\x65ts\x18\x03 \x03(\tB\x14\n\x12_resource_field_id\"A\n\x0eIndexRelations\x12/\n\trelations\x18\x01 \x03(\x0b\x32\x1c.noderesources.IndexRelationP\x01\x62\x06proto3')
|
31
31
|
|
32
32
|
_globals = globals()
|
33
33
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -60,14 +60,6 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
60
60
|
_globals['_RESOURCE'].fields_by_name['vectors']._serialized_options = b'\030\001'
|
61
61
|
_globals['_RESOURCE'].fields_by_name['vectors_to_delete']._loaded_options = None
|
62
62
|
_globals['_RESOURCE'].fields_by_name['vectors_to_delete']._serialized_options = b'\030\001'
|
63
|
-
_globals['_NODEMETADATA_SHARDMETADATA'].fields_by_name['load_score']._loaded_options = None
|
64
|
-
_globals['_NODEMETADATA_SHARDMETADATA'].fields_by_name['load_score']._serialized_options = b'\030\001'
|
65
|
-
_globals['_NODEMETADATA_SHARDSENTRY']._loaded_options = None
|
66
|
-
_globals['_NODEMETADATA_SHARDSENTRY']._serialized_options = b'8\001'
|
67
|
-
_globals['_NODEMETADATA'].fields_by_name['load_score']._loaded_options = None
|
68
|
-
_globals['_NODEMETADATA'].fields_by_name['load_score']._serialized_options = b'\030\001'
|
69
|
-
_globals['_NODEMETADATA'].fields_by_name['shards']._loaded_options = None
|
70
|
-
_globals['_NODEMETADATA'].fields_by_name['shards']._serialized_options = b'\030\001'
|
71
63
|
_globals['_TEXTINFORMATION']._serialized_start=112
|
72
64
|
_globals['_TEXTINFORMATION']._serialized_end=159
|
73
65
|
_globals['_INDEXMETADATA']._serialized_start=161
|
@@ -90,66 +82,58 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
90
82
|
_globals['_RESOURCEID']._serialized_end=992
|
91
83
|
_globals['_SHARD']._serialized_start=995
|
92
84
|
_globals['_SHARD']._serialized_end=1143
|
93
|
-
_globals['
|
94
|
-
_globals['
|
95
|
-
_globals['
|
96
|
-
_globals['
|
97
|
-
_globals['
|
98
|
-
_globals['
|
99
|
-
_globals['
|
100
|
-
_globals['
|
101
|
-
_globals['
|
102
|
-
_globals['
|
103
|
-
_globals['
|
104
|
-
_globals['
|
105
|
-
_globals['
|
106
|
-
_globals['
|
107
|
-
_globals['
|
108
|
-
_globals['
|
109
|
-
_globals['
|
110
|
-
_globals['
|
111
|
-
_globals['
|
112
|
-
_globals['
|
113
|
-
_globals['
|
114
|
-
_globals['
|
115
|
-
_globals['
|
116
|
-
_globals['
|
117
|
-
_globals['
|
118
|
-
_globals['
|
119
|
-
_globals['
|
120
|
-
_globals['
|
121
|
-
_globals['
|
122
|
-
_globals['
|
123
|
-
_globals['
|
124
|
-
_globals['
|
125
|
-
_globals['
|
126
|
-
_globals['
|
127
|
-
_globals['
|
128
|
-
_globals['
|
129
|
-
_globals['
|
130
|
-
_globals['
|
131
|
-
_globals['
|
132
|
-
_globals['
|
133
|
-
_globals['
|
134
|
-
_globals['
|
135
|
-
_globals['
|
136
|
-
_globals['
|
137
|
-
_globals['
|
138
|
-
_globals['
|
139
|
-
_globals['
|
140
|
-
_globals['
|
141
|
-
_globals['
|
142
|
-
_globals['
|
143
|
-
_globals['
|
144
|
-
_globals['
|
145
|
-
_globals['
|
146
|
-
_globals['
|
147
|
-
_globals['_NODEMETADATA_SHARDSENTRY']._serialized_start=4510
|
148
|
-
_globals['_NODEMETADATA_SHARDSENTRY']._serialized_end=4598
|
149
|
-
_globals['_STRINGLIST']._serialized_start=4620
|
150
|
-
_globals['_STRINGLIST']._serialized_end=4647
|
151
|
-
_globals['_INDEXRELATION']._serialized_start=4649
|
152
|
-
_globals['_INDEXRELATION']._serialized_end=4769
|
153
|
-
_globals['_INDEXRELATIONS']._serialized_start=4771
|
154
|
-
_globals['_INDEXRELATIONS']._serialized_end=4836
|
85
|
+
_globals['_EMPTYQUERY']._serialized_start=1145
|
86
|
+
_globals['_EMPTYQUERY']._serialized_end=1157
|
87
|
+
_globals['_POSITION']._serialized_start=1160
|
88
|
+
_globals['_POSITION']._serialized_end=1295
|
89
|
+
_globals['_REPRESENTATION']._serialized_start=1297
|
90
|
+
_globals['_REPRESENTATION']._serialized_end=1347
|
91
|
+
_globals['_SENTENCEMETADATA']._serialized_start=1350
|
92
|
+
_globals['_SENTENCEMETADATA']._serialized_end=1492
|
93
|
+
_globals['_VECTORSENTENCE']._serialized_start=1494
|
94
|
+
_globals['_VECTORSENTENCE']._serialized_end=1577
|
95
|
+
_globals['_VECTORSETSENTENCES']._serialized_start=1580
|
96
|
+
_globals['_VECTORSETSENTENCES']._serialized_end=1750
|
97
|
+
_globals['_VECTORSETSENTENCES_SENTENCESENTRY']._serialized_start=1671
|
98
|
+
_globals['_VECTORSETSENTENCES_SENTENCESENTRY']._serialized_end=1750
|
99
|
+
_globals['_PARAGRAPHMETADATA']._serialized_start=1753
|
100
|
+
_globals['_PARAGRAPHMETADATA']._serialized_end=1896
|
101
|
+
_globals['_INDEXPARAGRAPH']._serialized_start=1899
|
102
|
+
_globals['_INDEXPARAGRAPH']._serialized_end=2410
|
103
|
+
_globals['_INDEXPARAGRAPH_SENTENCESENTRY']._serialized_start=1671
|
104
|
+
_globals['_INDEXPARAGRAPH_SENTENCESENTRY']._serialized_end=1750
|
105
|
+
_globals['_INDEXPARAGRAPH_VECTORSETSSENTENCESENTRY']._serialized_start=2317
|
106
|
+
_globals['_INDEXPARAGRAPH_VECTORSETSSENTENCESENTRY']._serialized_end=2410
|
107
|
+
_globals['_VECTORSETID']._serialized_start=2412
|
108
|
+
_globals['_VECTORSETID']._serialized_end=2483
|
109
|
+
_globals['_VECTORSETLIST']._serialized_start=2485
|
110
|
+
_globals['_VECTORSETLIST']._serialized_end=2559
|
111
|
+
_globals['_INDEXPARAGRAPHS']._serialized_start=2562
|
112
|
+
_globals['_INDEXPARAGRAPHS']._serialized_end=2729
|
113
|
+
_globals['_INDEXPARAGRAPHS_PARAGRAPHSENTRY']._serialized_start=2649
|
114
|
+
_globals['_INDEXPARAGRAPHS_PARAGRAPHSENTRY']._serialized_end=2729
|
115
|
+
_globals['_RESOURCE']._serialized_start=2732
|
116
|
+
_globals['_RESOURCE']._serialized_end=4143
|
117
|
+
_globals['_RESOURCE_TEXTSENTRY']._serialized_start=3541
|
118
|
+
_globals['_RESOURCE_TEXTSENTRY']._serialized_end=3617
|
119
|
+
_globals['_RESOURCE_PARAGRAPHSENTRY']._serialized_start=3619
|
120
|
+
_globals['_RESOURCE_PARAGRAPHSENTRY']._serialized_end=3700
|
121
|
+
_globals['_RESOURCE_VECTORPREFIXESTODELETEENTRY']._serialized_start=3702
|
122
|
+
_globals['_RESOURCE_VECTORPREFIXESTODELETEENTRY']._serialized_end=3790
|
123
|
+
_globals['_RESOURCE_FIELDRELATIONSENTRY']._serialized_start=3792
|
124
|
+
_globals['_RESOURCE_FIELDRELATIONSENTRY']._serialized_end=3876
|
125
|
+
_globals['_RESOURCE_VECTORSENTRY']._serialized_start=3878
|
126
|
+
_globals['_RESOURCE_VECTORSENTRY']._serialized_end=3944
|
127
|
+
_globals['_RESOURCE_VECTORSTODELETEENTRY']._serialized_start=3946
|
128
|
+
_globals['_RESOURCE_VECTORSTODELETEENTRY']._serialized_end=4024
|
129
|
+
_globals['_RESOURCE_RESOURCESTATUS']._serialized_start=4026
|
130
|
+
_globals['_RESOURCE_RESOURCESTATUS']._serialized_end=4130
|
131
|
+
_globals['_SHARDMETADATA']._serialized_start=4145
|
132
|
+
_globals['_SHARDMETADATA']._serialized_end=4222
|
133
|
+
_globals['_STRINGLIST']._serialized_start=4224
|
134
|
+
_globals['_STRINGLIST']._serialized_end=4251
|
135
|
+
_globals['_INDEXRELATION']._serialized_start=4253
|
136
|
+
_globals['_INDEXRELATION']._serialized_end=4373
|
137
|
+
_globals['_INDEXRELATIONS']._serialized_start=4375
|
138
|
+
_globals['_INDEXRELATIONS']._serialized_end=4440
|
155
139
|
# @@protoc_insertion_point(module_scope)
|