nucliadb 6.5.0.post4498__py3-none-any.whl → 6.5.0.post4502__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.
@@ -44,6 +44,7 @@ from nucliadb_models.metadata import ResourceProcessingStatus
44
44
  from nucliadb_models.resource import NucliaDBRoles
45
45
  from nucliadb_models.search import (
46
46
  CatalogFacetsRequest,
47
+ CatalogFacetsResponse,
47
48
  CatalogRequest,
48
49
  CatalogResponse,
49
50
  KnowledgeboxSearchResults,
@@ -195,12 +196,14 @@ async def catalog(
195
196
  @api.post(
196
197
  f"/{KB_PREFIX}/{{kbid}}/catalog/facets",
197
198
  status_code=200,
198
- response_model=dict[str, int],
199
+ response_model=CatalogFacetsResponse,
199
200
  response_model_exclude_unset=True,
200
201
  tags=["Search"],
201
202
  include_in_schema=False,
202
203
  )
203
204
  @requires(NucliaDBRoles.READER)
204
205
  @version(1)
205
- async def catalog_facets(request: Request, kbid: str, item: CatalogFacetsRequest) -> dict[str, int]:
206
- return await pgcatalog_facets(kbid, item)
206
+ async def catalog_facets(
207
+ request: Request, kbid: str, item: CatalogFacetsRequest
208
+ ) -> CatalogFacetsResponse:
209
+ return CatalogFacetsResponse(facets=await pgcatalog_facets(kbid, item))
@@ -661,7 +661,7 @@ async def neighbouring_paragraphs_prompt_context(
661
661
  ]
662
662
  try:
663
663
  index = field_pids.index(pid)
664
- except IndexError:
664
+ except ValueError:
665
665
  continue
666
666
 
667
667
  for neighbour_index in get_neighbouring_indices(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb
3
- Version: 6.5.0.post4498
3
+ Version: 6.5.0.post4502
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.5.0.post4498
23
- Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.5.0.post4498
24
- Requires-Dist: nucliadb-protos>=6.5.0.post4498
25
- Requires-Dist: nucliadb-models>=6.5.0.post4498
26
- Requires-Dist: nidx-protos>=6.5.0.post4498
22
+ Requires-Dist: nucliadb-telemetry[all]>=6.5.0.post4502
23
+ Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.5.0.post4502
24
+ Requires-Dist: nucliadb-protos>=6.5.0.post4502
25
+ Requires-Dist: nucliadb-models>=6.5.0.post4502
26
+ Requires-Dist: nidx-protos>=6.5.0.post4502
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]
@@ -221,7 +221,7 @@ nucliadb/search/utilities.py,sha256=9SsRDw0rJVXVoLBfF7rBb6q080h-thZc7u8uRcTiBeY,
221
221
  nucliadb/search/api/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
222
222
  nucliadb/search/api/v1/__init__.py,sha256=DH16OYnw9jQ38OpKlmdXeoq2j40ZPXZRtGvClKOkMhw,1239
223
223
  nucliadb/search/api/v1/ask.py,sha256=b4tz33HNsfT5DXv_2DMc_jirnFsHuobreWkbAKkzj5o,5337
224
- nucliadb/search/api/v1/catalog.py,sha256=7yyG46Zsaqvuut9Da-LTl0KcWgo7n5lbEhiTXslyvwM,7865
224
+ nucliadb/search/api/v1/catalog.py,sha256=aBNhgg-8Dj4kiB9IYshe46ph1FaeaPCjyxnNPgUu3AQ,7942
225
225
  nucliadb/search/api/v1/feedback.py,sha256=kNLc4dHz2SXHzV0PwC1WiRAwY88fDptPcP-kO0q-FrQ,2620
226
226
  nucliadb/search/api/v1/find.py,sha256=iMjyq4y0JOMC_x1B8kUfVdkCoc9G9Ark58kPLLY4HDw,10824
227
227
  nucliadb/search/api/v1/graph.py,sha256=gthqxCOn9biE6D6s93jRGLglk0ono8U7OyS390kWiI8,4178
@@ -266,7 +266,7 @@ nucliadb/search/search/chat/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn
266
266
  nucliadb/search/search/chat/ask.py,sha256=Ehntai2jrFCVQDkp1OoiYuaOxac8UcKrk1Cil5UWgEE,38230
267
267
  nucliadb/search/search/chat/exceptions.py,sha256=Siy4GXW2L7oPhIR86H3WHBhE9lkV4A4YaAszuGGUf54,1356
268
268
  nucliadb/search/search/chat/images.py,sha256=PA8VWxT5_HUGfW1ULhKTK46UBsVyINtWWqEM1ulzX1E,3095
269
- nucliadb/search/search/chat/prompt.py,sha256=Avi-5wXozAKESJU6WwjLwNhqe4uO-YbSW_W2K2gzUgE,51837
269
+ nucliadb/search/search/chat/prompt.py,sha256=TKyIblYvZ3EiyfwVFbEeYJ66ZNDtbeJySSa45HptCOk,51837
270
270
  nucliadb/search/search/chat/query.py,sha256=3jMPNbiFEOoS0ydMOPYkSx1qVlvAv51npzadWXDwkMs,16650
271
271
  nucliadb/search/search/query_parser/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
272
272
  nucliadb/search/search/query_parser/exceptions.py,sha256=sVl9gRNzhE-s480LBBVkiXzNRbKhYRQN5F3it5tNNp8,939
@@ -375,8 +375,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
375
375
  nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
376
376
  nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
377
377
  nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
378
- nucliadb-6.5.0.post4498.dist-info/METADATA,sha256=3xNyt04VWlOPo1s4I3ctATmLy2EA7FVLDZujX4rs_q0,4158
379
- nucliadb-6.5.0.post4498.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
380
- nucliadb-6.5.0.post4498.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
381
- nucliadb-6.5.0.post4498.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
382
- nucliadb-6.5.0.post4498.dist-info/RECORD,,
378
+ nucliadb-6.5.0.post4502.dist-info/METADATA,sha256=P5EZGpH_h11GVJnIDAgaJq7ceGhDaCO_2T7eBv72O6I,4158
379
+ nucliadb-6.5.0.post4502.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
380
+ nucliadb-6.5.0.post4502.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
381
+ nucliadb-6.5.0.post4502.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
382
+ nucliadb-6.5.0.post4502.dist-info/RECORD,,