nucliadb 6.2.1.post2842__py3-none-any.whl → 6.2.1.post2853__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.
@@ -311,11 +311,12 @@ async def get_graph_results(
311
311
  ) -> tuple[KnowledgeboxFindResults, QueryParser]:
312
312
  relations = Relations(entities={})
313
313
  explored_entities: set[str] = set()
314
+ scores: dict[str, list[float]] = {}
314
315
  predict = get_predict()
315
316
 
316
317
  for hop in range(graph_strategy.hops):
317
318
  entities_to_explore: Iterable[RelationNode] = []
318
- scores: dict[str, list[float]] = {}
319
+
319
320
  if hop == 0:
320
321
  # Get the entities from the query
321
322
  with metrics.time("graph_strat_query_entities"):
@@ -415,6 +416,7 @@ async def get_graph_results(
415
416
  capture_exception(e)
416
417
  logger.exception("Error in ranking relations for graph strategy")
417
418
  relations = Relations(entities={})
419
+ scores = {}
418
420
  break
419
421
 
420
422
  # Get the text blocks of the paragraphs that contain the top relations
@@ -74,7 +74,7 @@ from nucliadb_utils.utilities import (
74
74
  get_storage,
75
75
  )
76
76
 
77
- from .router import KB_PREFIX, RESOURCE_PREFIX, RSLUG_PREFIX, api
77
+ from .router import KB_PREFIX, RESOURCE_PREFIX, RESOURCES_PREFIX, RSLUG_PREFIX, api
78
78
 
79
79
  TUS_HEADERS = {
80
80
  "Tus-Resumable": "1.0.0",
@@ -544,8 +544,8 @@ async def _tus_patch(
544
544
  raise AttributeError()
545
545
  path = await storage_manager.finish(dm)
546
546
  headers["Tus-Upload-Finished"] = "1"
547
- headers["NDB-Resource"] = f"/{KB_PREFIX}/{kbid}/resources/{rid}"
548
- headers["NDB-Field"] = f"/{KB_PREFIX}/{kbid}/resources/{rid}/field/{field}"
547
+ headers["NDB-Resource"] = f"/{KB_PREFIX}/{kbid}/{RESOURCES_PREFIX}/{rid}"
548
+ headers["NDB-Field"] = f"/{KB_PREFIX}/{kbid}/{RESOURCES_PREFIX}/{rid}/field/{field}"
549
549
 
550
550
  item_payload = dm.get("item")
551
551
  creation_payload = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nucliadb
3
- Version: 6.2.1.post2842
3
+ Version: 6.2.1.post2853
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.post2842
26
- Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.2.1.post2842
27
- Requires-Dist: nucliadb-protos>=6.2.1.post2842
28
- Requires-Dist: nucliadb-models>=6.2.1.post2842
25
+ Requires-Dist: nucliadb-telemetry[all]>=6.2.1.post2853
26
+ Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.2.1.post2853
27
+ Requires-Dist: nucliadb-protos>=6.2.1.post2853
28
+ Requires-Dist: nucliadb-models>=6.2.1.post2853
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
@@ -219,7 +219,7 @@ nucliadb/search/search/fetch.py,sha256=XJHIFnZmXM_8Kb37lb4lg1GYG7cZ1plT-qAIb_Qzi
219
219
  nucliadb/search/search/filters.py,sha256=1MkHlJjAQqoRCj7e5cEzK2HvBxGLE17I_omsjiklbtw,6476
220
220
  nucliadb/search/search/find.py,sha256=yQbttt85wQFc4NEaj2RNGgozP7IQx_bjAOhHke3fXY0,9890
221
221
  nucliadb/search/search/find_merge.py,sha256=_R_YpHAZv5BHh3XABQ8MRd1Ci0seclGYf26yJHJ7H0I,17178
222
- nucliadb/search/search/graph_strategy.py,sha256=Yw6gPiIcKSj6HtbBcIT_5Poypc7AHkqKhcf8RRzJMnI,33513
222
+ nucliadb/search/search/graph_strategy.py,sha256=6d-KjGDbOnaXQzEwyBpA-iQM0rkveVTiK3A3m2UJq8Q,33538
223
223
  nucliadb/search/search/hydrator.py,sha256=-R37gCrGxkyaiHQalnTWHNG_FCx11Zucd7qA1vQCxuw,6985
224
224
  nucliadb/search/search/merge.py,sha256=g0PxUejWtYIYWG-VroArMCgwB6AOp3lZMkzoHAPYBKE,22183
225
225
  nucliadb/search/search/metrics.py,sha256=81X-tahGW4n2CLvUzCPdNxNClmZqUWZjcVOGCUHoiUM,2872
@@ -322,7 +322,7 @@ nucliadb/writer/api/v1/router.py,sha256=RjuoWLpZer6Kl2BW_wznpNo6XL3BOpdTGqXZCn3Q
322
322
  nucliadb/writer/api/v1/services.py,sha256=U8OGxhA1tdt-wxw2uDAjFpwFXFEXSDTfBe1iV5nfmx8,9897
323
323
  nucliadb/writer/api/v1/slug.py,sha256=xlVBDBpRi9bNulpBHZwhyftVvulfE0zFm1XZIWl-AKY,2389
324
324
  nucliadb/writer/api/v1/transaction.py,sha256=d2Vbgnkk_-FLGSTt3vfldwiJIUf0XoyD0wP1jQNz_DY,2430
325
- nucliadb/writer/api/v1/upload.py,sha256=Lb5yTh8MfpyhFYT4UCn26NfaYohu44mK_em3v4NUp6Q,32869
325
+ nucliadb/writer/api/v1/upload.py,sha256=yfVbIDHZEmFUDLi0Fenv9i-oj1m0JZPyTK7UPlq8Wws,32905
326
326
  nucliadb/writer/resource/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
327
327
  nucliadb/writer/resource/audit.py,sha256=FvxMZPzrNHtd31HgpZEvxzwAkbxJTZRhPLqRYYJi3tA,1426
328
328
  nucliadb/writer/resource/basic.py,sha256=l9zD-Qiq4eUkHezMf0w1Ksx2izKYLYuNoMIlXcNxxpM,11163
@@ -337,9 +337,9 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
337
337
  nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
338
338
  nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
339
339
  nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
340
- nucliadb-6.2.1.post2842.dist-info/METADATA,sha256=CmYjCtJ5NGjNjopTPvSGiJNDrhzypADVZGncMsY834k,4689
341
- nucliadb-6.2.1.post2842.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
342
- nucliadb-6.2.1.post2842.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
343
- nucliadb-6.2.1.post2842.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
344
- nucliadb-6.2.1.post2842.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
345
- nucliadb-6.2.1.post2842.dist-info/RECORD,,
340
+ nucliadb-6.2.1.post2853.dist-info/METADATA,sha256=mSX0PN-R7SKsSng7rGBKHMi1duc2960glSUhFAVEgkA,4689
341
+ nucliadb-6.2.1.post2853.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
342
+ nucliadb-6.2.1.post2853.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
343
+ nucliadb-6.2.1.post2853.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
344
+ nucliadb-6.2.1.post2853.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
345
+ nucliadb-6.2.1.post2853.dist-info/RECORD,,