nidx-protos 6.9.1.post5161__py3-none-any.whl → 6.9.7.post5555__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 CHANGED
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: nidx_protos/nidx.proto
5
- # Protobuf Python Version: 5.29.0
5
+ # Protobuf Python Version: 6.31.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 5,
15
- 29,
16
- 0,
14
+ 6,
15
+ 31,
16
+ 1,
17
17
  '',
18
18
  'nidx_protos/nidx.proto'
19
19
  )
@@ -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\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')
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\"2\n\x0cShardsConfig\x12\"\n\x07\x63onfigs\x18\x01 \x03(\x0b\x32\x11.nidx.ShardConfig\"8\n\x0bShardConfig\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x17\n\x0fprewarm_enabled\x18\x02 \x01(\x08\x32\xb5\x04\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\x12\x42\n\x0f\x43onfigureShards\x12\x12.nidx.ShardsConfig\x1a\x19.noderesources.EmptyQuery\"\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)
@@ -57,10 +57,14 @@ if not _descriptor._USE_C_DESCRIPTORS:
57
57
  _globals['_NOTIFICATION']._serialized_end=239
58
58
  _globals['_NOTIFICATION_ACTION']._serialized_start=195
59
59
  _globals['_NOTIFICATION_ACTION']._serialized_end=239
60
- _globals['_NIDXAPI']._serialized_start=242
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
60
+ _globals['_SHARDSCONFIG']._serialized_start=241
61
+ _globals['_SHARDSCONFIG']._serialized_end=291
62
+ _globals['_SHARDCONFIG']._serialized_start=293
63
+ _globals['_SHARDCONFIG']._serialized_end=349
64
+ _globals['_NIDXAPI']._serialized_start=352
65
+ _globals['_NIDXAPI']._serialized_end=917
66
+ _globals['_NIDXSEARCHER']._serialized_start=920
67
+ _globals['_NIDXSEARCHER']._serialized_end=1295
68
+ _globals['_NIDXINDEXER']._serialized_start=1297
69
+ _globals['_NIDXINDEXER']._serialized_end=1369
66
70
  # @@protoc_insertion_point(module_scope)
nidx_protos/nidx_pb2.pyi CHANGED
@@ -4,7 +4,9 @@ isort:skip_file
4
4
  """
5
5
 
6
6
  import builtins
7
+ import collections.abc
7
8
  import google.protobuf.descriptor
9
+ import google.protobuf.internal.containers
8
10
  import google.protobuf.internal.enum_type_wrapper
9
11
  import google.protobuf.message
10
12
  import sys
@@ -57,3 +59,41 @@ class Notification(google.protobuf.message.Message):
57
59
  def ClearField(self, field_name: typing.Literal["action", b"action", "kbid", b"kbid", "seqid", b"seqid", "uuid", b"uuid"]) -> None: ...
58
60
 
59
61
  global___Notification = Notification
62
+
63
+ @typing.final
64
+ class ShardsConfig(google.protobuf.message.Message):
65
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
66
+
67
+ CONFIGS_FIELD_NUMBER: builtins.int
68
+ @property
69
+ def configs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ShardConfig]: ...
70
+ def __init__(
71
+ self,
72
+ *,
73
+ configs: collections.abc.Iterable[global___ShardConfig] | None = ...,
74
+ ) -> None: ...
75
+ def ClearField(self, field_name: typing.Literal["configs", b"configs"]) -> None: ...
76
+
77
+ global___ShardsConfig = ShardsConfig
78
+
79
+ @typing.final
80
+ class ShardConfig(google.protobuf.message.Message):
81
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
82
+
83
+ SHARD_ID_FIELD_NUMBER: builtins.int
84
+ PREWARM_ENABLED_FIELD_NUMBER: builtins.int
85
+ shard_id: builtins.str
86
+ prewarm_enabled: builtins.bool
87
+ """Pre-warm is a feature to minimize cold starts on searches. It'll keep
88
+ disk data in memory to avoid IO latency, at expenses of RAM usage. Use
89
+ with care.
90
+ """
91
+ def __init__(
92
+ self,
93
+ *,
94
+ shard_id: builtins.str = ...,
95
+ prewarm_enabled: builtins.bool = ...,
96
+ ) -> None: ...
97
+ def ClearField(self, field_name: typing.Literal["prewarm_enabled", b"prewarm_enabled", "shard_id", b"shard_id"]) -> None: ...
98
+
99
+ global___ShardConfig = ShardConfig
@@ -3,11 +3,12 @@
3
3
  import grpc
4
4
  import warnings
5
5
 
6
+ from nidx_protos import nidx_pb2 as nidx__protos_dot_nidx__pb2
6
7
  from nidx_protos import nodereader_pb2 as nidx__protos_dot_nodereader__pb2
7
8
  from nidx_protos import noderesources_pb2 as nidx__protos_dot_noderesources__pb2
8
9
  from nidx_protos import nodewriter_pb2 as nidx__protos_dot_nodewriter__pb2
9
10
 
10
- GRPC_GENERATED_VERSION = '1.71.0'
11
+ GRPC_GENERATED_VERSION = '1.76.0'
11
12
  GRPC_VERSION = grpc.__version__
12
13
  _version_not_supported = False
13
14
 
@@ -20,7 +21,7 @@ except ImportError:
20
21
  if _version_not_supported:
21
22
  raise RuntimeError(
22
23
  f'The grpc package installed is at version {GRPC_VERSION},'
23
- + f' but the generated code in nidx_protos/nidx_pb2_grpc.py depends on'
24
+ + ' but the generated code in nidx_protos/nidx_pb2_grpc.py depends on'
24
25
  + f' grpcio>={GRPC_GENERATED_VERSION}.'
25
26
  + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
26
27
  + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
@@ -56,6 +57,11 @@ class NidxApiStub(object):
56
57
  request_serializer=nidx__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
57
58
  response_deserializer=nidx__protos_dot_noderesources__pb2.ShardIds.FromString,
58
59
  _registered_method=True)
60
+ self.ConfigureShards = channel.unary_unary(
61
+ '/nidx.NidxApi/ConfigureShards',
62
+ request_serializer=nidx__protos_dot_nidx__pb2.ShardsConfig.SerializeToString,
63
+ response_deserializer=nidx__protos_dot_noderesources__pb2.EmptyQuery.FromString,
64
+ _registered_method=True)
59
65
  self.AddVectorSet = channel.unary_unary(
60
66
  '/nidx.NidxApi/AddVectorSet',
61
67
  request_serializer=nidx__protos_dot_nodewriter__pb2.NewVectorSetRequest.SerializeToString,
@@ -100,6 +106,12 @@ class NidxApiServicer(object):
100
106
  context.set_details('Method not implemented!')
101
107
  raise NotImplementedError('Method not implemented!')
102
108
 
109
+ def ConfigureShards(self, request, context):
110
+ """Missing associated documentation comment in .proto file."""
111
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
112
+ context.set_details('Method not implemented!')
113
+ raise NotImplementedError('Method not implemented!')
114
+
103
115
  def AddVectorSet(self, request, context):
104
116
  """Missing associated documentation comment in .proto file."""
105
117
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
@@ -141,6 +153,11 @@ def add_NidxApiServicer_to_server(servicer, server):
141
153
  request_deserializer=nidx__protos_dot_noderesources__pb2.EmptyQuery.FromString,
142
154
  response_serializer=nidx__protos_dot_noderesources__pb2.ShardIds.SerializeToString,
143
155
  ),
156
+ 'ConfigureShards': grpc.unary_unary_rpc_method_handler(
157
+ servicer.ConfigureShards,
158
+ request_deserializer=nidx__protos_dot_nidx__pb2.ShardsConfig.FromString,
159
+ response_serializer=nidx__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
160
+ ),
144
161
  'AddVectorSet': grpc.unary_unary_rpc_method_handler(
145
162
  servicer.AddVectorSet,
146
163
  request_deserializer=nidx__protos_dot_nodewriter__pb2.NewVectorSetRequest.FromString,
@@ -275,6 +292,33 @@ class NidxApi(object):
275
292
  metadata,
276
293
  _registered_method=True)
277
294
 
295
+ @staticmethod
296
+ def ConfigureShards(request,
297
+ target,
298
+ options=(),
299
+ channel_credentials=None,
300
+ call_credentials=None,
301
+ insecure=False,
302
+ compression=None,
303
+ wait_for_ready=None,
304
+ timeout=None,
305
+ metadata=None):
306
+ return grpc.experimental.unary_unary(
307
+ request,
308
+ target,
309
+ '/nidx.NidxApi/ConfigureShards',
310
+ nidx__protos_dot_nidx__pb2.ShardsConfig.SerializeToString,
311
+ nidx__protos_dot_noderesources__pb2.EmptyQuery.FromString,
312
+ options,
313
+ channel_credentials,
314
+ insecure,
315
+ call_credentials,
316
+ compression,
317
+ wait_for_ready,
318
+ timeout,
319
+ metadata,
320
+ _registered_method=True)
321
+
278
322
  @staticmethod
279
323
  def AddVectorSet(request,
280
324
  target,
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: nidx_protos/nodereader.proto
5
- # Protobuf Python Version: 5.29.0
5
+ # Protobuf Python Version: 6.31.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 5,
15
- 29,
16
- 0,
14
+ 6,
15
+ 31,
16
+ 1,
17
17
  '',
18
18
  'nidx_protos/nodereader.proto'
19
19
  )
@@ -33,25 +33,21 @@ 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\"\xac\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\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\x01J\x04\x08\x04\x10\x05\"\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\"\xd9\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\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\x01J\x04\x08\x04\x10\x05\"&\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\"d\n\x14VectorSearchResponse\x12-\n\tdocuments\x18\x01 \x03(\x0b\x32\x1a.nodereader.DocumentScored\x12\x17\n\x0fresult_per_page\x18\x05 \x01(\x05J\x04\x08\x04\x10\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\"\xf5\x05\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\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\x07\x10\x08J\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\"\xb7\x01\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\x12<\n\x11\x66ilter_expression\x18\x05 \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x00\x88\x01\x01\x42\x14\n\x12_filter_expression*!\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')
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\"\xb6\x01\n\x07OrderBy\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\x01J\x04\x08\x01\x10\x02\")\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\"\xa1\x01\n\x0e\x44ocumentResult\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12(\n\x05score\x18\x03 \x01(\x0b\x32\x17.nodereader.ResultScoreH\x00\x12*\n\x04\x64\x61te\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\r\n\x05\x66ield\x18\x04 \x01(\t\x12\x0e\n\x06labels\x18\x05 \x03(\tB\x0c\n\nsort_value\"\xac\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\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\x01J\x04\x08\x04\x10\x05\"\xb4\x02\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.ResultScoreH\x00\x12*\n\x04\x64\x61te\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\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(\tB\x0c\n\nsort_value\"\xd9\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\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\x01J\x04\x08\x04\x10\x05\"&\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\"d\n\x14VectorSearchResponse\x12-\n\tdocuments\x18\x01 \x03(\x0b\x32\x1a.nodereader.DocumentScored\x12\x17\n\x0fresult_per_page\x18\x05 \x01(\x05J\x04\x08\x04\x10\x05\"B\n\x1cRelationPrefixSearchResponse\x12\"\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.utils.RelationNode\"\x92\n\n\nGraphQuery\x12.\n\x04path\x18\x01 \x01(\x0b\x32 .nodereader.GraphQuery.PathQuery\x1a\xfe\x03\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\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\"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\x0c\n\nmatch_kindB\x08\n\x06_valueB\x0c\n\n_node_typeB\x0f\n\r_node_subtypeJ\x04\x08\x04\x10\x05\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\"\xf5\x05\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\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\x07\x10\x08J\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\"\xb7\x01\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\x12<\n\x11\x66ilter_expression\x18\x05 \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x00\x88\x01\x01\x42\x14\n\x12_filter_expression*!\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)
40
40
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidx_protos.nodereader_pb2', _globals)
41
41
  if not _descriptor._USE_C_DESCRIPTORS:
42
42
  DESCRIPTOR._loaded_options = None
43
- _globals['_ORDERBY'].fields_by_name['field']._loaded_options = None
44
- _globals['_ORDERBY'].fields_by_name['field']._serialized_options = b'\030\001'
45
43
  _globals['_DOCUMENTSEARCHRESPONSE_FACETSENTRY']._loaded_options = None
46
44
  _globals['_DOCUMENTSEARCHRESPONSE_FACETSENTRY']._serialized_options = b'8\001'
47
45
  _globals['_PARAGRAPHSEARCHRESPONSE_FACETSENTRY']._loaded_options = None
48
46
  _globals['_PARAGRAPHSEARCHRESPONSE_FACETSENTRY']._serialized_options = b'8\001'
49
- _globals['_GRAPHQUERY_NODE'].fields_by_name['match_kind']._loaded_options = None
50
- _globals['_GRAPHQUERY_NODE'].fields_by_name['match_kind']._serialized_options = b'\030\001'
51
- _globals['_FILTEROPERATOR']._serialized_start=7081
52
- _globals['_FILTEROPERATOR']._serialized_end=7114
53
- _globals['_SUGGESTFEATURES']._serialized_start=7116
54
- _globals['_SUGGESTFEATURES']._serialized_end=7163
47
+ _globals['_FILTEROPERATOR']._serialized_start=7071
48
+ _globals['_FILTEROPERATOR']._serialized_end=7104
49
+ _globals['_SUGGESTFEATURES']._serialized_start=7106
50
+ _globals['_SUGGESTFEATURES']._serialized_end=7153
55
51
  _globals['_STREAMFILTER']._serialized_start=140
56
52
  _globals['_STREAMFILTER']._serialized_end=270
57
53
  _globals['_STREAMFILTER_CONJUNCTION']._serialized_start=231
@@ -59,101 +55,99 @@ if not _descriptor._USE_C_DESCRIPTORS:
59
55
  _globals['_FACETED']._serialized_start=272
60
56
  _globals['_FACETED']._serialized_end=297
61
57
  _globals['_ORDERBY']._serialized_start=300
62
- _globals['_ORDERBY']._serialized_end=495
63
- _globals['_ORDERBY_ORDERTYPE']._serialized_start=424
64
- _globals['_ORDERBY_ORDERTYPE']._serialized_end=454
65
- _globals['_ORDERBY_ORDERFIELD']._serialized_start=456
66
- _globals['_ORDERBY_ORDERFIELD']._serialized_end=495
67
- _globals['_FACETRESULT']._serialized_start=497
68
- _globals['_FACETRESULT']._serialized_end=538
69
- _globals['_FACETRESULTS']._serialized_start=540
70
- _globals['_FACETRESULTS']._serialized_end=601
71
- _globals['_RESULTSCORE']._serialized_start=603
72
- _globals['_RESULTSCORE']._serialized_end=647
73
- _globals['_DOCUMENTRESULT']._serialized_start=649
74
- _globals['_DOCUMENTRESULT']._serialized_end=750
75
- _globals['_DOCUMENTSEARCHRESPONSE']._serialized_start=753
76
- _globals['_DOCUMENTSEARCHRESPONSE']._serialized_end=1053
77
- _globals['_DOCUMENTSEARCHRESPONSE_FACETSENTRY']._serialized_start=976
78
- _globals['_DOCUMENTSEARCHRESPONSE_FACETSENTRY']._serialized_end=1047
79
- _globals['_PARAGRAPHRESULT']._serialized_start=1056
80
- _globals['_PARAGRAPHRESULT']._serialized_end=1304
81
- _globals['_PARAGRAPHSEARCHRESPONSE']._serialized_start=1307
82
- _globals['_PARAGRAPHSEARCHRESPONSE']._serialized_end=1652
83
- _globals['_PARAGRAPHSEARCHRESPONSE_FACETSENTRY']._serialized_start=976
84
- _globals['_PARAGRAPHSEARCHRESPONSE_FACETSENTRY']._serialized_end=1047
85
- _globals['_DOCUMENTVECTORIDENTIFIER']._serialized_start=1654
86
- _globals['_DOCUMENTVECTORIDENTIFIER']._serialized_end=1692
87
- _globals['_DOCUMENTSCORED']._serialized_start=1695
88
- _globals['_DOCUMENTSCORED']._serialized_end=1847
89
- _globals['_VECTORSEARCHRESPONSE']._serialized_start=1849
90
- _globals['_VECTORSEARCHRESPONSE']._serialized_end=1949
91
- _globals['_RELATIONPREFIXSEARCHRESPONSE']._serialized_start=1951
92
- _globals['_RELATIONPREFIXSEARCHRESPONSE']._serialized_end=2017
93
- _globals['_GRAPHQUERY']._serialized_start=2020
94
- _globals['_GRAPHQUERY']._serialized_end=3436
95
- _globals['_GRAPHQUERY_NODE']._serialized_start=2083
96
- _globals['_GRAPHQUERY_NODE']._serialized_end=2711
97
- _globals['_GRAPHQUERY_NODE_EXACTMATCH']._serialized_start=2369
98
- _globals['_GRAPHQUERY_NODE_EXACTMATCH']._serialized_end=2438
99
- _globals['_GRAPHQUERY_NODE_FUZZYMATCH']._serialized_start=2440
100
- _globals['_GRAPHQUERY_NODE_FUZZYMATCH']._serialized_end=2527
101
- _globals['_GRAPHQUERY_NODE_MATCHKIND']._serialized_start=2529
102
- _globals['_GRAPHQUERY_NODE_MATCHKIND']._serialized_end=2584
103
- _globals['_GRAPHQUERY_NODE_MATCHLOCATION']._serialized_start=2586
104
- _globals['_GRAPHQUERY_NODE_MATCHLOCATION']._serialized_end=2652
105
- _globals['_GRAPHQUERY_RELATION']._serialized_start=2713
106
- _globals['_GRAPHQUERY_RELATION']._serialized_end=2829
107
- _globals['_GRAPHQUERY_PATH']._serialized_start=2832
108
- _globals['_GRAPHQUERY_PATH']._serialized_end=3059
109
- _globals['_GRAPHQUERY_BOOLQUERY']._serialized_start=3061
110
- _globals['_GRAPHQUERY_BOOLQUERY']._serialized_end=3124
111
- _globals['_GRAPHQUERY_FACETFILTER']._serialized_start=3126
112
- _globals['_GRAPHQUERY_FACETFILTER']._serialized_end=3154
113
- _globals['_GRAPHQUERY_PATHQUERY']._serialized_start=3157
114
- _globals['_GRAPHQUERY_PATHQUERY']._serialized_end=3436
115
- _globals['_GRAPHSEARCHREQUEST']._serialized_start=3439
116
- _globals['_GRAPHSEARCHREQUEST']._serialized_end=3760
117
- _globals['_GRAPHSEARCHREQUEST_QUERYKIND']._serialized_start=3683
118
- _globals['_GRAPHSEARCHREQUEST_QUERYKIND']._serialized_end=3730
119
- _globals['_GRAPHSEARCHRESPONSE']._serialized_start=3763
120
- _globals['_GRAPHSEARCHRESPONSE']._serialized_end=4209
121
- _globals['_GRAPHSEARCHRESPONSE_RELATION']._serialized_start=3936
122
- _globals['_GRAPHSEARCHRESPONSE_RELATION']._serialized_end=4014
123
- _globals['_GRAPHSEARCHRESPONSE_PATH']._serialized_start=4017
124
- _globals['_GRAPHSEARCHRESPONSE_PATH']._serialized_end=4209
125
- _globals['_FILTEREXPRESSION']._serialized_start=4212
126
- _globals['_FILTEREXPRESSION']._serialized_end=5230
127
- _globals['_FILTEREXPRESSION_FILTEREXPRESSIONLIST']._serialized_start=4731
128
- _globals['_FILTEREXPRESSION_FILTEREXPRESSIONLIST']._serialized_end=4801
129
- _globals['_FILTEREXPRESSION_RESOURCEFILTER']._serialized_start=4803
130
- _globals['_FILTEREXPRESSION_RESOURCEFILTER']._serialized_end=4840
131
- _globals['_FILTEREXPRESSION_FIELDFILTER']._serialized_start=4842
132
- _globals['_FILTEREXPRESSION_FIELDFILTER']._serialized_end=4911
133
- _globals['_FILTEREXPRESSION_DATERANGEFILTER']._serialized_start=4914
134
- _globals['_FILTEREXPRESSION_DATERANGEFILTER']._serialized_end=5158
135
- _globals['_FILTEREXPRESSION_DATERANGEFILTER_DATEFIELD']._serialized_start=5100
136
- _globals['_FILTEREXPRESSION_DATERANGEFILTER_DATEFIELD']._serialized_end=5138
137
- _globals['_FILTEREXPRESSION_KEYWORDFILTER']._serialized_start=5160
138
- _globals['_FILTEREXPRESSION_KEYWORDFILTER']._serialized_end=5192
139
- _globals['_FILTEREXPRESSION_FACETFILTER']._serialized_start=3126
140
- _globals['_FILTEREXPRESSION_FACETFILTER']._serialized_end=3154
141
- _globals['_SEARCHREQUEST']._serialized_start=5233
142
- _globals['_SEARCHREQUEST']._serialized_end=5990
143
- _globals['_SEARCHREQUEST_GRAPHSEARCH']._serialized_start=5850
144
- _globals['_SEARCHREQUEST_GRAPHSEARCH']._serialized_end=5902
145
- _globals['_SUGGESTREQUEST']._serialized_start=5993
146
- _globals['_SUGGESTREQUEST']._serialized_end=6294
147
- _globals['_SUGGESTRESPONSE']._serialized_start=6297
148
- _globals['_SUGGESTRESPONSE']._serialized_end=6474
149
- _globals['_SEARCHRESPONSE']._serialized_start=6477
150
- _globals['_SEARCHRESPONSE']._serialized_end=6707
151
- _globals['_GETSHARDREQUEST']._serialized_start=6709
152
- _globals['_GETSHARDREQUEST']._serialized_end=6787
153
- _globals['_PARAGRAPHITEM']._serialized_start=6789
154
- _globals['_PARAGRAPHITEM']._serialized_end=6832
155
- _globals['_DOCUMENTITEM']._serialized_start=6834
156
- _globals['_DOCUMENTITEM']._serialized_end=6893
157
- _globals['_STREAMREQUEST']._serialized_start=6896
158
- _globals['_STREAMREQUEST']._serialized_end=7079
58
+ _globals['_ORDERBY']._serialized_end=482
59
+ _globals['_ORDERBY_ORDERTYPE']._serialized_start=405
60
+ _globals['_ORDERBY_ORDERTYPE']._serialized_end=435
61
+ _globals['_ORDERBY_ORDERFIELD']._serialized_start=437
62
+ _globals['_ORDERBY_ORDERFIELD']._serialized_end=476
63
+ _globals['_FACETRESULT']._serialized_start=484
64
+ _globals['_FACETRESULT']._serialized_end=525
65
+ _globals['_FACETRESULTS']._serialized_start=527
66
+ _globals['_FACETRESULTS']._serialized_end=588
67
+ _globals['_RESULTSCORE']._serialized_start=590
68
+ _globals['_RESULTSCORE']._serialized_end=634
69
+ _globals['_DOCUMENTRESULT']._serialized_start=637
70
+ _globals['_DOCUMENTRESULT']._serialized_end=798
71
+ _globals['_DOCUMENTSEARCHRESPONSE']._serialized_start=801
72
+ _globals['_DOCUMENTSEARCHRESPONSE']._serialized_end=1101
73
+ _globals['_DOCUMENTSEARCHRESPONSE_FACETSENTRY']._serialized_start=1024
74
+ _globals['_DOCUMENTSEARCHRESPONSE_FACETSENTRY']._serialized_end=1095
75
+ _globals['_PARAGRAPHRESULT']._serialized_start=1104
76
+ _globals['_PARAGRAPHRESULT']._serialized_end=1412
77
+ _globals['_PARAGRAPHSEARCHRESPONSE']._serialized_start=1415
78
+ _globals['_PARAGRAPHSEARCHRESPONSE']._serialized_end=1760
79
+ _globals['_PARAGRAPHSEARCHRESPONSE_FACETSENTRY']._serialized_start=1024
80
+ _globals['_PARAGRAPHSEARCHRESPONSE_FACETSENTRY']._serialized_end=1095
81
+ _globals['_DOCUMENTVECTORIDENTIFIER']._serialized_start=1762
82
+ _globals['_DOCUMENTVECTORIDENTIFIER']._serialized_end=1800
83
+ _globals['_DOCUMENTSCORED']._serialized_start=1803
84
+ _globals['_DOCUMENTSCORED']._serialized_end=1955
85
+ _globals['_VECTORSEARCHRESPONSE']._serialized_start=1957
86
+ _globals['_VECTORSEARCHRESPONSE']._serialized_end=2057
87
+ _globals['_RELATIONPREFIXSEARCHRESPONSE']._serialized_start=2059
88
+ _globals['_RELATIONPREFIXSEARCHRESPONSE']._serialized_end=2125
89
+ _globals['_GRAPHQUERY']._serialized_start=2128
90
+ _globals['_GRAPHQUERY']._serialized_end=3426
91
+ _globals['_GRAPHQUERY_NODE']._serialized_start=2191
92
+ _globals['_GRAPHQUERY_NODE']._serialized_end=2701
93
+ _globals['_GRAPHQUERY_NODE_EXACTMATCH']._serialized_start=2414
94
+ _globals['_GRAPHQUERY_NODE_EXACTMATCH']._serialized_end=2483
95
+ _globals['_GRAPHQUERY_NODE_FUZZYMATCH']._serialized_start=2485
96
+ _globals['_GRAPHQUERY_NODE_FUZZYMATCH']._serialized_end=2572
97
+ _globals['_GRAPHQUERY_NODE_MATCHLOCATION']._serialized_start=2574
98
+ _globals['_GRAPHQUERY_NODE_MATCHLOCATION']._serialized_end=2640
99
+ _globals['_GRAPHQUERY_RELATION']._serialized_start=2703
100
+ _globals['_GRAPHQUERY_RELATION']._serialized_end=2819
101
+ _globals['_GRAPHQUERY_PATH']._serialized_start=2822
102
+ _globals['_GRAPHQUERY_PATH']._serialized_end=3049
103
+ _globals['_GRAPHQUERY_BOOLQUERY']._serialized_start=3051
104
+ _globals['_GRAPHQUERY_BOOLQUERY']._serialized_end=3114
105
+ _globals['_GRAPHQUERY_FACETFILTER']._serialized_start=3116
106
+ _globals['_GRAPHQUERY_FACETFILTER']._serialized_end=3144
107
+ _globals['_GRAPHQUERY_PATHQUERY']._serialized_start=3147
108
+ _globals['_GRAPHQUERY_PATHQUERY']._serialized_end=3426
109
+ _globals['_GRAPHSEARCHREQUEST']._serialized_start=3429
110
+ _globals['_GRAPHSEARCHREQUEST']._serialized_end=3750
111
+ _globals['_GRAPHSEARCHREQUEST_QUERYKIND']._serialized_start=3673
112
+ _globals['_GRAPHSEARCHREQUEST_QUERYKIND']._serialized_end=3720
113
+ _globals['_GRAPHSEARCHRESPONSE']._serialized_start=3753
114
+ _globals['_GRAPHSEARCHRESPONSE']._serialized_end=4199
115
+ _globals['_GRAPHSEARCHRESPONSE_RELATION']._serialized_start=3926
116
+ _globals['_GRAPHSEARCHRESPONSE_RELATION']._serialized_end=4004
117
+ _globals['_GRAPHSEARCHRESPONSE_PATH']._serialized_start=4007
118
+ _globals['_GRAPHSEARCHRESPONSE_PATH']._serialized_end=4199
119
+ _globals['_FILTEREXPRESSION']._serialized_start=4202
120
+ _globals['_FILTEREXPRESSION']._serialized_end=5220
121
+ _globals['_FILTEREXPRESSION_FILTEREXPRESSIONLIST']._serialized_start=4721
122
+ _globals['_FILTEREXPRESSION_FILTEREXPRESSIONLIST']._serialized_end=4791
123
+ _globals['_FILTEREXPRESSION_RESOURCEFILTER']._serialized_start=4793
124
+ _globals['_FILTEREXPRESSION_RESOURCEFILTER']._serialized_end=4830
125
+ _globals['_FILTEREXPRESSION_FIELDFILTER']._serialized_start=4832
126
+ _globals['_FILTEREXPRESSION_FIELDFILTER']._serialized_end=4901
127
+ _globals['_FILTEREXPRESSION_DATERANGEFILTER']._serialized_start=4904
128
+ _globals['_FILTEREXPRESSION_DATERANGEFILTER']._serialized_end=5148
129
+ _globals['_FILTEREXPRESSION_DATERANGEFILTER_DATEFIELD']._serialized_start=5090
130
+ _globals['_FILTEREXPRESSION_DATERANGEFILTER_DATEFIELD']._serialized_end=5128
131
+ _globals['_FILTEREXPRESSION_KEYWORDFILTER']._serialized_start=5150
132
+ _globals['_FILTEREXPRESSION_KEYWORDFILTER']._serialized_end=5182
133
+ _globals['_FILTEREXPRESSION_FACETFILTER']._serialized_start=3116
134
+ _globals['_FILTEREXPRESSION_FACETFILTER']._serialized_end=3144
135
+ _globals['_SEARCHREQUEST']._serialized_start=5223
136
+ _globals['_SEARCHREQUEST']._serialized_end=5980
137
+ _globals['_SEARCHREQUEST_GRAPHSEARCH']._serialized_start=5840
138
+ _globals['_SEARCHREQUEST_GRAPHSEARCH']._serialized_end=5892
139
+ _globals['_SUGGESTREQUEST']._serialized_start=5983
140
+ _globals['_SUGGESTREQUEST']._serialized_end=6284
141
+ _globals['_SUGGESTRESPONSE']._serialized_start=6287
142
+ _globals['_SUGGESTRESPONSE']._serialized_end=6464
143
+ _globals['_SEARCHRESPONSE']._serialized_start=6467
144
+ _globals['_SEARCHRESPONSE']._serialized_end=6697
145
+ _globals['_GETSHARDREQUEST']._serialized_start=6699
146
+ _globals['_GETSHARDREQUEST']._serialized_end=6777
147
+ _globals['_PARAGRAPHITEM']._serialized_start=6779
148
+ _globals['_PARAGRAPHITEM']._serialized_end=6822
149
+ _globals['_DOCUMENTITEM']._serialized_start=6824
150
+ _globals['_DOCUMENTITEM']._serialized_end=6883
151
+ _globals['_STREAMREQUEST']._serialized_start=6886
152
+ _globals['_STREAMREQUEST']._serialized_end=7069
159
153
  # @@protoc_insertion_point(module_scope)
@@ -47,13 +47,10 @@ from nidx_protos.noderesources_pb2 import (
47
47
  from nucliadb_protos.utils_pb2 import (
48
48
  COSINE as COSINE,
49
49
  DOT as DOT,
50
- EXPERIMENTAL as EXPERIMENTAL,
51
50
  ExtractedText as ExtractedText,
52
51
  Relation as Relation,
53
52
  RelationMetadata as RelationMetadata,
54
53
  RelationNode as RelationNode,
55
- ReleaseChannel as ReleaseChannel,
56
- STABLE as STABLE,
57
54
  Security as Security,
58
55
  UserVector as UserVector,
59
56
  UserVectorSet as UserVectorSet,
@@ -177,20 +174,17 @@ class OrderBy(google.protobuf.message.Message):
177
174
  CREATED: OrderBy.OrderField.ValueType # 0
178
175
  MODIFIED: OrderBy.OrderField.ValueType # 1
179
176
 
180
- FIELD_FIELD_NUMBER: builtins.int
181
177
  TYPE_FIELD_NUMBER: builtins.int
182
178
  SORT_BY_FIELD_NUMBER: builtins.int
183
- field: builtins.str
184
179
  type: global___OrderBy.OrderType.ValueType
185
180
  sort_by: global___OrderBy.OrderField.ValueType
186
181
  def __init__(
187
182
  self,
188
183
  *,
189
- field: builtins.str = ...,
190
184
  type: global___OrderBy.OrderType.ValueType = ...,
191
185
  sort_by: global___OrderBy.OrderField.ValueType = ...,
192
186
  ) -> None: ...
193
- def ClearField(self, field_name: typing.Literal["field", b"field", "sort_by", b"sort_by", "type", b"type"]) -> None: ...
187
+ def ClearField(self, field_name: typing.Literal["sort_by", b"sort_by", "type", b"type"]) -> None: ...
194
188
 
195
189
  global___OrderBy = OrderBy
196
190
 
@@ -255,6 +249,7 @@ class DocumentResult(google.protobuf.message.Message):
255
249
 
256
250
  UUID_FIELD_NUMBER: builtins.int
257
251
  SCORE_FIELD_NUMBER: builtins.int
252
+ DATE_FIELD_NUMBER: builtins.int
258
253
  FIELD_FIELD_NUMBER: builtins.int
259
254
  LABELS_FIELD_NUMBER: builtins.int
260
255
  uuid: builtins.str
@@ -262,17 +257,21 @@ class DocumentResult(google.protobuf.message.Message):
262
257
  @property
263
258
  def score(self) -> global___ResultScore: ...
264
259
  @property
260
+ def date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
261
+ @property
265
262
  def labels(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
266
263
  def __init__(
267
264
  self,
268
265
  *,
269
266
  uuid: builtins.str = ...,
270
267
  score: global___ResultScore | None = ...,
268
+ date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
271
269
  field: builtins.str = ...,
272
270
  labels: collections.abc.Iterable[builtins.str] | None = ...,
273
271
  ) -> None: ...
274
- def HasField(self, field_name: typing.Literal["score", b"score"]) -> builtins.bool: ...
275
- def ClearField(self, field_name: typing.Literal["field", b"field", "labels", b"labels", "score", b"score", "uuid", b"uuid"]) -> None: ...
272
+ def HasField(self, field_name: typing.Literal["date", b"date", "score", b"score", "sort_value", b"sort_value"]) -> builtins.bool: ...
273
+ def ClearField(self, field_name: typing.Literal["date", b"date", "field", b"field", "labels", b"labels", "score", b"score", "sort_value", b"sort_value", "uuid", b"uuid"]) -> None: ...
274
+ def WhichOneof(self, oneof_group: typing.Literal["sort_value", b"sort_value"]) -> typing.Literal["score", "date"] | None: ...
276
275
 
277
276
  global___DocumentResult = DocumentResult
278
277
 
@@ -343,6 +342,7 @@ class ParagraphResult(google.protobuf.message.Message):
343
342
  SPLIT_FIELD_NUMBER: builtins.int
344
343
  INDEX_FIELD_NUMBER: builtins.int
345
344
  SCORE_FIELD_NUMBER: builtins.int
345
+ DATE_FIELD_NUMBER: builtins.int
346
346
  MATCHES_FIELD_NUMBER: builtins.int
347
347
  METADATA_FIELD_NUMBER: builtins.int
348
348
  LABELS_FIELD_NUMBER: builtins.int
@@ -356,6 +356,8 @@ class ParagraphResult(google.protobuf.message.Message):
356
356
  @property
357
357
  def score(self) -> global___ResultScore: ...
358
358
  @property
359
+ def date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
360
+ @property
359
361
  def matches(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
360
362
  @property
361
363
  def metadata(self) -> nidx_protos.noderesources_pb2.ParagraphMetadata:
@@ -374,12 +376,14 @@ class ParagraphResult(google.protobuf.message.Message):
374
376
  split: builtins.str = ...,
375
377
  index: builtins.int = ...,
376
378
  score: global___ResultScore | None = ...,
379
+ date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
377
380
  matches: collections.abc.Iterable[builtins.str] | None = ...,
378
381
  metadata: nidx_protos.noderesources_pb2.ParagraphMetadata | None = ...,
379
382
  labels: collections.abc.Iterable[builtins.str] | None = ...,
380
383
  ) -> None: ...
381
- def HasField(self, field_name: typing.Literal["metadata", b"metadata", "score", b"score"]) -> builtins.bool: ...
382
- def ClearField(self, field_name: typing.Literal["end", b"end", "field", b"field", "index", b"index", "labels", b"labels", "matches", b"matches", "metadata", b"metadata", "paragraph", b"paragraph", "score", b"score", "split", b"split", "start", b"start", "uuid", b"uuid"]) -> None: ...
384
+ def HasField(self, field_name: typing.Literal["date", b"date", "metadata", b"metadata", "score", b"score", "sort_value", b"sort_value"]) -> builtins.bool: ...
385
+ def ClearField(self, field_name: typing.Literal["date", b"date", "end", b"end", "field", b"field", "index", b"index", "labels", b"labels", "matches", b"matches", "metadata", b"metadata", "paragraph", b"paragraph", "score", b"score", "sort_value", b"sort_value", "split", b"split", "start", b"start", "uuid", b"uuid"]) -> None: ...
386
+ def WhichOneof(self, oneof_group: typing.Literal["sort_value", b"sort_value"]) -> typing.Literal["score", "date"] | None: ...
383
387
 
384
388
  global___ParagraphResult = ParagraphResult
385
389
 
@@ -537,19 +541,6 @@ class GraphQuery(google.protobuf.message.Message):
537
541
  class Node(google.protobuf.message.Message):
538
542
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
539
543
 
540
- class _MatchKind:
541
- ValueType = typing.NewType("ValueType", builtins.int)
542
- V: typing_extensions.TypeAlias = ValueType
543
-
544
- class _MatchKindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[GraphQuery.Node._MatchKind.ValueType], builtins.type):
545
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
546
- DEPRECATED_EXACT: GraphQuery.Node._MatchKind.ValueType # 0
547
- DEPRECATED_FUZZY: GraphQuery.Node._MatchKind.ValueType # 1
548
-
549
- class MatchKind(_MatchKind, metaclass=_MatchKindEnumTypeWrapper): ...
550
- DEPRECATED_EXACT: GraphQuery.Node.MatchKind.ValueType # 0
551
- DEPRECATED_FUZZY: GraphQuery.Node.MatchKind.ValueType # 1
552
-
553
544
  class _MatchLocation:
554
545
  ValueType = typing.NewType("ValueType", builtins.int)
555
546
  V: typing_extensions.TypeAlias = ValueType
@@ -607,13 +598,11 @@ class GraphQuery(google.protobuf.message.Message):
607
598
  VALUE_FIELD_NUMBER: builtins.int
608
599
  NODE_TYPE_FIELD_NUMBER: builtins.int
609
600
  NODE_SUBTYPE_FIELD_NUMBER: builtins.int
610
- MATCH_KIND_FIELD_NUMBER: builtins.int
611
601
  EXACT_FIELD_NUMBER: builtins.int
612
602
  FUZZY_FIELD_NUMBER: builtins.int
613
603
  value: builtins.str
614
604
  node_type: nucliadb_protos.utils_pb2.RelationNode.NodeType.ValueType
615
605
  node_subtype: builtins.str
616
- match_kind: global___GraphQuery.Node.MatchKind.ValueType
617
606
  @property
618
607
  def exact(self) -> global___GraphQuery.Node.ExactMatch: ...
619
608
  @property
@@ -624,12 +613,11 @@ class GraphQuery(google.protobuf.message.Message):
624
613
  value: builtins.str | None = ...,
625
614
  node_type: nucliadb_protos.utils_pb2.RelationNode.NodeType.ValueType | None = ...,
626
615
  node_subtype: builtins.str | None = ...,
627
- match_kind: global___GraphQuery.Node.MatchKind.ValueType = ...,
628
616
  exact: global___GraphQuery.Node.ExactMatch | None = ...,
629
617
  fuzzy: global___GraphQuery.Node.FuzzyMatch | None = ...,
630
618
  ) -> None: ...
631
- def HasField(self, field_name: typing.Literal["_node_subtype", b"_node_subtype", "_node_type", b"_node_type", "_value", b"_value", "exact", b"exact", "fuzzy", b"fuzzy", "new_match_kind", b"new_match_kind", "node_subtype", b"node_subtype", "node_type", b"node_type", "value", b"value"]) -> builtins.bool: ...
632
- def ClearField(self, field_name: typing.Literal["_node_subtype", b"_node_subtype", "_node_type", b"_node_type", "_value", b"_value", "exact", b"exact", "fuzzy", b"fuzzy", "match_kind", b"match_kind", "new_match_kind", b"new_match_kind", "node_subtype", b"node_subtype", "node_type", b"node_type", "value", b"value"]) -> None: ...
619
+ def HasField(self, field_name: typing.Literal["_node_subtype", b"_node_subtype", "_node_type", b"_node_type", "_value", b"_value", "exact", b"exact", "fuzzy", b"fuzzy", "match_kind", b"match_kind", "node_subtype", b"node_subtype", "node_type", b"node_type", "value", b"value"]) -> builtins.bool: ...
620
+ def ClearField(self, field_name: typing.Literal["_node_subtype", b"_node_subtype", "_node_type", b"_node_type", "_value", b"_value", "exact", b"exact", "fuzzy", b"fuzzy", "match_kind", b"match_kind", "node_subtype", b"node_subtype", "node_type", b"node_type", "value", b"value"]) -> None: ...
633
621
  @typing.overload
634
622
  def WhichOneof(self, oneof_group: typing.Literal["_node_subtype", b"_node_subtype"]) -> typing.Literal["node_subtype"] | None: ...
635
623
  @typing.overload
@@ -637,7 +625,7 @@ class GraphQuery(google.protobuf.message.Message):
637
625
  @typing.overload
638
626
  def WhichOneof(self, oneof_group: typing.Literal["_value", b"_value"]) -> typing.Literal["value"] | None: ...
639
627
  @typing.overload
640
- def WhichOneof(self, oneof_group: typing.Literal["new_match_kind", b"new_match_kind"]) -> typing.Literal["exact", "fuzzy"] | None: ...
628
+ def WhichOneof(self, oneof_group: typing.Literal["match_kind", b"match_kind"]) -> typing.Literal["exact", "fuzzy"] | None: ...
641
629
 
642
630
  @typing.final
643
631
  class Relation(google.protobuf.message.Message):
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: nidx_protos/noderesources.proto
5
- # Protobuf Python Version: 5.29.0
5
+ # Protobuf Python Version: 6.31.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 5,
15
- 29,
16
- 0,
14
+ 6,
15
+ 31,
16
+ 1,
17
17
  '',
18
18
  'nidx_protos/noderesources.proto'
19
19
  )
@@ -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\"\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')
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\"\xff\x08\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+\n#vectors_to_delete_in_all_vectorsets\x18\x08 \x03(\t\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&\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\"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_securityJ\x04\x08\x0c\x10\rJ\x04\x08\r\x10\x0e\"#\n\rShardMetadata\x12\x0c\n\x04kbid\x18\x01 \x01(\tJ\x04\x08\x02\x10\x03\"\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)
@@ -50,16 +50,6 @@ if not _descriptor._USE_C_DESCRIPTORS:
50
50
  _globals['_RESOURCE_VECTORPREFIXESTODELETEENTRY']._serialized_options = b'8\001'
51
51
  _globals['_RESOURCE_FIELDRELATIONSENTRY']._loaded_options = None
52
52
  _globals['_RESOURCE_FIELDRELATIONSENTRY']._serialized_options = b'8\001'
53
- _globals['_RESOURCE_VECTORSENTRY']._loaded_options = None
54
- _globals['_RESOURCE_VECTORSENTRY']._serialized_options = b'8\001'
55
- _globals['_RESOURCE_VECTORSTODELETEENTRY']._loaded_options = None
56
- _globals['_RESOURCE_VECTORSTODELETEENTRY']._serialized_options = b'8\001'
57
- _globals['_RESOURCE'].fields_by_name['sentences_to_delete']._loaded_options = None
58
- _globals['_RESOURCE'].fields_by_name['sentences_to_delete']._serialized_options = b'\030\001'
59
- _globals['_RESOURCE'].fields_by_name['vectors']._loaded_options = None
60
- _globals['_RESOURCE'].fields_by_name['vectors']._serialized_options = b'\030\001'
61
- _globals['_RESOURCE'].fields_by_name['vectors_to_delete']._loaded_options = None
62
- _globals['_RESOURCE'].fields_by_name['vectors_to_delete']._serialized_options = b'\030\001'
63
53
  _globals['_TEXTINFORMATION']._serialized_start=112
64
54
  _globals['_TEXTINFORMATION']._serialized_end=159
65
55
  _globals['_INDEXMETADATA']._serialized_start=161
@@ -113,27 +103,23 @@ if not _descriptor._USE_C_DESCRIPTORS:
113
103
  _globals['_INDEXPARAGRAPHS_PARAGRAPHSENTRY']._serialized_start=2649
114
104
  _globals['_INDEXPARAGRAPHS_PARAGRAPHSENTRY']._serialized_end=2729
115
105
  _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
106
+ _globals['_RESOURCE']._serialized_end=3883
107
+ _globals['_RESOURCE_TEXTSENTRY']._serialized_start=3417
108
+ _globals['_RESOURCE_TEXTSENTRY']._serialized_end=3493
109
+ _globals['_RESOURCE_PARAGRAPHSENTRY']._serialized_start=3495
110
+ _globals['_RESOURCE_PARAGRAPHSENTRY']._serialized_end=3576
111
+ _globals['_RESOURCE_VECTORPREFIXESTODELETEENTRY']._serialized_start=3578
112
+ _globals['_RESOURCE_VECTORPREFIXESTODELETEENTRY']._serialized_end=3666
113
+ _globals['_RESOURCE_FIELDRELATIONSENTRY']._serialized_start=3668
114
+ _globals['_RESOURCE_FIELDRELATIONSENTRY']._serialized_end=3752
115
+ _globals['_RESOURCE_RESOURCESTATUS']._serialized_start=3754
116
+ _globals['_RESOURCE_RESOURCESTATUS']._serialized_end=3858
117
+ _globals['_SHARDMETADATA']._serialized_start=3885
118
+ _globals['_SHARDMETADATA']._serialized_end=3920
119
+ _globals['_STRINGLIST']._serialized_start=3922
120
+ _globals['_STRINGLIST']._serialized_end=3949
121
+ _globals['_INDEXRELATION']._serialized_start=3951
122
+ _globals['_INDEXRELATION']._serialized_end=4071
123
+ _globals['_INDEXRELATIONS']._serialized_start=4073
124
+ _globals['_INDEXRELATIONS']._serialized_end=4138
139
125
  # @@protoc_insertion_point(module_scope)
@@ -21,13 +21,10 @@ else:
21
21
  from nucliadb_protos.utils_pb2 import (
22
22
  COSINE as COSINE,
23
23
  DOT as DOT,
24
- EXPERIMENTAL as EXPERIMENTAL,
25
24
  ExtractedText as ExtractedText,
26
25
  Relation as Relation,
27
26
  RelationMetadata as RelationMetadata,
28
27
  RelationNode as RelationNode,
29
- ReleaseChannel as ReleaseChannel,
30
- STABLE as STABLE,
31
28
  Security as Security,
32
29
  UserVector as UserVector,
33
30
  UserVectorSet as UserVectorSet,
@@ -694,42 +691,6 @@ class Resource(google.protobuf.message.Message):
694
691
  def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
695
692
  def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
696
693
 
697
- @typing.final
698
- class VectorsEntry(google.protobuf.message.Message):
699
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
700
-
701
- KEY_FIELD_NUMBER: builtins.int
702
- VALUE_FIELD_NUMBER: builtins.int
703
- key: builtins.str
704
- @property
705
- def value(self) -> nucliadb_protos.utils_pb2.UserVectors: ...
706
- def __init__(
707
- self,
708
- *,
709
- key: builtins.str = ...,
710
- value: nucliadb_protos.utils_pb2.UserVectors | None = ...,
711
- ) -> None: ...
712
- def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
713
- def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
714
-
715
- @typing.final
716
- class VectorsToDeleteEntry(google.protobuf.message.Message):
717
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
718
-
719
- KEY_FIELD_NUMBER: builtins.int
720
- VALUE_FIELD_NUMBER: builtins.int
721
- key: builtins.str
722
- @property
723
- def value(self) -> nucliadb_protos.utils_pb2.UserVectorsList: ...
724
- def __init__(
725
- self,
726
- *,
727
- key: builtins.str = ...,
728
- value: nucliadb_protos.utils_pb2.UserVectorsList | None = ...,
729
- ) -> None: ...
730
- def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
731
- def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
732
-
733
694
  RESOURCE_FIELD_NUMBER: builtins.int
734
695
  METADATA_FIELD_NUMBER: builtins.int
735
696
  TEXTS_FIELD_NUMBER: builtins.int
@@ -737,14 +698,12 @@ class Resource(google.protobuf.message.Message):
737
698
  STATUS_FIELD_NUMBER: builtins.int
738
699
  PARAGRAPHS_FIELD_NUMBER: builtins.int
739
700
  PARAGRAPHS_TO_DELETE_FIELD_NUMBER: builtins.int
740
- SENTENCES_TO_DELETE_FIELD_NUMBER: builtins.int
701
+ VECTORS_TO_DELETE_IN_ALL_VECTORSETS_FIELD_NUMBER: builtins.int
741
702
  VECTOR_PREFIXES_TO_DELETE_FIELD_NUMBER: builtins.int
742
703
  RELATION_FIELDS_TO_DELETE_FIELD_NUMBER: builtins.int
743
704
  TEXTS_TO_DELETE_FIELD_NUMBER: builtins.int
744
705
  FIELD_RELATIONS_FIELD_NUMBER: builtins.int
745
706
  SHARD_ID_FIELD_NUMBER: builtins.int
746
- VECTORS_FIELD_NUMBER: builtins.int
747
- VECTORS_TO_DELETE_FIELD_NUMBER: builtins.int
748
707
  SECURITY_FIELD_NUMBER: builtins.int
749
708
  SKIP_TEXTS_FIELD_NUMBER: builtins.int
750
709
  SKIP_PARAGRAPHS_FIELD_NUMBER: builtins.int
@@ -780,14 +739,14 @@ class Resource(google.protobuf.message.Message):
780
739
  @property
781
740
  def paragraphs_to_delete(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
782
741
  @property
783
- def sentences_to_delete(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
784
- """DEPRECATED: replaced by vector_prefixes_to_delete in order to support
785
- updates on a subset of the available vectorsets
786
- """
742
+ def vectors_to_delete_in_all_vectorsets(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
743
+ """Delete in all vectorsets (e.g: resource deletion)"""
787
744
 
788
745
  @property
789
746
  def vector_prefixes_to_delete(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___StringList]:
790
- """vectorset_id -> [vector_key_prefix, ...]"""
747
+ """Delete in some vectorsets (e.g: updating some vectors)
748
+ vectorset_id -> [vector_key_prefix, ...]
749
+ """
791
750
 
792
751
  @property
793
752
  def relation_fields_to_delete(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
@@ -797,14 +756,6 @@ class Resource(google.protobuf.message.Message):
797
756
  def field_relations(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___IndexRelations]:
798
757
  """Relations"""
799
758
 
800
- @property
801
- def vectors(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, nucliadb_protos.utils_pb2.UserVectors]:
802
- """vectorset is the key"""
803
-
804
- @property
805
- def vectors_to_delete(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, nucliadb_protos.utils_pb2.UserVectorsList]:
806
- """Vectorset prefix vector id"""
807
-
808
759
  @property
809
760
  def security(self) -> nucliadb_protos.utils_pb2.Security: ...
810
761
  def __init__(
@@ -817,20 +768,18 @@ class Resource(google.protobuf.message.Message):
817
768
  status: global___Resource.ResourceStatus.ValueType = ...,
818
769
  paragraphs: collections.abc.Mapping[builtins.str, global___IndexParagraphs] | None = ...,
819
770
  paragraphs_to_delete: collections.abc.Iterable[builtins.str] | None = ...,
820
- sentences_to_delete: collections.abc.Iterable[builtins.str] | None = ...,
771
+ vectors_to_delete_in_all_vectorsets: collections.abc.Iterable[builtins.str] | None = ...,
821
772
  vector_prefixes_to_delete: collections.abc.Mapping[builtins.str, global___StringList] | None = ...,
822
773
  relation_fields_to_delete: collections.abc.Iterable[builtins.str] | None = ...,
823
774
  texts_to_delete: collections.abc.Iterable[builtins.str] | None = ...,
824
775
  field_relations: collections.abc.Mapping[builtins.str, global___IndexRelations] | None = ...,
825
776
  shard_id: builtins.str = ...,
826
- vectors: collections.abc.Mapping[builtins.str, nucliadb_protos.utils_pb2.UserVectors] | None = ...,
827
- vectors_to_delete: collections.abc.Mapping[builtins.str, nucliadb_protos.utils_pb2.UserVectorsList] | None = ...,
828
777
  security: nucliadb_protos.utils_pb2.Security | None = ...,
829
778
  skip_texts: builtins.bool = ...,
830
779
  skip_paragraphs: builtins.bool = ...,
831
780
  ) -> None: ...
832
781
  def HasField(self, field_name: typing.Literal["_security", b"_security", "metadata", b"metadata", "resource", b"resource", "security", b"security"]) -> builtins.bool: ...
833
- def ClearField(self, field_name: typing.Literal["_security", b"_security", "field_relations", b"field_relations", "labels", b"labels", "metadata", b"metadata", "paragraphs", b"paragraphs", "paragraphs_to_delete", b"paragraphs_to_delete", "relation_fields_to_delete", b"relation_fields_to_delete", "resource", b"resource", "security", b"security", "sentences_to_delete", b"sentences_to_delete", "shard_id", b"shard_id", "skip_paragraphs", b"skip_paragraphs", "skip_texts", b"skip_texts", "status", b"status", "texts", b"texts", "texts_to_delete", b"texts_to_delete", "vector_prefixes_to_delete", b"vector_prefixes_to_delete", "vectors", b"vectors", "vectors_to_delete", b"vectors_to_delete"]) -> None: ...
782
+ def ClearField(self, field_name: typing.Literal["_security", b"_security", "field_relations", b"field_relations", "labels", b"labels", "metadata", b"metadata", "paragraphs", b"paragraphs", "paragraphs_to_delete", b"paragraphs_to_delete", "relation_fields_to_delete", b"relation_fields_to_delete", "resource", b"resource", "security", b"security", "shard_id", b"shard_id", "skip_paragraphs", b"skip_paragraphs", "skip_texts", b"skip_texts", "status", b"status", "texts", b"texts", "texts_to_delete", b"texts_to_delete", "vector_prefixes_to_delete", b"vector_prefixes_to_delete", "vectors_to_delete_in_all_vectorsets", b"vectors_to_delete_in_all_vectorsets"]) -> None: ...
834
783
  def WhichOneof(self, oneof_group: typing.Literal["_security", b"_security"]) -> typing.Literal["security"] | None: ...
835
784
 
836
785
  global___Resource = Resource
@@ -840,16 +789,13 @@ class ShardMetadata(google.protobuf.message.Message):
840
789
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
841
790
 
842
791
  KBID_FIELD_NUMBER: builtins.int
843
- RELEASE_CHANNEL_FIELD_NUMBER: builtins.int
844
792
  kbid: builtins.str
845
- release_channel: nucliadb_protos.utils_pb2.ReleaseChannel.ValueType
846
793
  def __init__(
847
794
  self,
848
795
  *,
849
796
  kbid: builtins.str = ...,
850
- release_channel: nucliadb_protos.utils_pb2.ReleaseChannel.ValueType = ...,
851
797
  ) -> None: ...
852
- def ClearField(self, field_name: typing.Literal["kbid", b"kbid", "release_channel", b"release_channel"]) -> None: ...
798
+ def ClearField(self, field_name: typing.Literal["kbid", b"kbid"]) -> None: ...
853
799
 
854
800
  global___ShardMetadata = ShardMetadata
855
801
 
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: nidx_protos/nodewriter.proto
5
- # Protobuf Python Version: 5.29.0
5
+ # Protobuf Python Version: 6.31.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 5,
15
- 29,
16
- 0,
14
+ 6,
15
+ 31,
16
+ 1,
17
17
  '',
18
18
  'nidx_protos/nodewriter.proto'
19
19
  )
@@ -30,51 +30,33 @@ except AttributeError:
30
30
 
31
31
  from nidx_protos.noderesources_pb2 import *
32
32
 
33
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cnidx_protos/nodewriter.proto\x12\nnodewriter\x1a\x1fnidx_protos/noderesources.proto\"\xd9\x01\n\x08OpStatus\x12+\n\x06status\x18\x01 \x01(\x0e\x32\x1b.nodewriter.OpStatus.Status\x12\x0e\n\x06\x64\x65tail\x18\x02 \x01(\t\x12\x17\n\x0b\x66ield_count\x18\x03 \x01(\x04\x42\x02\x18\x01\x12\x1b\n\x0fparagraph_count\x18\x05 \x01(\x04\x42\x02\x18\x01\x12\x1a\n\x0esentence_count\x18\x06 \x01(\x04\x42\x02\x18\x01\x12\x14\n\x08shard_id\x18\x04 \x01(\tB\x02\x18\x01\"(\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\x0b\n\x07WARNING\x10\x01\x12\t\n\x05\x45RROR\x10\x02\"\x86\x02\n\x0cIndexMessage\x12\x0c\n\x04node\x18\x01 \x01(\t\x12\r\n\x05shard\x18\x02 \x01(\t\x12\x0c\n\x04txid\x18\x03 \x01(\x04\x12\x10\n\x08resource\x18\x04 \x01(\t\x12,\n\x0btypemessage\x18\x05 \x01(\x0e\x32\x17.nodewriter.TypeMessage\x12\x12\n\nreindex_id\x18\x06 \x01(\t\x12\x16\n\tpartition\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x0bstorage_key\x18\x08 \x01(\t\x12\x0c\n\x04kbid\x18\t \x01(\t\x12.\n\x06source\x18\n \x01(\x0e\x32\x1e.nodewriter.IndexMessageSourceB\x0c\n\n_partition\"\xbc\x01\n\x11VectorIndexConfig\x12+\n\nsimilarity\x18\x01 \x01(\x0e\x32\x17.utils.VectorSimilarity\x12\x19\n\x11normalize_vectors\x18\x02 \x01(\x08\x12+\n\x0bvector_type\x18\x03 \x01(\x0e\x32\x16.nodewriter.VectorType\x12\x1d\n\x10vector_dimension\x18\x04 \x01(\rH\x00\x88\x01\x01\x42\x13\n\x11_vector_dimension\"\xfb\x02\n\x0fNewShardRequest\x12/\n\nsimilarity\x18\x01 \x01(\x0e\x32\x17.utils.VectorSimilarityB\x02\x18\x01\x12\x0c\n\x04kbid\x18\x02 \x01(\t\x12.\n\x0frelease_channel\x18\x03 \x01(\x0e\x32\x15.utils.ReleaseChannel\x12\x1d\n\x11normalize_vectors\x18\x04 \x01(\x08\x42\x02\x18\x01\x12\x31\n\x06\x63onfig\x18\x05 \x01(\x0b\x32\x1d.nodewriter.VectorIndexConfigB\x02\x18\x01\x12N\n\x12vectorsets_configs\x18\x06 \x03(\x0b\x32\x32.nodewriter.NewShardRequest.VectorsetsConfigsEntry\x1aW\n\x16VectorsetsConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.nodewriter.VectorIndexConfig:\x02\x38\x01\"\xbc\x01\n\x13NewVectorSetRequest\x12&\n\x02id\x18\x01 \x01(\x0b\x32\x1a.noderesources.VectorSetID\x12/\n\nsimilarity\x18\x02 \x01(\x0e\x32\x17.utils.VectorSimilarityB\x02\x18\x01\x12\x1d\n\x11normalize_vectors\x18\x03 \x01(\x08\x42\x02\x18\x01\x12-\n\x06\x63onfig\x18\x04 \x01(\x0b\x32\x1d.nodewriter.VectorIndexConfig*)\n\x0bTypeMessage\x12\x0c\n\x08\x43REATION\x10\x00\x12\x0c\n\x08\x44\x45LETION\x10\x01*/\n\x12IndexMessageSource\x12\r\n\tPROCESSOR\x10\x00\x12\n\n\x06WRITER\x10\x01*\x1b\n\nVectorType\x12\r\n\tDENSE_F32\x10\x00P\x00\x62\x06proto3')
33
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cnidx_protos/nodewriter.proto\x12\nnodewriter\x1a\x1fnidx_protos/noderesources.proto\"\x89\x01\n\x08OpStatus\x12+\n\x06status\x18\x01 \x01(\x0e\x32\x1b.nodewriter.OpStatus.Status\x12\x0e\n\x06\x64\x65tail\x18\x02 \x01(\t\"(\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\x0b\n\x07WARNING\x10\x01\x12\t\n\x05\x45RROR\x10\x02J\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05J\x04\x08\x05\x10\x06J\x04\x08\x06\x10\x07\"\x86\x02\n\x0cIndexMessage\x12\x0c\n\x04node\x18\x01 \x01(\t\x12\r\n\x05shard\x18\x02 \x01(\t\x12\x0c\n\x04txid\x18\x03 \x01(\x04\x12\x10\n\x08resource\x18\x04 \x01(\t\x12,\n\x0btypemessage\x18\x05 \x01(\x0e\x32\x17.nodewriter.TypeMessage\x12\x12\n\nreindex_id\x18\x06 \x01(\t\x12\x16\n\tpartition\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x0bstorage_key\x18\x08 \x01(\t\x12\x0c\n\x04kbid\x18\t \x01(\t\x12.\n\x06source\x18\n \x01(\x0e\x32\x1e.nodewriter.IndexMessageSourceB\x0c\n\n_partition\"\xbc\x01\n\x11VectorIndexConfig\x12+\n\nsimilarity\x18\x01 \x01(\x0e\x32\x17.utils.VectorSimilarity\x12\x19\n\x11normalize_vectors\x18\x02 \x01(\x08\x12+\n\x0bvector_type\x18\x03 \x01(\x0e\x32\x16.nodewriter.VectorType\x12\x1d\n\x10vector_dimension\x18\x04 \x01(\rH\x00\x88\x01\x01\x42\x13\n\x11_vector_dimension\"\xf9\x01\n\x0fNewShardRequest\x12\x0c\n\x04kbid\x18\x02 \x01(\t\x12N\n\x12vectorsets_configs\x18\x06 \x03(\x0b\x32\x32.nodewriter.NewShardRequest.VectorsetsConfigsEntry\x12\x17\n\x0fprewarm_enabled\x18\x07 \x01(\x08\x1aW\n\x16VectorsetsConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.nodewriter.VectorIndexConfig:\x02\x38\x01J\x04\x08\x01\x10\x02J\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05J\x04\x08\x05\x10\x06\"x\n\x13NewVectorSetRequest\x12&\n\x02id\x18\x01 \x01(\x0b\x32\x1a.noderesources.VectorSetID\x12-\n\x06\x63onfig\x18\x04 \x01(\x0b\x32\x1d.nodewriter.VectorIndexConfigJ\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04*)\n\x0bTypeMessage\x12\x0c\n\x08\x43REATION\x10\x00\x12\x0c\n\x08\x44\x45LETION\x10\x01*/\n\x12IndexMessageSource\x12\r\n\tPROCESSOR\x10\x00\x12\n\n\x06WRITER\x10\x01*\x1b\n\nVectorType\x12\r\n\tDENSE_F32\x10\x00P\x00\x62\x06proto3')
34
34
 
35
35
  _globals = globals()
36
36
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
37
37
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidx_protos.nodewriter_pb2', _globals)
38
38
  if not _descriptor._USE_C_DESCRIPTORS:
39
39
  DESCRIPTOR._loaded_options = None
40
- _globals['_OPSTATUS'].fields_by_name['field_count']._loaded_options = None
41
- _globals['_OPSTATUS'].fields_by_name['field_count']._serialized_options = b'\030\001'
42
- _globals['_OPSTATUS'].fields_by_name['paragraph_count']._loaded_options = None
43
- _globals['_OPSTATUS'].fields_by_name['paragraph_count']._serialized_options = b'\030\001'
44
- _globals['_OPSTATUS'].fields_by_name['sentence_count']._loaded_options = None
45
- _globals['_OPSTATUS'].fields_by_name['sentence_count']._serialized_options = b'\030\001'
46
- _globals['_OPSTATUS'].fields_by_name['shard_id']._loaded_options = None
47
- _globals['_OPSTATUS'].fields_by_name['shard_id']._serialized_options = b'\030\001'
48
40
  _globals['_NEWSHARDREQUEST_VECTORSETSCONFIGSENTRY']._loaded_options = None
49
41
  _globals['_NEWSHARDREQUEST_VECTORSETSCONFIGSENTRY']._serialized_options = b'8\001'
50
- _globals['_NEWSHARDREQUEST'].fields_by_name['similarity']._loaded_options = None
51
- _globals['_NEWSHARDREQUEST'].fields_by_name['similarity']._serialized_options = b'\030\001'
52
- _globals['_NEWSHARDREQUEST'].fields_by_name['normalize_vectors']._loaded_options = None
53
- _globals['_NEWSHARDREQUEST'].fields_by_name['normalize_vectors']._serialized_options = b'\030\001'
54
- _globals['_NEWSHARDREQUEST'].fields_by_name['config']._loaded_options = None
55
- _globals['_NEWSHARDREQUEST'].fields_by_name['config']._serialized_options = b'\030\001'
56
- _globals['_NEWVECTORSETREQUEST'].fields_by_name['similarity']._loaded_options = None
57
- _globals['_NEWVECTORSETREQUEST'].fields_by_name['similarity']._serialized_options = b'\030\001'
58
- _globals['_NEWVECTORSETREQUEST'].fields_by_name['normalize_vectors']._loaded_options = None
59
- _globals['_NEWVECTORSETREQUEST'].fields_by_name['normalize_vectors']._serialized_options = b'\030\001'
60
- _globals['_TYPEMESSAGE']._serialized_start=1326
61
- _globals['_TYPEMESSAGE']._serialized_end=1367
62
- _globals['_INDEXMESSAGESOURCE']._serialized_start=1369
63
- _globals['_INDEXMESSAGESOURCE']._serialized_end=1416
64
- _globals['_VECTORTYPE']._serialized_start=1418
65
- _globals['_VECTORTYPE']._serialized_end=1445
42
+ _globals['_TYPEMESSAGE']._serialized_start=1047
43
+ _globals['_TYPEMESSAGE']._serialized_end=1088
44
+ _globals['_INDEXMESSAGESOURCE']._serialized_start=1090
45
+ _globals['_INDEXMESSAGESOURCE']._serialized_end=1137
46
+ _globals['_VECTORTYPE']._serialized_start=1139
47
+ _globals['_VECTORTYPE']._serialized_end=1166
66
48
  _globals['_OPSTATUS']._serialized_start=78
67
- _globals['_OPSTATUS']._serialized_end=295
68
- _globals['_OPSTATUS_STATUS']._serialized_start=255
69
- _globals['_OPSTATUS_STATUS']._serialized_end=295
70
- _globals['_INDEXMESSAGE']._serialized_start=298
71
- _globals['_INDEXMESSAGE']._serialized_end=560
72
- _globals['_VECTORINDEXCONFIG']._serialized_start=563
73
- _globals['_VECTORINDEXCONFIG']._serialized_end=751
74
- _globals['_NEWSHARDREQUEST']._serialized_start=754
75
- _globals['_NEWSHARDREQUEST']._serialized_end=1133
76
- _globals['_NEWSHARDREQUEST_VECTORSETSCONFIGSENTRY']._serialized_start=1046
77
- _globals['_NEWSHARDREQUEST_VECTORSETSCONFIGSENTRY']._serialized_end=1133
78
- _globals['_NEWVECTORSETREQUEST']._serialized_start=1136
79
- _globals['_NEWVECTORSETREQUEST']._serialized_end=1324
49
+ _globals['_OPSTATUS']._serialized_end=215
50
+ _globals['_OPSTATUS_STATUS']._serialized_start=151
51
+ _globals['_OPSTATUS_STATUS']._serialized_end=191
52
+ _globals['_INDEXMESSAGE']._serialized_start=218
53
+ _globals['_INDEXMESSAGE']._serialized_end=480
54
+ _globals['_VECTORINDEXCONFIG']._serialized_start=483
55
+ _globals['_VECTORINDEXCONFIG']._serialized_end=671
56
+ _globals['_NEWSHARDREQUEST']._serialized_start=674
57
+ _globals['_NEWSHARDREQUEST']._serialized_end=923
58
+ _globals['_NEWSHARDREQUEST_VECTORSETSCONFIGSENTRY']._serialized_start=812
59
+ _globals['_NEWSHARDREQUEST_VECTORSETSCONFIGSENTRY']._serialized_end=899
60
+ _globals['_NEWVECTORSETREQUEST']._serialized_start=925
61
+ _globals['_NEWVECTORSETREQUEST']._serialized_end=1045
80
62
  # @@protoc_insertion_point(module_scope)
@@ -111,27 +111,15 @@ class OpStatus(google.protobuf.message.Message):
111
111
 
112
112
  STATUS_FIELD_NUMBER: builtins.int
113
113
  DETAIL_FIELD_NUMBER: builtins.int
114
- FIELD_COUNT_FIELD_NUMBER: builtins.int
115
- PARAGRAPH_COUNT_FIELD_NUMBER: builtins.int
116
- SENTENCE_COUNT_FIELD_NUMBER: builtins.int
117
- SHARD_ID_FIELD_NUMBER: builtins.int
118
114
  status: global___OpStatus.Status.ValueType
119
115
  detail: builtins.str
120
- field_count: builtins.int
121
- paragraph_count: builtins.int
122
- sentence_count: builtins.int
123
- shard_id: builtins.str
124
116
  def __init__(
125
117
  self,
126
118
  *,
127
119
  status: global___OpStatus.Status.ValueType = ...,
128
120
  detail: builtins.str = ...,
129
- field_count: builtins.int = ...,
130
- paragraph_count: builtins.int = ...,
131
- sentence_count: builtins.int = ...,
132
- shard_id: builtins.str = ...,
133
121
  ) -> None: ...
134
- def ClearField(self, field_name: typing.Literal["detail", b"detail", "field_count", b"field_count", "paragraph_count", b"paragraph_count", "sentence_count", b"sentence_count", "shard_id", b"shard_id", "status", b"status"]) -> None: ...
122
+ def ClearField(self, field_name: typing.Literal["detail", b"detail", "status", b"status"]) -> None: ...
135
123
 
136
124
  global___OpStatus = OpStatus
137
125
 
@@ -228,33 +216,21 @@ class NewShardRequest(google.protobuf.message.Message):
228
216
  def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
229
217
  def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
230
218
 
231
- SIMILARITY_FIELD_NUMBER: builtins.int
232
219
  KBID_FIELD_NUMBER: builtins.int
233
- RELEASE_CHANNEL_FIELD_NUMBER: builtins.int
234
- NORMALIZE_VECTORS_FIELD_NUMBER: builtins.int
235
- CONFIG_FIELD_NUMBER: builtins.int
236
220
  VECTORSETS_CONFIGS_FIELD_NUMBER: builtins.int
237
- similarity: nucliadb_protos.utils_pb2.VectorSimilarity.ValueType
221
+ PREWARM_ENABLED_FIELD_NUMBER: builtins.int
238
222
  kbid: builtins.str
239
- release_channel: nucliadb_protos.utils_pb2.ReleaseChannel.ValueType
240
- normalize_vectors: builtins.bool
241
- """indicates whether the shard should normalize vectors on indexing or not"""
242
- @property
243
- def config(self) -> global___VectorIndexConfig: ...
223
+ prewarm_enabled: builtins.bool
244
224
  @property
245
225
  def vectorsets_configs(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___VectorIndexConfig]: ...
246
226
  def __init__(
247
227
  self,
248
228
  *,
249
- similarity: nucliadb_protos.utils_pb2.VectorSimilarity.ValueType = ...,
250
229
  kbid: builtins.str = ...,
251
- release_channel: nucliadb_protos.utils_pb2.ReleaseChannel.ValueType = ...,
252
- normalize_vectors: builtins.bool = ...,
253
- config: global___VectorIndexConfig | None = ...,
254
230
  vectorsets_configs: collections.abc.Mapping[builtins.str, global___VectorIndexConfig] | None = ...,
231
+ prewarm_enabled: builtins.bool = ...,
255
232
  ) -> None: ...
256
- def HasField(self, field_name: typing.Literal["config", b"config"]) -> builtins.bool: ...
257
- def ClearField(self, field_name: typing.Literal["config", b"config", "kbid", b"kbid", "normalize_vectors", b"normalize_vectors", "release_channel", b"release_channel", "similarity", b"similarity", "vectorsets_configs", b"vectorsets_configs"]) -> None: ...
233
+ def ClearField(self, field_name: typing.Literal["kbid", b"kbid", "prewarm_enabled", b"prewarm_enabled", "vectorsets_configs", b"vectorsets_configs"]) -> None: ...
258
234
 
259
235
  global___NewShardRequest = NewShardRequest
260
236
 
@@ -263,11 +239,7 @@ class NewVectorSetRequest(google.protobuf.message.Message):
263
239
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
264
240
 
265
241
  ID_FIELD_NUMBER: builtins.int
266
- SIMILARITY_FIELD_NUMBER: builtins.int
267
- NORMALIZE_VECTORS_FIELD_NUMBER: builtins.int
268
242
  CONFIG_FIELD_NUMBER: builtins.int
269
- similarity: nucliadb_protos.utils_pb2.VectorSimilarity.ValueType
270
- normalize_vectors: builtins.bool
271
243
  @property
272
244
  def id(self) -> nidx_protos.noderesources_pb2.VectorSetID: ...
273
245
  @property
@@ -276,11 +248,9 @@ class NewVectorSetRequest(google.protobuf.message.Message):
276
248
  self,
277
249
  *,
278
250
  id: nidx_protos.noderesources_pb2.VectorSetID | None = ...,
279
- similarity: nucliadb_protos.utils_pb2.VectorSimilarity.ValueType = ...,
280
- normalize_vectors: builtins.bool = ...,
281
251
  config: global___VectorIndexConfig | None = ...,
282
252
  ) -> None: ...
283
253
  def HasField(self, field_name: typing.Literal["config", b"config", "id", b"id"]) -> builtins.bool: ...
284
- def ClearField(self, field_name: typing.Literal["config", b"config", "id", b"id", "normalize_vectors", b"normalize_vectors", "similarity", b"similarity"]) -> None: ...
254
+ def ClearField(self, field_name: typing.Literal["config", b"config", "id", b"id"]) -> None: ...
285
255
 
286
256
  global___NewVectorSetRequest = NewVectorSetRequest
@@ -1,12 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nidx_protos
3
- Version: 6.9.1.post5161
3
+ Version: 6.9.7.post5555
4
4
  Summary: Protobuf definitions for nucliadb/nidx
5
5
  Author-Email: Nuclia <nucliadb@nuclia.com>
6
6
  License-Expression: AGPL-3.0-or-later
7
7
  Classifier: Development Status :: 4 - Beta
8
8
  Classifier: Programming Language :: Python
9
- Classifier: Programming Language :: Python :: 3.9
10
9
  Classifier: Programming Language :: Python :: 3.10
11
10
  Classifier: Programming Language :: Python :: 3.11
12
11
  Classifier: Programming Language :: Python :: 3.12
@@ -14,5 +13,8 @@ Classifier: Programming Language :: Python :: 3 :: Only
14
13
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
15
14
  Project-URL: Homepage, https://nuclia.com
16
15
  Project-URL: Repository, https://github.com/nuclia/nucliadb
17
- Requires-Python: <4,>=3.9
16
+ Requires-Python: <4,>=3.10
17
+ Requires-Dist: protobuf<7.0.0,>=6.31.1
18
+ Provides-Extra: grpc
19
+ Requires-Dist: grpcio>=1.76.0; extra == "grpc"
18
20
 
@@ -0,0 +1,15 @@
1
+ .gitignore,sha256=zbyuFRBda3geYggTx5x-hodA1OnMU85vX8u8Ejh630s,2
2
+ nidx_protos-6.9.7.post5555.dist-info/METADATA,sha256=8ZCi5Rdw5MP0ZVSMrFsPGGjii0MyYXQLYQxjkyGGHa0,798
3
+ nidx_protos-6.9.7.post5555.dist-info/WHEEL,sha256=tsUv_t7BDeJeRHaSrczbGeuK-TtDpGsWi_JfpzD255I,90
4
+ nidx_protos-6.9.7.post5555.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
5
+ nidx_protos/nidx_pb2.py,sha256=HlgiGIeAE8oPZksy3DD3OWjDcxwhubCLLENuPfLrEqM,5145
6
+ nidx_protos/nidx_pb2.pyi,sha256=PBfwmt-_ox4zu1oURkAnELc8w4WPjSt4yJXL-_1JutI,3368
7
+ nidx_protos/nidx_pb2_grpc.py,sha256=--MhbAbsJLb6hZOyQ4yje4CzK-bbPS5JMg9ecIgeWFI,28353
8
+ nidx_protos/nodereader_pb2.py,sha256=YkyJnejcHBDN-jxF-FJzgW3wSAWiVEtLLqZ-m28Bh4g,20641
9
+ nidx_protos/nodereader_pb2.pyi,sha256=aj8Z-YHc9Q3ePaMD_qESSq1gg_WuJqcWbgdvs2PbnIo,61012
10
+ nidx_protos/noderesources_pb2.py,sha256=O9Ucg8i2CryfUIKDWbaePbEdK1-uHCx37hLO4FyBHq4,13423
11
+ nidx_protos/noderesources_pb2.pyi,sha256=QcsiV4aZ4huTZgvfVntV9lxLk0YEYax4oK6biRgp_r4,35326
12
+ nidx_protos/nodewriter_pb2.py,sha256=kq_8pkPQzEM68ldytycYj-UftX6nQaHxGJgxL-7xV04,4811
13
+ nidx_protos/nodewriter_pb2.pyi,sha256=6PxeOCwnZ0xqzLWgJVtZKUdoLsFJPZecjsQ99deJh54,10196
14
+ nidx_protos/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
+ nidx_protos-6.9.7.post5555.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: pdm-backend (2.4.5)
2
+ Generator: pdm-backend (2.4.6)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,15 +0,0 @@
1
- .gitignore,sha256=zbyuFRBda3geYggTx5x-hodA1OnMU85vX8u8Ejh630s,2
2
- nidx_protos-6.9.1.post5161.dist-info/METADATA,sha256=E_jbC3UnAwava1UvL86opSugFnOl_eTRkb9_y073chk,740
3
- nidx_protos-6.9.1.post5161.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
4
- nidx_protos-6.9.1.post5161.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
5
- nidx_protos/nidx_pb2.py,sha256=lE2FjO_kfv423SdMM_trdMENvHwJp2aNjpLqtsbuudI,4663
6
- nidx_protos/nidx_pb2.pyi,sha256=HwlwYPK99kq4OlTLD7yrqwfIeKEzMk7Qnml6hVpVCqk,1981
7
- nidx_protos/nidx_pb2_grpc.py,sha256=TSGgLLbejorhnhtM4XIUVaCUeeh5nZ-qL8B7NM0aOR8,26510
8
- nidx_protos/nodereader_pb2.py,sha256=1bPETL9rWGYgJEfn6bLnQ2Q45IQzOAy85g3PHxo6lF8,21097
9
- nidx_protos/nodereader_pb2.pyi,sha256=t8YKB0kn0PyrOBi7ZdNER0cs8tEq8KpGRuRTosZvwXE,61374
10
- nidx_protos/noderesources_pb2.py,sha256=Ckxv6d2GvIZi-X01KdaXPvpWz_ISeirE9rG76y0dzsg,14951
11
- nidx_protos/noderesources_pb2.pyi,sha256=FTNXlS_P9RNSb5ayNs7VZl1CKboK0o8tPA6wsYin6MQ,37796
12
- nidx_protos/nodewriter_pb2.py,sha256=5fXQgS4n4Euf8WgwcmwSkQcovtyew3Ak9xmLDu79muQ,6848
13
- nidx_protos/nodewriter_pb2.pyi,sha256=YHxHMA0qGa0suRKpSRpsKA5bb9QdOy-bGqY220hNyv4,12026
14
- nidx_protos/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- nidx_protos-6.9.1.post5161.dist-info/RECORD,,