nucliadb 6.2.1.post2912__py3-none-any.whl → 6.2.1.post2913__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.
@@ -42,6 +42,7 @@ from nucliadb.search.search.chat.images import (
42
42
  )
43
43
  from nucliadb.search.search.hydrator import hydrate_field_text, hydrate_resource_text
44
44
  from nucliadb.search.search.paragraphs import get_paragraph_text
45
+ from nucliadb_models.labels import translate_alias_to_system_label
45
46
  from nucliadb_models.metadata import Extra, Origin
46
47
  from nucliadb_models.search import (
47
48
  SCORE_TYPE,
@@ -267,7 +268,9 @@ async def full_resource_prompt_context(
267
268
  if strategy.apply_to is not None:
268
269
  # decide whether the resource should be extended or not
269
270
  for label in strategy.apply_to.exclude:
270
- skip = skip or (label in (paragraph.labels or []))
271
+ skip = skip or (
272
+ translate_alias_to_system_label(label) in (paragraph.labels or [])
273
+ )
271
274
 
272
275
  if not skip:
273
276
  ordered_resources.append(resource_uuid)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nucliadb
3
- Version: 6.2.1.post2912
3
+ Version: 6.2.1.post2913
4
4
  Home-page: https://docs.nuclia.dev/docs/management/nucliadb/intro
5
5
  Author: NucliaDB Community
6
6
  Author-email: nucliadb@nuclia.com
@@ -22,10 +22,10 @@ Classifier: Programming Language :: Python :: 3.12
22
22
  Classifier: Programming Language :: Python :: 3 :: Only
23
23
  Requires-Python: >=3.9, <4
24
24
  Description-Content-Type: text/markdown
25
- Requires-Dist: nucliadb-telemetry[all]>=6.2.1.post2912
26
- Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.2.1.post2912
27
- Requires-Dist: nucliadb-protos>=6.2.1.post2912
28
- Requires-Dist: nucliadb-models>=6.2.1.post2912
25
+ Requires-Dist: nucliadb-telemetry[all]>=6.2.1.post2913
26
+ Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.2.1.post2913
27
+ Requires-Dist: nucliadb-protos>=6.2.1.post2913
28
+ Requires-Dist: nucliadb-models>=6.2.1.post2913
29
29
  Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
30
30
  Requires-Dist: nucliadb-node-binding>=2.26.0
31
31
  Requires-Dist: nuclia-models>=0.24.2
@@ -237,7 +237,7 @@ nucliadb/search/search/chat/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn
237
237
  nucliadb/search/search/chat/ask.py,sha256=4PHueXt4dMF6NHuBYII--reCslbAVCzAE4LgWFAiKdY,35143
238
238
  nucliadb/search/search/chat/exceptions.py,sha256=Siy4GXW2L7oPhIR86H3WHBhE9lkV4A4YaAszuGGUf54,1356
239
239
  nucliadb/search/search/chat/images.py,sha256=PA8VWxT5_HUGfW1ULhKTK46UBsVyINtWWqEM1ulzX1E,3095
240
- nucliadb/search/search/chat/prompt.py,sha256=HHzBOMUDta7We_zQqpI-eBLNCFdB0BfYDhijvTmw1k0,46952
240
+ nucliadb/search/search/chat/prompt.py,sha256=r2JTiRWH3YHPdeRAG5w6gD0g0fWVxdTjYIR86qAVa7k,47106
241
241
  nucliadb/search/search/chat/query.py,sha256=4cmTxnqnvQGPDKTdaNJL4Au8aop1reHLXzkGNhf4NWg,15345
242
242
  nucliadb/search/search/query_parser/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
243
243
  nucliadb/search/search/query_parser/exceptions.py,sha256=tuzl7ZyvVsRz6u0_3zMe60vx39nd3pi641prs-5nC0E,872
@@ -340,9 +340,9 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
340
340
  nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
341
341
  nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
342
342
  nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
343
- nucliadb-6.2.1.post2912.dist-info/METADATA,sha256=jdqoIhDsWH3-cnQHY5FU4EQSidIHG6pxm-ZFbISgC98,4689
344
- nucliadb-6.2.1.post2912.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
345
- nucliadb-6.2.1.post2912.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
346
- nucliadb-6.2.1.post2912.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
347
- nucliadb-6.2.1.post2912.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
348
- nucliadb-6.2.1.post2912.dist-info/RECORD,,
343
+ nucliadb-6.2.1.post2913.dist-info/METADATA,sha256=cQPyAd1xQ6-6I7JolX2sNR-_9NNs2UJOAqi5PhvPOno,4689
344
+ nucliadb-6.2.1.post2913.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
345
+ nucliadb-6.2.1.post2913.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
346
+ nucliadb-6.2.1.post2913.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
347
+ nucliadb-6.2.1.post2913.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
348
+ nucliadb-6.2.1.post2913.dist-info/RECORD,,