nucliadb 6.4.1.post4332__py3-none-any.whl → 6.4.1.post4335__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.
- nucliadb/search/search/rerankers.py +5 -2
- {nucliadb-6.4.1.post4332.dist-info → nucliadb-6.4.1.post4335.dist-info}/METADATA +6 -6
- {nucliadb-6.4.1.post4332.dist-info → nucliadb-6.4.1.post4335.dist-info}/RECORD +6 -6
- {nucliadb-6.4.1.post4332.dist-info → nucliadb-6.4.1.post4335.dist-info}/WHEEL +0 -0
- {nucliadb-6.4.1.post4332.dist-info → nucliadb-6.4.1.post4335.dist-info}/entry_points.txt +0 -0
- {nucliadb-6.4.1.post4332.dist-info → nucliadb-6.4.1.post4335.dist-info}/top_level.txt +0 -0
@@ -77,11 +77,14 @@ class Reranker(ABC):
|
|
77
77
|
list of reranked items sorted by decreasing score. The list will contain
|
78
78
|
at most, `window` elements.
|
79
79
|
|
80
|
+
NOTE: Other search engines allow a mix of reranked and not reranked
|
81
|
+
results, there's no technical reason we can't do it
|
82
|
+
|
80
83
|
"""
|
81
84
|
# Enforce reranker window and drop the rest
|
82
|
-
# XXX: other search engines allow a mix of reranked and not reranked
|
83
|
-
# results, there's no technical reason we can't do it
|
84
85
|
items = items[: self.window]
|
86
|
+
if len(items) == 0:
|
87
|
+
return []
|
85
88
|
reranked = await self._rerank(items, options)
|
86
89
|
return reranked
|
87
90
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: nucliadb
|
3
|
-
Version: 6.4.1.
|
3
|
+
Version: 6.4.1.post4335
|
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.1.
|
23
|
-
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.4.1.
|
24
|
-
Requires-Dist: nucliadb-protos>=6.4.1.
|
25
|
-
Requires-Dist: nucliadb-models>=6.4.1.
|
26
|
-
Requires-Dist: nidx-protos>=6.4.1.
|
22
|
+
Requires-Dist: nucliadb-telemetry[all]>=6.4.1.post4335
|
23
|
+
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.4.1.post4335
|
24
|
+
Requires-Dist: nucliadb-protos>=6.4.1.post4335
|
25
|
+
Requires-Dist: nucliadb-models>=6.4.1.post4335
|
26
|
+
Requires-Dist: nidx-protos>=6.4.1.post4335
|
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]
|
@@ -250,7 +250,7 @@ nucliadb/search/search/pgcatalog.py,sha256=s_J98fsX_RuFXwpejpkGqG-tD9ELuzz4YQ6U3
|
|
250
250
|
nucliadb/search/search/predict_proxy.py,sha256=JwgBeEg1j4LnCjPCvTUrnmOd9LceJAt3iAu4m9cmJBo,3390
|
251
251
|
nucliadb/search/search/query.py,sha256=-gvKsyGmKYpsoEVzKkq3HJUMcs_3LD3TYUueOcJsTec,11511
|
252
252
|
nucliadb/search/search/rank_fusion.py,sha256=xZtXhbmKb_56gs73u6KkFm2efvTATOSMmpOV2wrAIqE,9613
|
253
|
-
nucliadb/search/search/rerankers.py,sha256=
|
253
|
+
nucliadb/search/search/rerankers.py,sha256=E2J1QdKAojqbhHM3KAyaOXKf6tJyETUxKs4tf_BEyqk,7472
|
254
254
|
nucliadb/search/search/shards.py,sha256=mc5DK-MoCv9AFhlXlOFHbPvetcyNDzTFOJ5rimK8PC8,2636
|
255
255
|
nucliadb/search/search/summarize.py,sha256=ksmYPubEQvAQgfPdZHfzB_rR19B2ci4IYZ6jLdHxZo8,4996
|
256
256
|
nucliadb/search/search/utils.py,sha256=ajRIXfdTF67dBVahQCXW-rSv6gJpUMPt3QhJrWqArTQ,2175
|
@@ -368,8 +368,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
|
|
368
368
|
nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
|
369
369
|
nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
|
370
370
|
nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
|
371
|
-
nucliadb-6.4.1.
|
372
|
-
nucliadb-6.4.1.
|
373
|
-
nucliadb-6.4.1.
|
374
|
-
nucliadb-6.4.1.
|
375
|
-
nucliadb-6.4.1.
|
371
|
+
nucliadb-6.4.1.post4335.dist-info/METADATA,sha256=O6ZXDoZfUouclgl0ldVNyqKpA3D_lF-TPac1zB7Wri4,4152
|
372
|
+
nucliadb-6.4.1.post4335.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
373
|
+
nucliadb-6.4.1.post4335.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
|
374
|
+
nucliadb-6.4.1.post4335.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
|
375
|
+
nucliadb-6.4.1.post4335.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|