nucliadb-protos 6.3.6.post4063__py3-none-any.whl → 6.10.0.post5705__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.

Potentially problematic release.


This version of nucliadb-protos might be problematic. Click here for more details.

Files changed (44) hide show
  1. .gitignore +1 -0
  2. build.py +56 -0
  3. nucliadb_protos/audit_pb2.py +43 -46
  4. nucliadb_protos/audit_pb2.pyi +64 -13
  5. nucliadb_protos/backups_pb2.py +13 -3
  6. nucliadb_protos/backups_pb2_grpc.py +20 -0
  7. nucliadb_protos/dataset_pb2.py +13 -3
  8. nucliadb_protos/dataset_pb2.pyi +3 -0
  9. nucliadb_protos/kb_usage_pb2.py +20 -10
  10. nucliadb_protos/kb_usage_pb2.pyi +2 -0
  11. nucliadb_protos/knowledgebox_pb2.py +116 -114
  12. nucliadb_protos/knowledgebox_pb2.pyi +49 -28
  13. nucliadb_protos/migrations_pb2.py +13 -3
  14. nucliadb_protos/resources_pb2.py +239 -219
  15. nucliadb_protos/resources_pb2.pyi +100 -15
  16. nucliadb_protos/standalone_pb2.py +13 -3
  17. nucliadb_protos/standalone_pb2_grpc.py +49 -8
  18. nucliadb_protos/train_pb2.py +18 -40
  19. nucliadb_protos/train_pb2.pyi +6 -8
  20. nucliadb_protos/train_pb2_grpc.py +133 -32
  21. nucliadb_protos/train_pb2_grpc.pyi +6 -8
  22. nucliadb_protos/utils_pb2.py +18 -10
  23. nucliadb_protos/utils_pb2.pyi +0 -15
  24. nucliadb_protos/writer_pb2.py +140 -176
  25. nucliadb_protos/writer_pb2.pyi +40 -311
  26. nucliadb_protos/writer_pb2_grpc.py +204 -185
  27. nucliadb_protos/writer_pb2_grpc.pyi +11 -99
  28. {nucliadb_protos-6.3.6.post4063.dist-info → nucliadb_protos-6.10.0.post5705.dist-info}/METADATA +10 -10
  29. nucliadb_protos-6.10.0.post5705.dist-info/RECORD +37 -0
  30. {nucliadb_protos-6.3.6.post4063.dist-info → nucliadb_protos-6.10.0.post5705.dist-info}/WHEEL +1 -2
  31. nucliadb_protos-6.10.0.post5705.dist-info/entry_points.txt +4 -0
  32. nucliadb_protos/__init__.py +0 -0
  33. nucliadb_protos/nodereader_pb2.py +0 -187
  34. nucliadb_protos/nodereader_pb2.pyi +0 -1715
  35. nucliadb_protos/nodereader_pb2_grpc.py +0 -438
  36. nucliadb_protos/nodereader_pb2_grpc.pyi +0 -288
  37. nucliadb_protos/noderesources_pb2.py +0 -145
  38. nucliadb_protos/noderesources_pb2.pyi +0 -993
  39. nucliadb_protos/nodewriter_pb2.py +0 -80
  40. nucliadb_protos/nodewriter_pb2.pyi +0 -348
  41. nucliadb_protos/nodewriter_pb2_grpc.py +0 -430
  42. nucliadb_protos/nodewriter_pb2_grpc.pyi +0 -256
  43. nucliadb_protos-6.3.6.post4063.dist-info/RECORD +0 -46
  44. nucliadb_protos-6.3.6.post4063.dist-info/top_level.txt +0 -1
.gitignore ADDED
@@ -0,0 +1 @@
1
+ *
build.py ADDED
@@ -0,0 +1,56 @@
1
+ # Copyright 2025 Bosutech XXI S.L.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+
16
+ from importlib import resources
17
+
18
+ from grpc_tools import protoc
19
+
20
+
21
+ def pdm_build_initialize(context):
22
+ build_dir = context.ensure_build_dir()
23
+
24
+ well_known_path = resources.files("grpc_tools") / "_proto"
25
+
26
+ # Compile protos
27
+ for proto, has_grpc in [
28
+ ("nucliadb_protos/utils.proto", False),
29
+ ("nucliadb_protos/resources.proto", False),
30
+ ("nucliadb_protos/knowledgebox.proto", False),
31
+ ("nucliadb_protos/audit.proto", False),
32
+ ("nucliadb_protos/backups.proto", True),
33
+ ("nucliadb_protos/writer.proto", True),
34
+ ("nucliadb_protos/train.proto", True),
35
+ ("nucliadb_protos/dataset.proto", False),
36
+ ("nucliadb_protos/migrations.proto", False),
37
+ ("nucliadb_protos/standalone.proto", True),
38
+ ("nucliadb_protos/kb_usage.proto", False),
39
+ ]:
40
+ command = [
41
+ "grpc_tools.protoc",
42
+ "--proto_path=..",
43
+ f"--proto_path={well_known_path}",
44
+ f"--python_out={build_dir}",
45
+ f"--mypy_out={build_dir}",
46
+ proto,
47
+ ]
48
+ if has_grpc:
49
+ command.append(f"--grpc_python_out={build_dir}")
50
+ command.append(f"--mypy_grpc_out={build_dir}")
51
+
52
+ if protoc.main(command) != 0:
53
+ raise Exception(f"error: {command} failed")
54
+
55
+ # Create py.typed to enable type checking
56
+ open(f"{build_dir}/nucliadb_protos/py.typed", "w")
@@ -1,31 +1,28 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
3
4
  # source: nucliadb_protos/audit.proto
4
- # Protobuf Python Version: 4.25.1
5
+ # Protobuf Python Version: 6.31.1
5
6
  """Generated protocol buffer code."""
6
7
  from google.protobuf import descriptor as _descriptor
7
8
  from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
8
10
  from google.protobuf import symbol_database as _symbol_database
9
11
  from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'nucliadb_protos/audit.proto'
19
+ )
10
20
  # @@protoc_insertion_point(imports)
11
21
 
12
22
  _sym_db = _symbol_database.Default()
13
23
 
14
24
 
15
25
  from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
16
- from nucliadb_protos import nodereader_pb2 as nucliadb__protos_dot_nodereader__pb2
17
- try:
18
- nucliadb__protos_dot_noderesources__pb2 = nucliadb__protos_dot_nodereader__pb2.nucliadb__protos_dot_noderesources__pb2
19
- except AttributeError:
20
- nucliadb__protos_dot_noderesources__pb2 = nucliadb__protos_dot_nodereader__pb2.nucliadb_protos.noderesources_pb2
21
- try:
22
- nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_nodereader__pb2.nucliadb__protos_dot_utils__pb2
23
- except AttributeError:
24
- nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_nodereader__pb2.nucliadb_protos.utils_pb2
25
- try:
26
- nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_nodereader__pb2.nucliadb__protos_dot_utils__pb2
27
- except AttributeError:
28
- nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_nodereader__pb2.nucliadb_protos.utils_pb2
29
26
  from nucliadb_protos import resources_pb2 as nucliadb__protos_dot_resources__pb2
30
27
  try:
31
28
  nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_resources__pb2.nucliadb__protos_dot_utils__pb2
@@ -33,45 +30,45 @@ except AttributeError:
33
30
  nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_resources__pb2.nucliadb_protos.utils_pb2
34
31
 
35
32
 
36
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bnucliadb_protos/audit.proto\x12\x05\x61udit\x1a\x1fgoogle/protobuf/timestamp.proto\x1a nucliadb_protos/nodereader.proto\x1a\x1fnucliadb_protos/resources.proto\"\xe4\x01\n\nAuditField\x12-\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x1d.audit.AuditField.FieldAction\x12\x0c\n\x04size\x18\x02 \x01(\x05\x12\x16\n\nsize_delta\x18\x03 \x01(\x05\x42\x02\x18\x01\x12\x10\n\x08\x66ield_id\x18\x04 \x01(\t\x12(\n\nfield_type\x18\x05 \x01(\x0e\x32\x14.resources.FieldType\x12\x10\n\x08\x66ilename\x18\x06 \x01(\t\"3\n\x0b\x46ieldAction\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x00\x12\x0c\n\x08MODIFIED\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\"4\n\x0e\x41uditKBCounter\x12\x12\n\nparagraphs\x18\x02 \x01(\x03\x12\x0e\n\x06\x66ields\x18\x03 \x01(\x03\"+\n\x0b\x43hatContext\x12\x0e\n\x06\x61uthor\x18\x01 \x01(\t\x12\x0c\n\x04text\x18\x02 \x01(\t\"7\n\x10RetrievedContext\x12\x15\n\rtext_block_id\x18\x01 \x01(\t\x12\x0c\n\x04text\x18\x02 \x01(\t\"\xd9\x02\n\tChatAudit\x12\x10\n\x08question\x18\x01 \x01(\t\x12\x13\n\x06\x61nswer\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1f\n\x12rephrased_question\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\'\n\x07\x63ontext\x18\x04 \x03(\x0b\x32\x12.audit.ChatContextB\x02\x18\x01\x12(\n\x0c\x63hat_context\x18\x06 \x03(\x0b\x32\x12.audit.ChatContext\x12\x32\n\x11retrieved_context\x18\x08 \x03(\x0b\x32\x17.audit.RetrievedContext\x12\x18\n\x0blearning_id\x18\x05 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x0bstatus_code\x18\t \x01(\x05\x12\x12\n\x05model\x18\n \x01(\tH\x03\x88\x01\x01\x42\t\n\x07_answerB\x15\n\x13_rephrased_questionB\x0e\n\x0c_learning_idB\x08\n\x06_model\"\xa3\x01\n\rFeedbackAudit\x12\x13\n\x0blearning_id\x18\x01 \x01(\t\x12\x0c\n\x04good\x18\x02 \x01(\x08\x12\x1d\n\x04task\x18\x03 \x01(\x0e\x32\x0f.audit.TaskType\x12\x15\n\x08\x66\x65\x65\x64\x62\x61\x63k\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rtext_block_id\x18\x05 \x01(\tH\x01\x88\x01\x01\x42\x0b\n\t_feedbackB\x10\n\x0e_text_block_id\"\x97\t\n\x0c\x41uditRequest\x12+\n\x04type\x18\x01 \x01(\x0e\x32\x1d.audit.AuditRequest.AuditType\x12\x0c\n\x04kbid\x18\x02 \x01(\t\x12\x0e\n\x06userid\x18\x04 \x01(\t\x12(\n\x04time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06\x66ields\x18\x06 \x03(\t\x12)\n\x06search\x18\x07 \x01(\x0b\x32\x19.nodereader.SearchRequest\x12\x12\n\x06timeit\x18\x08 \x01(\x02\x42\x02\x18\x01\x12\x0e\n\x06origin\x18\t \x01(\t\x12\x0b\n\x03rid\x18\n \x01(\t\x12\x0c\n\x04task\x18\x0b \x01(\t\x12\x11\n\tresources\x18\x0c \x01(\x05\x12*\n\x0e\x66ield_metadata\x18\r \x03(\x0b\x32\x12.resources.FieldID\x12\'\n\x0c\x66ields_audit\x18\x0e \x03(\x0b\x32\x11.audit.AuditField\x12&\n\x0b\x63lient_type\x18\x10 \x01(\x0e\x32\x11.audit.ClientType\x12\x10\n\x08trace_id\x18\x11 \x01(\t\x12)\n\nkb_counter\x18\x12 \x01(\x0b\x32\x15.audit.AuditKBCounter\x12\x1e\n\x04\x63hat\x18\x13 \x01(\x0b\x32\x10.audit.ChatAudit\x12\x0f\n\x07success\x18\x14 \x01(\x08\x12\x14\n\x0crequest_time\x18\x15 \x01(\x02\x12\x1b\n\x0eretrieval_time\x18\x16 \x01(\x02H\x00\x88\x01\x01\x12#\n\x16generative_answer_time\x18\x17 \x01(\x02H\x01\x88\x01\x01\x12/\n\"generative_answer_first_chunk_time\x18\x18 \x01(\x02H\x02\x88\x01\x01\x12\x1a\n\rrephrase_time\x18\x19 \x01(\x02H\x03\x88\x01\x01\x12&\n\x08\x66\x65\x65\x64\x62\x61\x63k\x18\x1a \x01(\x0b\x32\x14.audit.FeedbackAudit\x12\x19\n\x0cuser_request\x18\x1b \x01(\tH\x04\x88\x01\x01\x12\x1a\n\rprocessing_id\x18\x1c \x01(\tH\x05\x88\x01\x01\x12)\n\x1cretrieval_rephrased_question\x18\x1d \x01(\tH\x06\x88\x01\x01\"\xbf\x01\n\tAuditType\x12\x0b\n\x07VISITED\x10\x00\x12\x0c\n\x08MODIFIED\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\x12\x07\n\x03NEW\x10\x03\x12\x0b\n\x07STARTED\x10\x04\x12\x0b\n\x07STOPPED\x10\x05\x12\n\n\x06SEARCH\x10\x06\x12\r\n\tPROCESSED\x10\x07\x12\x12\n\nKB_DELETED\x10\x08\x1a\x02\x08\x01\x12\x0f\n\x07SUGGEST\x10\t\x1a\x02\x08\x01\x12\x0f\n\x07INDEXED\x10\n\x1a\x02\x08\x01\x12\x08\n\x04\x43HAT\x10\x0b\x12\x0c\n\x08\x46\x45\x45\x44\x42\x41\x43K\x10\x0c\x42\x11\n\x0f_retrieval_timeB\x19\n\x17_generative_answer_timeB%\n#_generative_answer_first_chunk_timeB\x10\n\x0e_rephrase_timeB\x0f\n\r_user_requestB\x10\n\x0e_processing_idB\x1f\n\x1d_retrieval_rephrased_question*\\\n\nClientType\x12\x07\n\x03\x41PI\x10\x00\x12\x07\n\x03WEB\x10\x01\x12\n\n\x06WIDGET\x10\x02\x12\x0b\n\x07\x44\x45SKTOP\x10\x03\x12\r\n\tDASHBOARD\x10\x04\x12\x14\n\x10\x43HROME_EXTENSION\x10\x05*\x14\n\x08TaskType\x12\x08\n\x04\x43HAT\x10\x00\x62\x06proto3')
33
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bnucliadb_protos/audit.proto\x12\x05\x61udit\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1fnucliadb_protos/resources.proto\"\xe4\x01\n\nAuditField\x12-\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x1d.audit.AuditField.FieldAction\x12\x0c\n\x04size\x18\x02 \x01(\x05\x12\x16\n\nsize_delta\x18\x03 \x01(\x05\x42\x02\x18\x01\x12\x10\n\x08\x66ield_id\x18\x04 \x01(\t\x12(\n\nfield_type\x18\x05 \x01(\x0e\x32\x14.resources.FieldType\x12\x10\n\x08\x66ilename\x18\x06 \x01(\t\"3\n\x0b\x46ieldAction\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x00\x12\x0c\n\x08MODIFIED\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\"4\n\x0e\x41uditKBCounter\x12\x12\n\nparagraphs\x18\x02 \x01(\x03\x12\x0e\n\x06\x66ields\x18\x03 \x01(\x03\"+\n\x0b\x43hatContext\x12\x0e\n\x06\x61uthor\x18\x01 \x01(\t\x12\x0c\n\x04text\x18\x02 \x01(\t\"7\n\x10RetrievedContext\x12\x15\n\rtext_block_id\x18\x01 \x01(\t\x12\x0c\n\x04text\x18\x02 \x01(\t\"\xdc\x02\n\tChatAudit\x12\x10\n\x08question\x18\x01 \x01(\t\x12\x13\n\x06\x61nswer\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1f\n\x12rephrased_question\x18\x03 \x01(\tH\x01\x88\x01\x01\x12(\n\x0c\x63hat_context\x18\x06 \x03(\x0b\x32\x12.audit.ChatContext\x12\x32\n\x11retrieved_context\x18\x08 \x03(\x0b\x32\x17.audit.RetrievedContext\x12\x18\n\x0blearning_id\x18\x05 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x0bstatus_code\x18\t \x01(\x05\x12\x12\n\x05model\x18\n \x01(\tH\x03\x88\x01\x01\x12\x16\n\treasoning\x18\x0b \x01(\tH\x04\x88\x01\x01\x42\t\n\x07_answerB\x15\n\x13_rephrased_questionB\x0e\n\x0c_learning_idB\x08\n\x06_modelB\x0c\n\n_reasoningJ\x04\x08\x04\x10\x05\"\xa3\x01\n\rFeedbackAudit\x12\x13\n\x0blearning_id\x18\x01 \x01(\t\x12\x0c\n\x04good\x18\x02 \x01(\x08\x12\x1d\n\x04task\x18\x03 \x01(\x0e\x32\x0f.audit.TaskType\x12\x15\n\x08\x66\x65\x65\x64\x62\x61\x63k\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rtext_block_id\x18\x05 \x01(\tH\x01\x88\x01\x01\x42\x0b\n\t_feedbackB\x10\n\x0e_text_block_id\"\xf5\t\n\x0c\x41uditRequest\x12+\n\x04type\x18\x01 \x01(\x0e\x32\x1d.audit.AuditRequest.AuditType\x12\x0c\n\x04kbid\x18\x02 \x01(\t\x12\x0e\n\x06userid\x18\x04 \x01(\t\x12(\n\x04time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06\x66ields\x18\x06 \x03(\t\x12)\n\x06search\x18\x07 \x01(\x0b\x32\x19.audit.AuditSearchRequest\x12\x12\n\x06timeit\x18\x08 \x01(\x02\x42\x02\x18\x01\x12\x0e\n\x06origin\x18\t \x01(\t\x12\x0b\n\x03rid\x18\n \x01(\t\x12\x0c\n\x04task\x18\x0b \x01(\t\x12\x11\n\tresources\x18\x0c \x01(\x05\x12*\n\x0e\x66ield_metadata\x18\r \x03(\x0b\x32\x12.resources.FieldID\x12\'\n\x0c\x66ields_audit\x18\x0e \x03(\x0b\x32\x11.audit.AuditField\x12&\n\x0b\x63lient_type\x18\x10 \x01(\x0e\x32\x11.audit.ClientType\x12\x10\n\x08trace_id\x18\x11 \x01(\t\x12)\n\nkb_counter\x18\x12 \x01(\x0b\x32\x15.audit.AuditKBCounter\x12\x1e\n\x04\x63hat\x18\x13 \x01(\x0b\x32\x10.audit.ChatAudit\x12\x0f\n\x07success\x18\x14 \x01(\x08\x12\x14\n\x0crequest_time\x18\x15 \x01(\x02\x12\x1b\n\x0eretrieval_time\x18\x16 \x01(\x02H\x00\x88\x01\x01\x12#\n\x16generative_answer_time\x18\x17 \x01(\x02H\x01\x88\x01\x01\x12/\n\"generative_answer_first_chunk_time\x18\x18 \x01(\x02H\x02\x88\x01\x01\x12\x1a\n\rrephrase_time\x18\x19 \x01(\x02H\x03\x88\x01\x01\x12&\n\x08\x66\x65\x65\x64\x62\x61\x63k\x18\x1a \x01(\x0b\x32\x14.audit.FeedbackAudit\x12\x19\n\x0cuser_request\x18\x1b \x01(\tH\x04\x88\x01\x01\x12\x1a\n\rprocessing_id\x18\x1c \x01(\tH\x05\x88\x01\x01\x12)\n\x1cretrieval_rephrased_question\x18\x1d \x01(\tH\x06\x88\x01\x01\x12\x32\n%generative_reasoning_first_chunk_time\x18\x1e \x01(\x02H\x07\x88\x01\x01\"\xbf\x01\n\tAuditType\x12\x0b\n\x07VISITED\x10\x00\x12\x0c\n\x08MODIFIED\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\x12\x07\n\x03NEW\x10\x03\x12\x0b\n\x07STARTED\x10\x04\x12\x0b\n\x07STOPPED\x10\x05\x12\n\n\x06SEARCH\x10\x06\x12\r\n\tPROCESSED\x10\x07\x12\x12\n\nKB_DELETED\x10\x08\x1a\x02\x08\x01\x12\x0f\n\x07SUGGEST\x10\t\x1a\x02\x08\x01\x12\x0f\n\x07INDEXED\x10\n\x1a\x02\x08\x01\x12\x08\n\x04\x43HAT\x10\x0b\x12\x0c\n\x08\x46\x45\x45\x44\x42\x41\x43K\x10\x0c\x42\x11\n\x0f_retrieval_timeB\x19\n\x17_generative_answer_timeB%\n#_generative_answer_first_chunk_timeB\x10\n\x0e_rephrase_timeB\x0f\n\r_user_requestB\x10\n\x0e_processing_idB\x1f\n\x1d_retrieval_rephrased_questionB(\n&_generative_reasoning_first_chunk_time\"\xc1\x02\n\x12\x41uditSearchRequest\x12\x0c\n\x04\x62ody\x18\x03 \x01(\t\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\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\x00\x88\x01\x01\x12\x13\n\x06\x66ilter\x18\x1e \x01(\tH\x01\x88\x01\x01\x42\x0b\n\t_securityB\t\n\x07_filterJ\x04\x08\x01\x10\x02J\x04\x08\x05\x10\x06J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08J\x04\x08\x0c\x10\rJ\x04\x08\r\x10\x0eJ\x04\x08\x0e\x10\x0fJ\x04\x08\x10\x10\x11J\x04\x08\x12\x10\x13J\x04\x08\x14\x10\x15J\x04\x08\x15\x10\x16J\x04\x08\x1a\x10\x1bJ\x04\x08\x1b\x10\x1cJ\x04\x08\x1c\x10\x1dJ\x04\x08\x1d\x10\x1e*\\\n\nClientType\x12\x07\n\x03\x41PI\x10\x00\x12\x07\n\x03WEB\x10\x01\x12\n\n\x06WIDGET\x10\x02\x12\x0b\n\x07\x44\x45SKTOP\x10\x03\x12\r\n\tDASHBOARD\x10\x04\x12\x14\n\x10\x43HROME_EXTENSION\x10\x05*\x14\n\x08TaskType\x12\x08\n\x04\x43HAT\x10\x00\x62\x06proto3')
37
34
 
38
35
  _globals = globals()
39
36
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
40
37
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.audit_pb2', _globals)
41
- if _descriptor._USE_C_DESCRIPTORS == False:
42
- DESCRIPTOR._options = None
43
- _globals['_AUDITFIELD'].fields_by_name['size_delta']._options = None
38
+ if not _descriptor._USE_C_DESCRIPTORS:
39
+ DESCRIPTOR._loaded_options = None
40
+ _globals['_AUDITFIELD'].fields_by_name['size_delta']._loaded_options = None
44
41
  _globals['_AUDITFIELD'].fields_by_name['size_delta']._serialized_options = b'\030\001'
45
- _globals['_CHATAUDIT'].fields_by_name['context']._options = None
46
- _globals['_CHATAUDIT'].fields_by_name['context']._serialized_options = b'\030\001'
47
- _globals['_AUDITREQUEST_AUDITTYPE'].values_by_name["KB_DELETED"]._options = None
42
+ _globals['_AUDITREQUEST_AUDITTYPE'].values_by_name["KB_DELETED"]._loaded_options = None
48
43
  _globals['_AUDITREQUEST_AUDITTYPE'].values_by_name["KB_DELETED"]._serialized_options = b'\010\001'
49
- _globals['_AUDITREQUEST_AUDITTYPE'].values_by_name["SUGGEST"]._options = None
44
+ _globals['_AUDITREQUEST_AUDITTYPE'].values_by_name["SUGGEST"]._loaded_options = None
50
45
  _globals['_AUDITREQUEST_AUDITTYPE'].values_by_name["SUGGEST"]._serialized_options = b'\010\001'
51
- _globals['_AUDITREQUEST_AUDITTYPE'].values_by_name["INDEXED"]._options = None
46
+ _globals['_AUDITREQUEST_AUDITTYPE'].values_by_name["INDEXED"]._loaded_options = None
52
47
  _globals['_AUDITREQUEST_AUDITTYPE'].values_by_name["INDEXED"]._serialized_options = b'\010\001'
53
- _globals['_AUDITREQUEST'].fields_by_name['timeit']._options = None
48
+ _globals['_AUDITREQUEST'].fields_by_name['timeit']._loaded_options = None
54
49
  _globals['_AUDITREQUEST'].fields_by_name['timeit']._serialized_options = b'\030\001'
55
- _globals['_CLIENTTYPE']._serialized_start=2217
56
- _globals['_CLIENTTYPE']._serialized_end=2309
57
- _globals['_TASKTYPE']._serialized_start=2311
58
- _globals['_TASKTYPE']._serialized_end=2331
59
- _globals['_AUDITFIELD']._serialized_start=139
60
- _globals['_AUDITFIELD']._serialized_end=367
61
- _globals['_AUDITFIELD_FIELDACTION']._serialized_start=316
62
- _globals['_AUDITFIELD_FIELDACTION']._serialized_end=367
63
- _globals['_AUDITKBCOUNTER']._serialized_start=369
64
- _globals['_AUDITKBCOUNTER']._serialized_end=421
65
- _globals['_CHATCONTEXT']._serialized_start=423
66
- _globals['_CHATCONTEXT']._serialized_end=466
67
- _globals['_RETRIEVEDCONTEXT']._serialized_start=468
68
- _globals['_RETRIEVEDCONTEXT']._serialized_end=523
69
- _globals['_CHATAUDIT']._serialized_start=526
70
- _globals['_CHATAUDIT']._serialized_end=871
71
- _globals['_FEEDBACKAUDIT']._serialized_start=874
72
- _globals['_FEEDBACKAUDIT']._serialized_end=1037
73
- _globals['_AUDITREQUEST']._serialized_start=1040
74
- _globals['_AUDITREQUEST']._serialized_end=2215
75
- _globals['_AUDITREQUEST_AUDITTYPE']._serialized_start=1853
76
- _globals['_AUDITREQUEST_AUDITTYPE']._serialized_end=2044
50
+ _globals['_CLIENTTYPE']._serialized_start=2604
51
+ _globals['_CLIENTTYPE']._serialized_end=2696
52
+ _globals['_TASKTYPE']._serialized_start=2698
53
+ _globals['_TASKTYPE']._serialized_end=2718
54
+ _globals['_AUDITFIELD']._serialized_start=105
55
+ _globals['_AUDITFIELD']._serialized_end=333
56
+ _globals['_AUDITFIELD_FIELDACTION']._serialized_start=282
57
+ _globals['_AUDITFIELD_FIELDACTION']._serialized_end=333
58
+ _globals['_AUDITKBCOUNTER']._serialized_start=335
59
+ _globals['_AUDITKBCOUNTER']._serialized_end=387
60
+ _globals['_CHATCONTEXT']._serialized_start=389
61
+ _globals['_CHATCONTEXT']._serialized_end=432
62
+ _globals['_RETRIEVEDCONTEXT']._serialized_start=434
63
+ _globals['_RETRIEVEDCONTEXT']._serialized_end=489
64
+ _globals['_CHATAUDIT']._serialized_start=492
65
+ _globals['_CHATAUDIT']._serialized_end=840
66
+ _globals['_FEEDBACKAUDIT']._serialized_start=843
67
+ _globals['_FEEDBACKAUDIT']._serialized_end=1006
68
+ _globals['_AUDITREQUEST']._serialized_start=1009
69
+ _globals['_AUDITREQUEST']._serialized_end=2278
70
+ _globals['_AUDITREQUEST_AUDITTYPE']._serialized_start=1874
71
+ _globals['_AUDITREQUEST_AUDITTYPE']._serialized_end=2065
72
+ _globals['_AUDITSEARCHREQUEST']._serialized_start=2281
73
+ _globals['_AUDITSEARCHREQUEST']._serialized_end=2602
77
74
  # @@protoc_insertion_point(module_scope)
@@ -10,8 +10,8 @@ import google.protobuf.internal.containers
10
10
  import google.protobuf.internal.enum_type_wrapper
11
11
  import google.protobuf.message
12
12
  import google.protobuf.timestamp_pb2
13
- import nucliadb_protos.nodereader_pb2
14
13
  import nucliadb_protos.resources_pb2
14
+ import nucliadb_protos.utils_pb2
15
15
  import sys
16
16
  import typing
17
17
 
@@ -165,22 +165,19 @@ class ChatAudit(google.protobuf.message.Message):
165
165
  QUESTION_FIELD_NUMBER: builtins.int
166
166
  ANSWER_FIELD_NUMBER: builtins.int
167
167
  REPHRASED_QUESTION_FIELD_NUMBER: builtins.int
168
- CONTEXT_FIELD_NUMBER: builtins.int
169
168
  CHAT_CONTEXT_FIELD_NUMBER: builtins.int
170
169
  RETRIEVED_CONTEXT_FIELD_NUMBER: builtins.int
171
170
  LEARNING_ID_FIELD_NUMBER: builtins.int
172
171
  STATUS_CODE_FIELD_NUMBER: builtins.int
173
172
  MODEL_FIELD_NUMBER: builtins.int
173
+ REASONING_FIELD_NUMBER: builtins.int
174
174
  question: builtins.str
175
175
  answer: builtins.str
176
176
  rephrased_question: builtins.str
177
177
  learning_id: builtins.str
178
178
  status_code: builtins.int
179
179
  model: builtins.str
180
- @property
181
- def context(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ChatContext]:
182
- """Conversation from chats"""
183
-
180
+ reasoning: builtins.str
184
181
  @property
185
182
  def chat_context(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ChatContext]:
186
183
  """context retrieved on the current ask"""
@@ -193,15 +190,15 @@ class ChatAudit(google.protobuf.message.Message):
193
190
  question: builtins.str = ...,
194
191
  answer: builtins.str | None = ...,
195
192
  rephrased_question: builtins.str | None = ...,
196
- context: collections.abc.Iterable[global___ChatContext] | None = ...,
197
193
  chat_context: collections.abc.Iterable[global___ChatContext] | None = ...,
198
194
  retrieved_context: collections.abc.Iterable[global___RetrievedContext] | None = ...,
199
195
  learning_id: builtins.str | None = ...,
200
196
  status_code: builtins.int = ...,
201
197
  model: builtins.str | None = ...,
198
+ reasoning: builtins.str | None = ...,
202
199
  ) -> None: ...
203
- def HasField(self, field_name: typing.Literal["_answer", b"_answer", "_learning_id", b"_learning_id", "_model", b"_model", "_rephrased_question", b"_rephrased_question", "answer", b"answer", "learning_id", b"learning_id", "model", b"model", "rephrased_question", b"rephrased_question"]) -> builtins.bool: ...
204
- def ClearField(self, field_name: typing.Literal["_answer", b"_answer", "_learning_id", b"_learning_id", "_model", b"_model", "_rephrased_question", b"_rephrased_question", "answer", b"answer", "chat_context", b"chat_context", "context", b"context", "learning_id", b"learning_id", "model", b"model", "question", b"question", "rephrased_question", b"rephrased_question", "retrieved_context", b"retrieved_context", "status_code", b"status_code"]) -> None: ...
200
+ def HasField(self, field_name: typing.Literal["_answer", b"_answer", "_learning_id", b"_learning_id", "_model", b"_model", "_reasoning", b"_reasoning", "_rephrased_question", b"_rephrased_question", "answer", b"answer", "learning_id", b"learning_id", "model", b"model", "reasoning", b"reasoning", "rephrased_question", b"rephrased_question"]) -> builtins.bool: ...
201
+ def ClearField(self, field_name: typing.Literal["_answer", b"_answer", "_learning_id", b"_learning_id", "_model", b"_model", "_reasoning", b"_reasoning", "_rephrased_question", b"_rephrased_question", "answer", b"answer", "chat_context", b"chat_context", "learning_id", b"learning_id", "model", b"model", "question", b"question", "reasoning", b"reasoning", "rephrased_question", b"rephrased_question", "retrieved_context", b"retrieved_context", "status_code", b"status_code"]) -> None: ...
205
202
  @typing.overload
206
203
  def WhichOneof(self, oneof_group: typing.Literal["_answer", b"_answer"]) -> typing.Literal["answer"] | None: ...
207
204
  @typing.overload
@@ -209,6 +206,8 @@ class ChatAudit(google.protobuf.message.Message):
209
206
  @typing.overload
210
207
  def WhichOneof(self, oneof_group: typing.Literal["_model", b"_model"]) -> typing.Literal["model"] | None: ...
211
208
  @typing.overload
209
+ def WhichOneof(self, oneof_group: typing.Literal["_reasoning", b"_reasoning"]) -> typing.Literal["reasoning"] | None: ...
210
+ @typing.overload
212
211
  def WhichOneof(self, oneof_group: typing.Literal["_rephrased_question", b"_rephrased_question"]) -> typing.Literal["rephrased_question"] | None: ...
213
212
 
214
213
  global___ChatAudit = ChatAudit
@@ -311,6 +310,7 @@ class AuditRequest(google.protobuf.message.Message):
311
310
  USER_REQUEST_FIELD_NUMBER: builtins.int
312
311
  PROCESSING_ID_FIELD_NUMBER: builtins.int
313
312
  RETRIEVAL_REPHRASED_QUESTION_FIELD_NUMBER: builtins.int
313
+ GENERATIVE_REASONING_FIRST_CHUNK_TIME_FIELD_NUMBER: builtins.int
314
314
  type: global___AuditRequest.AuditType.ValueType
315
315
  kbid: builtins.str
316
316
  userid: builtins.str
@@ -330,12 +330,13 @@ class AuditRequest(google.protobuf.message.Message):
330
330
  user_request: builtins.str
331
331
  processing_id: builtins.str
332
332
  retrieval_rephrased_question: builtins.str
333
+ generative_reasoning_first_chunk_time: builtins.float
333
334
  @property
334
335
  def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
335
336
  @property
336
337
  def fields(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
337
338
  @property
338
- def search(self) -> nucliadb_protos.nodereader_pb2.SearchRequest: ...
339
+ def search(self) -> global___AuditSearchRequest: ...
339
340
  @property
340
341
  def field_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nucliadb_protos.resources_pb2.FieldID]: ...
341
342
  @property
@@ -354,7 +355,7 @@ class AuditRequest(google.protobuf.message.Message):
354
355
  userid: builtins.str = ...,
355
356
  time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
356
357
  fields: collections.abc.Iterable[builtins.str] | None = ...,
357
- search: nucliadb_protos.nodereader_pb2.SearchRequest | None = ...,
358
+ search: global___AuditSearchRequest | None = ...,
358
359
  timeit: builtins.float = ...,
359
360
  origin: builtins.str = ...,
360
361
  rid: builtins.str = ...,
@@ -376,14 +377,17 @@ class AuditRequest(google.protobuf.message.Message):
376
377
  user_request: builtins.str | None = ...,
377
378
  processing_id: builtins.str | None = ...,
378
379
  retrieval_rephrased_question: builtins.str | None = ...,
380
+ generative_reasoning_first_chunk_time: builtins.float | None = ...,
379
381
  ) -> None: ...
380
- def HasField(self, field_name: typing.Literal["_generative_answer_first_chunk_time", b"_generative_answer_first_chunk_time", "_generative_answer_time", b"_generative_answer_time", "_processing_id", b"_processing_id", "_rephrase_time", b"_rephrase_time", "_retrieval_rephrased_question", b"_retrieval_rephrased_question", "_retrieval_time", b"_retrieval_time", "_user_request", b"_user_request", "chat", b"chat", "feedback", b"feedback", "generative_answer_first_chunk_time", b"generative_answer_first_chunk_time", "generative_answer_time", b"generative_answer_time", "kb_counter", b"kb_counter", "processing_id", b"processing_id", "rephrase_time", b"rephrase_time", "retrieval_rephrased_question", b"retrieval_rephrased_question", "retrieval_time", b"retrieval_time", "search", b"search", "time", b"time", "user_request", b"user_request"]) -> builtins.bool: ...
381
- def ClearField(self, field_name: typing.Literal["_generative_answer_first_chunk_time", b"_generative_answer_first_chunk_time", "_generative_answer_time", b"_generative_answer_time", "_processing_id", b"_processing_id", "_rephrase_time", b"_rephrase_time", "_retrieval_rephrased_question", b"_retrieval_rephrased_question", "_retrieval_time", b"_retrieval_time", "_user_request", b"_user_request", "chat", b"chat", "client_type", b"client_type", "feedback", b"feedback", "field_metadata", b"field_metadata", "fields", b"fields", "fields_audit", b"fields_audit", "generative_answer_first_chunk_time", b"generative_answer_first_chunk_time", "generative_answer_time", b"generative_answer_time", "kb_counter", b"kb_counter", "kbid", b"kbid", "origin", b"origin", "processing_id", b"processing_id", "rephrase_time", b"rephrase_time", "request_time", b"request_time", "resources", b"resources", "retrieval_rephrased_question", b"retrieval_rephrased_question", "retrieval_time", b"retrieval_time", "rid", b"rid", "search", b"search", "success", b"success", "task", b"task", "time", b"time", "timeit", b"timeit", "trace_id", b"trace_id", "type", b"type", "user_request", b"user_request", "userid", b"userid"]) -> None: ...
382
+ def HasField(self, field_name: typing.Literal["_generative_answer_first_chunk_time", b"_generative_answer_first_chunk_time", "_generative_answer_time", b"_generative_answer_time", "_generative_reasoning_first_chunk_time", b"_generative_reasoning_first_chunk_time", "_processing_id", b"_processing_id", "_rephrase_time", b"_rephrase_time", "_retrieval_rephrased_question", b"_retrieval_rephrased_question", "_retrieval_time", b"_retrieval_time", "_user_request", b"_user_request", "chat", b"chat", "feedback", b"feedback", "generative_answer_first_chunk_time", b"generative_answer_first_chunk_time", "generative_answer_time", b"generative_answer_time", "generative_reasoning_first_chunk_time", b"generative_reasoning_first_chunk_time", "kb_counter", b"kb_counter", "processing_id", b"processing_id", "rephrase_time", b"rephrase_time", "retrieval_rephrased_question", b"retrieval_rephrased_question", "retrieval_time", b"retrieval_time", "search", b"search", "time", b"time", "user_request", b"user_request"]) -> builtins.bool: ...
383
+ def ClearField(self, field_name: typing.Literal["_generative_answer_first_chunk_time", b"_generative_answer_first_chunk_time", "_generative_answer_time", b"_generative_answer_time", "_generative_reasoning_first_chunk_time", b"_generative_reasoning_first_chunk_time", "_processing_id", b"_processing_id", "_rephrase_time", b"_rephrase_time", "_retrieval_rephrased_question", b"_retrieval_rephrased_question", "_retrieval_time", b"_retrieval_time", "_user_request", b"_user_request", "chat", b"chat", "client_type", b"client_type", "feedback", b"feedback", "field_metadata", b"field_metadata", "fields", b"fields", "fields_audit", b"fields_audit", "generative_answer_first_chunk_time", b"generative_answer_first_chunk_time", "generative_answer_time", b"generative_answer_time", "generative_reasoning_first_chunk_time", b"generative_reasoning_first_chunk_time", "kb_counter", b"kb_counter", "kbid", b"kbid", "origin", b"origin", "processing_id", b"processing_id", "rephrase_time", b"rephrase_time", "request_time", b"request_time", "resources", b"resources", "retrieval_rephrased_question", b"retrieval_rephrased_question", "retrieval_time", b"retrieval_time", "rid", b"rid", "search", b"search", "success", b"success", "task", b"task", "time", b"time", "timeit", b"timeit", "trace_id", b"trace_id", "type", b"type", "user_request", b"user_request", "userid", b"userid"]) -> None: ...
382
384
  @typing.overload
383
385
  def WhichOneof(self, oneof_group: typing.Literal["_generative_answer_first_chunk_time", b"_generative_answer_first_chunk_time"]) -> typing.Literal["generative_answer_first_chunk_time"] | None: ...
384
386
  @typing.overload
385
387
  def WhichOneof(self, oneof_group: typing.Literal["_generative_answer_time", b"_generative_answer_time"]) -> typing.Literal["generative_answer_time"] | None: ...
386
388
  @typing.overload
389
+ def WhichOneof(self, oneof_group: typing.Literal["_generative_reasoning_first_chunk_time", b"_generative_reasoning_first_chunk_time"]) -> typing.Literal["generative_reasoning_first_chunk_time"] | None: ...
390
+ @typing.overload
387
391
  def WhichOneof(self, oneof_group: typing.Literal["_processing_id", b"_processing_id"]) -> typing.Literal["processing_id"] | None: ...
388
392
  @typing.overload
389
393
  def WhichOneof(self, oneof_group: typing.Literal["_rephrase_time", b"_rephrase_time"]) -> typing.Literal["rephrase_time"] | None: ...
@@ -395,3 +399,50 @@ class AuditRequest(google.protobuf.message.Message):
395
399
  def WhichOneof(self, oneof_group: typing.Literal["_user_request", b"_user_request"]) -> typing.Literal["user_request"] | None: ...
396
400
 
397
401
  global___AuditRequest = AuditRequest
402
+
403
+ @typing.final
404
+ class AuditSearchRequest(google.protobuf.message.Message):
405
+ """This message is a subset of the nidx SearchRequest with what we want to audit"""
406
+
407
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
408
+
409
+ BODY_FIELD_NUMBER: builtins.int
410
+ RESULT_PER_PAGE_FIELD_NUMBER: builtins.int
411
+ VECTOR_FIELD_NUMBER: builtins.int
412
+ VECTORSET_FIELD_NUMBER: builtins.int
413
+ MIN_SCORE_SEMANTIC_FIELD_NUMBER: builtins.int
414
+ MIN_SCORE_BM25_FIELD_NUMBER: builtins.int
415
+ SECURITY_FIELD_NUMBER: builtins.int
416
+ FILTER_FIELD_NUMBER: builtins.int
417
+ body: builtins.str
418
+ result_per_page: builtins.int
419
+ vectorset: builtins.str
420
+ min_score_semantic: builtins.float
421
+ min_score_bm25: builtins.float
422
+ filter: builtins.str
423
+ @property
424
+ def vector(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]:
425
+ """Embedded vector search."""
426
+
427
+ @property
428
+ def security(self) -> nucliadb_protos.utils_pb2.Security: ...
429
+ def __init__(
430
+ self,
431
+ *,
432
+ body: builtins.str = ...,
433
+ result_per_page: builtins.int = ...,
434
+ vector: collections.abc.Iterable[builtins.float] | None = ...,
435
+ vectorset: builtins.str = ...,
436
+ min_score_semantic: builtins.float = ...,
437
+ min_score_bm25: builtins.float = ...,
438
+ security: nucliadb_protos.utils_pb2.Security | None = ...,
439
+ filter: builtins.str | None = ...,
440
+ ) -> None: ...
441
+ def HasField(self, field_name: typing.Literal["_filter", b"_filter", "_security", b"_security", "filter", b"filter", "security", b"security"]) -> builtins.bool: ...
442
+ def ClearField(self, field_name: typing.Literal["_filter", b"_filter", "_security", b"_security", "body", b"body", "filter", b"filter", "min_score_bm25", b"min_score_bm25", "min_score_semantic", b"min_score_semantic", "result_per_page", b"result_per_page", "security", b"security", "vector", b"vector", "vectorset", b"vectorset"]) -> None: ...
443
+ @typing.overload
444
+ def WhichOneof(self, oneof_group: typing.Literal["_filter", b"_filter"]) -> typing.Literal["filter"] | None: ...
445
+ @typing.overload
446
+ def WhichOneof(self, oneof_group: typing.Literal["_security", b"_security"]) -> typing.Literal["security"] | None: ...
447
+
448
+ global___AuditSearchRequest = AuditSearchRequest
@@ -1,12 +1,22 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
3
4
  # source: nucliadb_protos/backups.proto
4
- # Protobuf Python Version: 4.25.1
5
+ # Protobuf Python Version: 6.31.1
5
6
  """Generated protocol buffer code."""
6
7
  from google.protobuf import descriptor as _descriptor
7
8
  from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
8
10
  from google.protobuf import symbol_database as _symbol_database
9
11
  from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'nucliadb_protos/backups.proto'
19
+ )
10
20
  # @@protoc_insertion_point(imports)
11
21
 
12
22
  _sym_db = _symbol_database.Default()
@@ -20,8 +30,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dnucliadb_proto
20
30
  _globals = globals()
21
31
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
22
32
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.backups_pb2', _globals)
23
- if _descriptor._USE_C_DESCRIPTORS == False:
24
- DESCRIPTOR._options = None
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ DESCRIPTOR._loaded_options = None
25
35
  _globals['_CREATEBACKUPREQUEST']._serialized_start=75
26
36
  _globals['_CREATEBACKUPREQUEST']._serialized_end=130
27
37
  _globals['_CREATEBACKUPRESPONSE']._serialized_start=132
@@ -1,4 +1,24 @@
1
1
  # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
2
  """Client and server classes corresponding to protobuf-defined services."""
3
3
  import grpc
4
+ import warnings
4
5
 
6
+
7
+ GRPC_GENERATED_VERSION = '1.76.0'
8
+ GRPC_VERSION = grpc.__version__
9
+ _version_not_supported = False
10
+
11
+ try:
12
+ from grpc._utilities import first_version_is_lower
13
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14
+ except ImportError:
15
+ _version_not_supported = True
16
+
17
+ if _version_not_supported:
18
+ raise RuntimeError(
19
+ f'The grpc package installed is at version {GRPC_VERSION},'
20
+ + ' but the generated code in nucliadb_protos/backups_pb2_grpc.py depends on'
21
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
22
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24
+ )
@@ -1,12 +1,22 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
3
4
  # source: nucliadb_protos/dataset.proto
4
- # Protobuf Python Version: 4.25.1
5
+ # Protobuf Python Version: 6.31.1
5
6
  """Generated protocol buffer code."""
6
7
  from google.protobuf import descriptor as _descriptor
7
8
  from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
8
10
  from google.protobuf import symbol_database as _symbol_database
9
11
  from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'nucliadb_protos/dataset.proto'
19
+ )
10
20
  # @@protoc_insertion_point(imports)
11
21
 
12
22
  _sym_db = _symbol_database.Default()
@@ -25,8 +35,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dnucliadb_proto
25
35
  _globals = globals()
26
36
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
27
37
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.dataset_pb2', _globals)
28
- if _descriptor._USE_C_DESCRIPTORS == False:
29
- DESCRIPTOR._options = None
38
+ if not _descriptor._USE_C_DESCRIPTORS:
39
+ DESCRIPTOR._loaded_options = None
30
40
  _globals['_TASKTYPE']._serialized_start=1870
31
41
  _globals['_TASKTYPE']._serialized_end=2094
32
42
  _globals['_LABELFROM']._serialized_start=2096
@@ -81,6 +81,9 @@ from nucliadb_protos.resources_pb2 import (
81
81
  Representation as Representation,
82
82
  RowsPreview as RowsPreview,
83
83
  Sentence as Sentence,
84
+ SplitMetadata as SplitMetadata,
85
+ SplitsMetadata as SplitsMetadata,
86
+ SyncMetadata as SyncMetadata,
84
87
  TEXT as TEXT,
85
88
  UserFieldMetadata as UserFieldMetadata,
86
89
  UserMetadata as UserMetadata,
@@ -1,12 +1,22 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
3
4
  # source: nucliadb_protos/kb_usage.proto
4
- # Protobuf Python Version: 4.25.1
5
+ # Protobuf Python Version: 6.31.1
5
6
  """Generated protocol buffer code."""
6
7
  from google.protobuf import descriptor as _descriptor
7
8
  from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
8
10
  from google.protobuf import symbol_database as _symbol_database
9
11
  from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'nucliadb_protos/kb_usage.proto'
19
+ )
10
20
  # @@protoc_insertion_point(imports)
11
21
 
12
22
  _sym_db = _symbol_database.Default()
@@ -15,14 +25,14 @@ _sym_db = _symbol_database.Default()
15
25
  from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
16
26
 
17
27
 
18
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1enucliadb_protos/kb_usage.proto\x12\x08kb_usage\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf2\x01\n\x07Process\x12$\n\x06\x63lient\x18\x01 \x01(\x0e\x32\x14.kb_usage.ClientType\x12\x1c\n\x14slow_processing_time\x18\x02 \x01(\x02\x12\x1b\n\x13pre_processing_time\x18\x03 \x01(\x02\x12\r\n\x05\x62ytes\x18\x04 \x01(\x04\x12\r\n\x05\x63hars\x18\x05 \x01(\r\x12\x15\n\rmedia_seconds\x18\x06 \x01(\r\x12\r\n\x05pages\x18\x07 \x01(\r\x12\x12\n\nparagraphs\x18\x08 \x01(\r\x12\x17\n\x0bmedia_files\x18\t \x01(\rB\x02\x18\x01\x12\x15\n\rnum_processed\x18\n \x01(\r\"\x95\x01\n\x07Storage\x12\x17\n\nparagraphs\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x13\n\x06\x66ields\x18\x02 \x01(\x04H\x01\x88\x01\x01\x12\x16\n\tresources\x18\x03 \x01(\x04H\x02\x88\x01\x01\x12\x12\n\x05\x62ytes\x18\x04 \x01(\x04H\x03\x88\x01\x01\x42\r\n\x0b_paragraphsB\t\n\x07_fieldsB\x0c\n\n_resourcesB\x08\n\x06_bytes\"x\n\x06Search\x12$\n\x06\x63lient\x18\x01 \x01(\x0e\x32\x14.kb_usage.ClientType\x12\"\n\x04type\x18\x02 \x01(\x0e\x32\x14.kb_usage.SearchType\x12\x0e\n\x06tokens\x18\x03 \x01(\r\x12\x14\n\x0cnum_searches\x18\x04 \x01(\r\"\xbd\x01\n\x07Predict\x12$\n\x06\x63lient\x18\x01 \x01(\x0e\x32\x14.kb_usage.ClientType\x12#\n\x04type\x18\x02 \x01(\x0e\x32\x15.kb_usage.PredictType\x12\r\n\x05model\x18\x03 \x01(\t\x12\r\n\x05input\x18\x04 \x01(\r\x12\x0e\n\x06output\x18\x05 \x01(\r\x12\r\n\x05image\x18\x06 \x01(\r\x12\x14\n\x0cnum_predicts\x18\x07 \x01(\r\x12\x14\n\x0c\x63ustomer_key\x18\x08 \x01(\x08\"L\n\x10\x41\x63tivityLogMatch\x12\n\n\x02id\x18\x01 \x01(\t\x12,\n\x04type\x18\x02 \x01(\x0e\x32\x1e.kb_usage.ActivityLogMatchType\"\xc1\x03\n\x07KbUsage\x12\"\n\x07service\x18\x01 \x01(\x0e\x32\x11.kb_usage.Service\x12-\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\naccount_id\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05kb_id\x18\x04 \x01(\tH\x01\x88\x01\x01\x12%\n\tkb_source\x18\x05 \x01(\x0e\x32\x12.kb_usage.KBSource\x12;\n\x12\x61\x63tivity_log_match\x18\n \x01(\x0b\x32\x1a.kb_usage.ActivityLogMatchH\x02\x88\x01\x01\x12$\n\tprocesses\x18\x06 \x03(\x0b\x32\x11.kb_usage.Process\x12#\n\x08predicts\x18\x07 \x03(\x0b\x32\x11.kb_usage.Predict\x12\"\n\x08searches\x18\x08 \x03(\x0b\x32\x10.kb_usage.Search\x12\'\n\x07storage\x18\t \x01(\x0b\x32\x11.kb_usage.StorageH\x03\x88\x01\x01\x42\r\n\x0b_account_idB\x08\n\x06_kb_idB\x15\n\x13_activity_log_matchB\n\n\x08_storage\"9\n\x11KbUsageAggregated\x12$\n\tkb_usages\x18\x01 \x03(\x0b\x32\x11.kb_usage.KbUsage*\"\n\x08KBSource\x12\n\n\x06HOSTED\x10\x00\x12\n\n\x06ONPREM\x10\x01*U\n\x07Service\x12\x0b\n\x07PREDICT\x10\x00\x12\x0e\n\nPROCESSING\x10\x01\x12\r\n\tNUCLIA_DB\x10\x02\x12\x08\n\x04TASK\x10\x03\x12\x14\n\x10PREDICT_INTERNAL\x10\x04*%\n\nSearchType\x12\n\n\x06SEARCH\x10\x00\x12\x0b\n\x07SUGGEST\x10\x01*\x99\x02\n\x0bPredictType\x12\x0c\n\x08SENTENCE\x10\x00\x12\t\n\x05TOKEN\x10\x01\x12\x13\n\x0fQUESTION_ANSWER\x10\x02\x12\x0c\n\x08REPHRASE\x10\x03\x12\x16\n\x12RETRIEVAL_REPHRASE\x10\x10\x12\r\n\tSUMMARIZE\x10\x04\x12\x12\n\x0e\x45XTRACT_TABLES\x10\x05\x12\n\n\x06RERANK\x10\x06\x12\r\n\tRELATIONS\x10\x07\x12\n\n\x06SPEECH\x10\x08\x12\x0b\n\x07\x43\x41PTION\x10\t\x12\r\n\tDA_LABELS\x10\n\x12\x0c\n\x08\x44\x41_GRAPH\x10\x0b\x12\n\n\x06\x44\x41_ASK\x10\x0c\x12\t\n\x05\x44\x41_QA\x10\r\x12\x0c\n\x08\x44\x41_GUARD\x10\x0e\x12\x08\n\x04REMI\x10\x0f\x12\x13\n\x0fVLLM_EXTRACTION\x10\x11*j\n\nClientType\x12\x07\n\x03\x41PI\x10\x00\x12\x07\n\x03WEB\x10\x01\x12\n\n\x06WIDGET\x10\x02\x12\x0b\n\x07\x44\x45SKTOP\x10\x03\x12\r\n\tDASHBOARD\x10\x04\x12\x14\n\x10\x43HROME_EXTENSION\x10\x05\x12\x0c\n\x08INTERNAL\x10\x06*L\n\x14\x41\x63tivityLogMatchType\x12\x0c\n\x08TRACE_ID\x10\x00\x12\x11\n\rPROCESSING_ID\x10\x01\x12\x13\n\x0f\x41\x43TIVITY_LOG_ID\x10\x02\x62\x06proto3')
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1enucliadb_protos/kb_usage.proto\x12\x08kb_usage\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf2\x01\n\x07Process\x12$\n\x06\x63lient\x18\x01 \x01(\x0e\x32\x14.kb_usage.ClientType\x12\x1c\n\x14slow_processing_time\x18\x02 \x01(\x02\x12\x1b\n\x13pre_processing_time\x18\x03 \x01(\x02\x12\r\n\x05\x62ytes\x18\x04 \x01(\x04\x12\r\n\x05\x63hars\x18\x05 \x01(\r\x12\x15\n\rmedia_seconds\x18\x06 \x01(\r\x12\r\n\x05pages\x18\x07 \x01(\r\x12\x12\n\nparagraphs\x18\x08 \x01(\r\x12\x17\n\x0bmedia_files\x18\t \x01(\rB\x02\x18\x01\x12\x15\n\rnum_processed\x18\n \x01(\r\"\x95\x01\n\x07Storage\x12\x17\n\nparagraphs\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x13\n\x06\x66ields\x18\x02 \x01(\x04H\x01\x88\x01\x01\x12\x16\n\tresources\x18\x03 \x01(\x04H\x02\x88\x01\x01\x12\x12\n\x05\x62ytes\x18\x04 \x01(\x04H\x03\x88\x01\x01\x42\r\n\x0b_paragraphsB\t\n\x07_fieldsB\x0c\n\n_resourcesB\x08\n\x06_bytes\"x\n\x06Search\x12$\n\x06\x63lient\x18\x01 \x01(\x0e\x32\x14.kb_usage.ClientType\x12\"\n\x04type\x18\x02 \x01(\x0e\x32\x14.kb_usage.SearchType\x12\x0e\n\x06tokens\x18\x03 \x01(\r\x12\x14\n\x0cnum_searches\x18\x04 \x01(\r\"\xbd\x01\n\x07Predict\x12$\n\x06\x63lient\x18\x01 \x01(\x0e\x32\x14.kb_usage.ClientType\x12#\n\x04type\x18\x02 \x01(\x0e\x32\x15.kb_usage.PredictType\x12\r\n\x05model\x18\x03 \x01(\t\x12\r\n\x05input\x18\x04 \x01(\r\x12\x0e\n\x06output\x18\x05 \x01(\r\x12\r\n\x05image\x18\x06 \x01(\r\x12\x14\n\x0cnum_predicts\x18\x07 \x01(\r\x12\x14\n\x0c\x63ustomer_key\x18\x08 \x01(\x08\"L\n\x10\x41\x63tivityLogMatch\x12\n\n\x02id\x18\x01 \x01(\t\x12,\n\x04type\x18\x02 \x01(\x0e\x32\x1e.kb_usage.ActivityLogMatchType\"\xc1\x03\n\x07KbUsage\x12\"\n\x07service\x18\x01 \x01(\x0e\x32\x11.kb_usage.Service\x12-\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\naccount_id\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05kb_id\x18\x04 \x01(\tH\x01\x88\x01\x01\x12%\n\tkb_source\x18\x05 \x01(\x0e\x32\x12.kb_usage.KBSource\x12;\n\x12\x61\x63tivity_log_match\x18\n \x01(\x0b\x32\x1a.kb_usage.ActivityLogMatchH\x02\x88\x01\x01\x12$\n\tprocesses\x18\x06 \x03(\x0b\x32\x11.kb_usage.Process\x12#\n\x08predicts\x18\x07 \x03(\x0b\x32\x11.kb_usage.Predict\x12\"\n\x08searches\x18\x08 \x03(\x0b\x32\x10.kb_usage.Search\x12\'\n\x07storage\x18\t \x01(\x0b\x32\x11.kb_usage.StorageH\x03\x88\x01\x01\x42\r\n\x0b_account_idB\x08\n\x06_kb_idB\x15\n\x13_activity_log_matchB\n\n\x08_storage\"9\n\x11KbUsageAggregated\x12$\n\tkb_usages\x18\x01 \x03(\x0b\x32\x11.kb_usage.KbUsage*\"\n\x08KBSource\x12\n\n\x06HOSTED\x10\x00\x12\n\n\x06ONPREM\x10\x01*U\n\x07Service\x12\x0b\n\x07PREDICT\x10\x00\x12\x0e\n\nPROCESSING\x10\x01\x12\r\n\tNUCLIA_DB\x10\x02\x12\x08\n\x04TASK\x10\x03\x12\x14\n\x10PREDICT_INTERNAL\x10\x04*%\n\nSearchType\x12\n\n\x06SEARCH\x10\x00\x12\x0b\n\x07SUGGEST\x10\x01*\xac\x02\n\x0bPredictType\x12\x0c\n\x08SENTENCE\x10\x00\x12\t\n\x05TOKEN\x10\x01\x12\x13\n\x0fQUESTION_ANSWER\x10\x02\x12\x0c\n\x08REPHRASE\x10\x03\x12\x16\n\x12RETRIEVAL_REPHRASE\x10\x10\x12\r\n\tSUMMARIZE\x10\x04\x12\x12\n\x0e\x45XTRACT_TABLES\x10\x05\x12\n\n\x06RERANK\x10\x06\x12\r\n\tRELATIONS\x10\x07\x12\n\n\x06SPEECH\x10\x08\x12\x0b\n\x07\x43\x41PTION\x10\t\x12\r\n\tDA_LABELS\x10\n\x12\x0c\n\x08\x44\x41_GRAPH\x10\x0b\x12\n\n\x06\x44\x41_ASK\x10\x0c\x12\t\n\x05\x44\x41_QA\x10\r\x12\x0c\n\x08\x44\x41_GUARD\x10\x0e\x12\x08\n\x04REMI\x10\x0f\x12\x13\n\x0fVLLM_EXTRACTION\x10\x11\x12\x11\n\rLLM_SPLITTING\x10\x12*j\n\nClientType\x12\x07\n\x03\x41PI\x10\x00\x12\x07\n\x03WEB\x10\x01\x12\n\n\x06WIDGET\x10\x02\x12\x0b\n\x07\x44\x45SKTOP\x10\x03\x12\r\n\tDASHBOARD\x10\x04\x12\x14\n\x10\x43HROME_EXTENSION\x10\x05\x12\x0c\n\x08INTERNAL\x10\x06*L\n\x14\x41\x63tivityLogMatchType\x12\x0c\n\x08TRACE_ID\x10\x00\x12\x11\n\rPROCESSING_ID\x10\x01\x12\x13\n\x0f\x41\x43TIVITY_LOG_ID\x10\x02\x62\x06proto3')
19
29
 
20
30
  _globals = globals()
21
31
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
22
32
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.kb_usage_pb2', _globals)
23
- if _descriptor._USE_C_DESCRIPTORS == False:
24
- DESCRIPTOR._options = None
25
- _globals['_PROCESS'].fields_by_name['media_files']._options = None
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ DESCRIPTOR._loaded_options = None
35
+ _globals['_PROCESS'].fields_by_name['media_files']._loaded_options = None
26
36
  _globals['_PROCESS'].fields_by_name['media_files']._serialized_options = b'\030\001'
27
37
  _globals['_KBSOURCE']._serialized_start=1377
28
38
  _globals['_KBSOURCE']._serialized_end=1411
@@ -31,11 +41,11 @@ if _descriptor._USE_C_DESCRIPTORS == False:
31
41
  _globals['_SEARCHTYPE']._serialized_start=1500
32
42
  _globals['_SEARCHTYPE']._serialized_end=1537
33
43
  _globals['_PREDICTTYPE']._serialized_start=1540
34
- _globals['_PREDICTTYPE']._serialized_end=1821
35
- _globals['_CLIENTTYPE']._serialized_start=1823
36
- _globals['_CLIENTTYPE']._serialized_end=1929
37
- _globals['_ACTIVITYLOGMATCHTYPE']._serialized_start=1931
38
- _globals['_ACTIVITYLOGMATCHTYPE']._serialized_end=2007
44
+ _globals['_PREDICTTYPE']._serialized_end=1840
45
+ _globals['_CLIENTTYPE']._serialized_start=1842
46
+ _globals['_CLIENTTYPE']._serialized_end=1948
47
+ _globals['_ACTIVITYLOGMATCHTYPE']._serialized_start=1950
48
+ _globals['_ACTIVITYLOGMATCHTYPE']._serialized_end=2026
39
49
  _globals['_PROCESS']._serialized_start=78
40
50
  _globals['_PROCESS']._serialized_end=320
41
51
  _globals['_STORAGE']._serialized_start=323
@@ -95,6 +95,7 @@ class _PredictTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._En
95
95
  DA_GUARD: _PredictType.ValueType # 14
96
96
  REMI: _PredictType.ValueType # 15
97
97
  VLLM_EXTRACTION: _PredictType.ValueType # 17
98
+ LLM_SPLITTING: _PredictType.ValueType # 18
98
99
 
99
100
  class PredictType(_PredictType, metaclass=_PredictTypeEnumTypeWrapper): ...
100
101
 
@@ -116,6 +117,7 @@ DA_QA: PredictType.ValueType # 13
116
117
  DA_GUARD: PredictType.ValueType # 14
117
118
  REMI: PredictType.ValueType # 15
118
119
  VLLM_EXTRACTION: PredictType.ValueType # 17
120
+ LLM_SPLITTING: PredictType.ValueType # 18
119
121
  global___PredictType = PredictType
120
122
 
121
123
  class _ClientType: