nucliadb 6.4.2.post4349__py3-none-any.whl → 6.4.2.post4362__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.
@@ -55,7 +55,6 @@ from nucliadb_utils.authentication import requires
55
55
  summary="Search Knowledge Box graph",
56
56
  description="Search on the Knowledge Box graph and retrieve triplets of vertex-edge-vertex",
57
57
  response_model_exclude_unset=True,
58
- include_in_schema=False,
59
58
  tags=["Search"],
60
59
  )
61
60
  @requires(NucliaDBRoles.READER)
@@ -82,7 +81,6 @@ async def graph_search_knowledgebox(
82
81
  summary="Search Knowledge Box graph nodes",
83
82
  description="Search on the Knowledge Box graph and retrieve nodes (vertices)",
84
83
  response_model_exclude_unset=True,
85
- include_in_schema=False,
86
84
  tags=["Search"],
87
85
  )
88
86
  @requires(NucliaDBRoles.READER)
@@ -109,7 +107,6 @@ async def graph_nodes_search_knowledgebox(
109
107
  summary="Search Knowledge Box graph relations",
110
108
  description="Search on the Knowledge Box graph and retrieve relations (edges)",
111
109
  response_model_exclude_unset=True,
112
- include_in_schema=False,
113
110
  tags=["Search"],
114
111
  )
115
112
  @requires(NucliaDBRoles.READER)
@@ -721,6 +721,8 @@ def build_text_blocks_from_relations(
721
721
  )
722
722
  paragraph_count = 0
723
723
  for ent, subgraph in relations.entities.items():
724
+ if ent not in scores:
725
+ continue
724
726
  for rel, score in zip(subgraph.related_to, scores[ent]):
725
727
  key = (
726
728
  (
@@ -796,6 +798,8 @@ def get_paragraph_info_from_relations(
796
798
 
797
799
  # Loop over each entity in the relation graph
798
800
  for ent, subgraph in relations.entities.items():
801
+ if ent not in scores:
802
+ continue
799
803
  for rel_score, rel in zip(scores[ent], subgraph.related_to):
800
804
  if rel.metadata and rel.metadata.paragraph_id:
801
805
  p_id = ParagraphId.from_string(rel.metadata.paragraph_id)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb
3
- Version: 6.4.2.post4349
3
+ Version: 6.4.2.post4362
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.4.2.post4349
23
- Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.4.2.post4349
24
- Requires-Dist: nucliadb-protos>=6.4.2.post4349
25
- Requires-Dist: nucliadb-models>=6.4.2.post4349
26
- Requires-Dist: nidx-protos>=6.4.2.post4349
22
+ Requires-Dist: nucliadb-telemetry[all]>=6.4.2.post4362
23
+ Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.4.2.post4362
24
+ Requires-Dist: nucliadb-protos>=6.4.2.post4362
25
+ Requires-Dist: nucliadb-models>=6.4.2.post4362
26
+ Requires-Dist: nidx-protos>=6.4.2.post4362
27
27
  Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
28
28
  Requires-Dist: nuclia-models>=0.24.2
29
29
  Requires-Dist: uvicorn[standard]
@@ -215,7 +215,7 @@ nucliadb/search/api/v1/ask.py,sha256=b4tz33HNsfT5DXv_2DMc_jirnFsHuobreWkbAKkzj5o
215
215
  nucliadb/search/api/v1/catalog.py,sha256=W0cPWuC27Y4bO7Ifl1VQp8OPYfF5gv5yeWZBsuJMxUU,7721
216
216
  nucliadb/search/api/v1/feedback.py,sha256=kNLc4dHz2SXHzV0PwC1WiRAwY88fDptPcP-kO0q-FrQ,2620
217
217
  nucliadb/search/api/v1/find.py,sha256=C4sTGFRS9tQFF8v1zhnHQvnExJoGDYi78bZTRfwhGrc,10831
218
- nucliadb/search/api/v1/graph.py,sha256=Km_ysePnhaEahdYp0gaF-234FHliB8LdUpfGOnqZ0rc,4265
218
+ nucliadb/search/api/v1/graph.py,sha256=gthqxCOn9biE6D6s93jRGLglk0ono8U7OyS390kWiI8,4178
219
219
  nucliadb/search/api/v1/knowledgebox.py,sha256=e9xeLPUqnQTx33i4A8xuV93ENvtJGrpjPlLRbGJtAI8,8415
220
220
  nucliadb/search/api/v1/predict_proxy.py,sha256=Q03ZTvWp7Sq0x71t5Br4LHxTiYsRd6-GCb4YuKqhynM,3131
221
221
  nucliadb/search/api/v1/router.py,sha256=mtT07rBZcVfpa49doaw9b1tj3sdi3qLH0gn9Io6NYM0,988
@@ -239,7 +239,7 @@ nucliadb/search/search/filters.py,sha256=1MkHlJjAQqoRCj7e5cEzK2HvBxGLE17I_omsjik
239
239
  nucliadb/search/search/find.py,sha256=ZocoQNN28OHOmMaroGVFCnce3YHPZbFb1-9jxLNHSFM,7805
240
240
  nucliadb/search/search/find_merge.py,sha256=c-7IlfjfdmWAvQOyM7IO3bKS1EQpnR4oi6pN6mwrQKw,19815
241
241
  nucliadb/search/search/graph_merge.py,sha256=y5V7X-BhjHsKDXE69tzQLIIKGm4XuaFrZXw0odcHVNM,3402
242
- nucliadb/search/search/graph_strategy.py,sha256=LtPWGVL0RzxUgDLjrYgoQdZFmPBbln1fUsmXM1z5krs,35941
242
+ nucliadb/search/search/graph_strategy.py,sha256=7ERzGLshrrpuu7m3PauPaK89fzyrT2oDNVhOMnCjka0,36043
243
243
  nucliadb/search/search/hydrator.py,sha256=-R37gCrGxkyaiHQalnTWHNG_FCx11Zucd7qA1vQCxuw,6985
244
244
  nucliadb/search/search/ingestion_agents.py,sha256=NeJr4EEX-bvFFMGvXOOwLv8uU7NuQ-ntJnnrhnKfMzY,3174
245
245
  nucliadb/search/search/merge.py,sha256=XiRBsxhYPshPV7lZXD-9E259KZOPIf4I2tKosY0lPo4,22470
@@ -367,8 +367,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
367
367
  nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
368
368
  nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
369
369
  nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
370
- nucliadb-6.4.2.post4349.dist-info/METADATA,sha256=3N91CFIKKxKqiC-UlGvO2FguOKsZr3ntzBskMM-03H4,4152
371
- nucliadb-6.4.2.post4349.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
372
- nucliadb-6.4.2.post4349.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
373
- nucliadb-6.4.2.post4349.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
374
- nucliadb-6.4.2.post4349.dist-info/RECORD,,
370
+ nucliadb-6.4.2.post4362.dist-info/METADATA,sha256=UVVh7nD3zrkzDnrU-uQZy0JMiyxp78iDpuXqVG_TOPg,4152
371
+ nucliadb-6.4.2.post4362.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
372
+ nucliadb-6.4.2.post4362.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
373
+ nucliadb-6.4.2.post4362.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
374
+ nucliadb-6.4.2.post4362.dist-info/RECORD,,