nucliadb 6.9.1.post5208__py3-none-any.whl → 6.9.1.post5229__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 might be problematic. Click here for more details.

@@ -161,6 +161,7 @@ class Rebalancer:
161
161
  Split chooses a >110% filled shard and reduces it to 100%
162
162
  If the shard is between 90% and 110% full, nobody touches it
163
163
  """
164
+ logger.info("Starting rebalance for kb", extra={"kbid", self.kbid})
164
165
  await self.build_shard_resources_index()
165
166
  while True:
166
167
  await self.wait_for_indexing()
@@ -179,6 +180,7 @@ class Rebalancer:
179
180
  await self.merge_shard(shard_to_merge, shards)
180
181
  else:
181
182
  break
183
+ logger.info("Finished rebalance for kb", extra={"kbid", self.kbid})
182
184
 
183
185
  async def split_shard(self, shard_to_split: RebalanceShard, shards: list[RebalanceShard]):
184
186
  logger.info(
@@ -47,10 +47,8 @@ from nucliadb_protos.resources_pb2 import (
47
47
  )
48
48
  from nucliadb_protos.utils_pb2 import ExtractedText, VectorObject
49
49
  from nucliadb_protos.writer_pb2 import Error, FieldStatus
50
- from nucliadb_utils import const
51
50
  from nucliadb_utils.storages.exceptions import CouldNotCopyNotFound
52
51
  from nucliadb_utils.storages.storage import Storage, StorageField
53
- from nucliadb_utils.utilities import has_feature
54
52
 
55
53
  logger = logging.getLogger(__name__)
56
54
 
@@ -224,21 +222,6 @@ class Field(Generic[PbType]):
224
222
  ) -> None:
225
223
  # Try delete vectors
226
224
  sf = self._get_extracted_vectors_storage_field(vectorset, storage_key_kind)
227
-
228
- if has_feature(const.Features.DEBUG_MISSING_VECTORS):
229
- # This is a very chatty log. It is just a temporary hint while debugging an issue.
230
- logger.info(
231
- "Deleting vectors from storage",
232
- extra={
233
- "kbid": self.kbid,
234
- "rid": self.resource.uuid,
235
- "field": f"{self.type}/{self.id}",
236
- "vectorset": vectorset,
237
- "storage_key_kind": storage_key_kind,
238
- "key": sf.key,
239
- "bucket": sf.bucket,
240
- },
241
- )
242
225
  try:
243
226
  await self.storage.delete_upload(sf.key, sf.bucket)
244
227
  except KeyError:
@@ -946,9 +946,14 @@ async def hierarchy_prompt_context(
946
946
  paragraph_id = ParagraphId.from_string(paragraph.id)
947
947
  extended_paragraph_text = paragraph.text
948
948
  if paragraphs_extra_characters > 0:
949
+ extended_paragraph_id = ParagraphId(
950
+ field_id=paragraph_id.field_id,
951
+ paragraph_start=paragraph_id.paragraph_start,
952
+ paragraph_end=paragraph_id.paragraph_end + paragraphs_extra_characters,
953
+ )
949
954
  extended_paragraph_text = await get_paragraph_text(
950
955
  kbid=kbid,
951
- paragraph_id=paragraph_id,
956
+ paragraph_id=extended_paragraph_id,
952
957
  log_on_missing_field=True,
953
958
  )
954
959
  rid = paragraph_id.rid
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb
3
- Version: 6.9.1.post5208
3
+ Version: 6.9.1.post5229
4
4
  Summary: NucliaDB
5
5
  Author-email: Nuclia <nucliadb@nuclia.com>
6
6
  License-Expression: AGPL-3.0-or-later
@@ -19,11 +19,11 @@ Classifier: Programming Language :: Python :: 3.12
19
19
  Classifier: Programming Language :: Python :: 3 :: Only
20
20
  Requires-Python: <4,>=3.9
21
21
  Description-Content-Type: text/markdown
22
- Requires-Dist: nucliadb-telemetry[all]>=6.9.1.post5208
23
- Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.9.1.post5208
24
- Requires-Dist: nucliadb-protos>=6.9.1.post5208
25
- Requires-Dist: nucliadb-models>=6.9.1.post5208
26
- Requires-Dist: nidx-protos>=6.9.1.post5208
22
+ Requires-Dist: nucliadb-telemetry[all]>=6.9.1.post5229
23
+ Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.9.1.post5229
24
+ Requires-Dist: nucliadb-protos>=6.9.1.post5229
25
+ Requires-Dist: nucliadb-models>=6.9.1.post5229
26
+ Requires-Dist: nidx-protos>=6.9.1.post5229
27
27
  Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
28
28
  Requires-Dist: nuclia-models>=0.50.0
29
29
  Requires-Dist: uvicorn[standard]
@@ -86,7 +86,7 @@ nucliadb/common/cluster/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIX
86
86
  nucliadb/common/cluster/exceptions.py,sha256=t7v_l93t44l2tQpdQXgO_w-c4YZRcaayOz1A2i0w4RQ,1258
87
87
  nucliadb/common/cluster/grpc_node_dummy.py,sha256=JkufazWzMA4KFEU8EBkMbiiDW4C8lLcRhiiCxP7aCQY,2949
88
88
  nucliadb/common/cluster/manager.py,sha256=p-haaGEnCa-20t-I2XEo4QJ5ZC1QgJ6p2jzXFYVB6nQ,12346
89
- nucliadb/common/cluster/rebalance.py,sha256=s0YJ07Y358T9x22QnHHEvhmHqf1CnQWQD6oJznOo2Xc,22239
89
+ nucliadb/common/cluster/rebalance.py,sha256=acSB26bXPa4mS-kQuQ4k4lvOz2lKqMeMUCYppkn0n0I,22391
90
90
  nucliadb/common/cluster/rollover.py,sha256=kmVCdyjJ1dilnSodHMqf0EUkTjPC5H0aA4JqW9KsEa4,27168
91
91
  nucliadb/common/cluster/settings.py,sha256=f6Y5K0PGahkedwe5wtkWMnbqwDFJgOOwX_MOIGwH9Dg,2271
92
92
  nucliadb/common/cluster/utils.py,sha256=E4GqidwTKczJX_lTnncBCof2fL4CFVVF1eLiz9NWjlc,5494
@@ -154,7 +154,7 @@ nucliadb/ingest/consumer/service.py,sha256=_yj3gUKaCUA6Wp_73Bm8tO2Xk1vR8-aJV2xvP
154
154
  nucliadb/ingest/consumer/shard_creator.py,sha256=qUEpxZLE1etw1nL8L3O9HvZBx5NNql7S1vKDyqelN2M,4849
155
155
  nucliadb/ingest/consumer/utils.py,sha256=jpX8D4lKzuPCpArQLZeX_Zczq3pfen_zAf8sPJfOEZU,2642
156
156
  nucliadb/ingest/fields/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
157
- nucliadb/ingest/fields/base.py,sha256=D8NzawonF7hivDW9zvQBbV938TKA6e2OCGqV4kS96RU,24405
157
+ nucliadb/ingest/fields/base.py,sha256=Yk6b7OQ96YAAaDEyckry6-dBhzXASzuJucjTpEvFUZ4,23715
158
158
  nucliadb/ingest/fields/conversation.py,sha256=KkOvNM1rZFQRg2RsfGd3Jrz3lpx0HpGpN1cmlpz_mZw,9563
159
159
  nucliadb/ingest/fields/exceptions.py,sha256=sZBk21BSrXFdOdo1qUdCAyD-9YMYakSLdn4_WdIPCIQ,1217
160
160
  nucliadb/ingest/fields/file.py,sha256=1v4jLg3balUua2VmSV8hHkAwPFShTUCOzufZvIUQcQw,4740
@@ -271,7 +271,7 @@ nucliadb/search/search/chat/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn
271
271
  nucliadb/search/search/chat/ask.py,sha256=A-XKXXMt9i2sw1thuztAVLG2hgP8eJwd3KXEBfA1CQI,41640
272
272
  nucliadb/search/search/chat/exceptions.py,sha256=Siy4GXW2L7oPhIR86H3WHBhE9lkV4A4YaAszuGGUf54,1356
273
273
  nucliadb/search/search/chat/images.py,sha256=PA8VWxT5_HUGfW1ULhKTK46UBsVyINtWWqEM1ulzX1E,3095
274
- nucliadb/search/search/chat/prompt.py,sha256=Bk69WVki5XIzXFYO6o1uQw1feHtuMwfEx_A1TT3piR0,54136
274
+ nucliadb/search/search/chat/prompt.py,sha256=dqk6969zEymfGuDl0S1uAGM_Ii5kgdcCgNkuVrM0_8c,54406
275
275
  nucliadb/search/search/chat/query.py,sha256=qWrwVEX_GrDV7LFRyC21BURtl-WsRt8BkIocY8njkKM,17147
276
276
  nucliadb/search/search/hydrator/__init__.py,sha256=3Pc-rcax4TI174qcrllnReE728DoJTaA8tpvBUFf98g,7005
277
277
  nucliadb/search/search/hydrator/fields.py,sha256=LhKw-aNU5eJqfZADtq3iB7AGXm0l_QabAAoSHJTk8Is,5962
@@ -385,8 +385,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
385
385
  nucliadb/writer/tus/s3.py,sha256=vu1BGg4VqJ_x2P1u2BxqPKlSfw5orT_a3R-Ln5oPUpU,8483
386
386
  nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
387
387
  nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
388
- nucliadb-6.9.1.post5208.dist-info/METADATA,sha256=SyOTfLr01715WH-X7Zg6ejg73H-4ImjqnB8hwg9QpPs,4158
389
- nucliadb-6.9.1.post5208.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
390
- nucliadb-6.9.1.post5208.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
391
- nucliadb-6.9.1.post5208.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
392
- nucliadb-6.9.1.post5208.dist-info/RECORD,,
388
+ nucliadb-6.9.1.post5229.dist-info/METADATA,sha256=vT3yLHzoovEwXo7WrA-9T9xxnn2T7TXHmiNMQI1V9k8,4158
389
+ nucliadb-6.9.1.post5229.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
390
+ nucliadb-6.9.1.post5229.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
391
+ nucliadb-6.9.1.post5229.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
392
+ nucliadb-6.9.1.post5229.dist-info/RECORD,,