nucliadb 6.7.0.post4786__py3-none-any.whl → 6.7.0.post4800__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/predict.py +1 -0
- nucliadb/search/search/query_parser/parsers/common.py +5 -0
- {nucliadb-6.7.0.post4786.dist-info → nucliadb-6.7.0.post4800.dist-info}/METADATA +6 -6
- {nucliadb-6.7.0.post4786.dist-info → nucliadb-6.7.0.post4800.dist-info}/RECORD +7 -7
- {nucliadb-6.7.0.post4786.dist-info → nucliadb-6.7.0.post4800.dist-info}/WHEEL +0 -0
- {nucliadb-6.7.0.post4786.dist-info → nucliadb-6.7.0.post4800.dist-info}/entry_points.txt +0 -0
- {nucliadb-6.7.0.post4786.dist-info → nucliadb-6.7.0.post4800.dist-info}/top_level.txt +0 -0
nucliadb/search/predict.py
CHANGED
@@ -534,6 +534,7 @@ class DummyPredictEngine(PredictEngine):
|
|
534
534
|
timings=timings,
|
535
535
|
),
|
536
536
|
query=model,
|
537
|
+
rephrased_query="<REPHRASED-QUERY>" if item.rephrase or item.query_image else None,
|
537
538
|
)
|
538
539
|
|
539
540
|
async def detect_entities(self, kbid: str, sentence: str) -> list[RelationNode]:
|
@@ -85,6 +85,11 @@ async def parse_keyword_query(
|
|
85
85
|
fetcher: Fetcher,
|
86
86
|
) -> KeywordQuery:
|
87
87
|
query = item.query
|
88
|
+
# If there was a rephrase with image, we should use the rephrased query for keyword search
|
89
|
+
rephrased_query = await fetcher.get_rephrased_query()
|
90
|
+
if item.query_image is not None and rephrased_query is not None:
|
91
|
+
query = rephrased_query
|
92
|
+
|
88
93
|
is_synonyms_query = False
|
89
94
|
|
90
95
|
if item.with_synonyms:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: nucliadb
|
3
|
-
Version: 6.7.0.
|
3
|
+
Version: 6.7.0.post4800
|
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.7.0.
|
23
|
-
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.7.0.
|
24
|
-
Requires-Dist: nucliadb-protos>=6.7.0.
|
25
|
-
Requires-Dist: nucliadb-models>=6.7.0.
|
26
|
-
Requires-Dist: nidx-protos>=6.7.0.
|
22
|
+
Requires-Dist: nucliadb-telemetry[all]>=6.7.0.post4800
|
23
|
+
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.7.0.post4800
|
24
|
+
Requires-Dist: nucliadb-protos>=6.7.0.post4800
|
25
|
+
Requires-Dist: nucliadb-models>=6.7.0.post4800
|
26
|
+
Requires-Dist: nidx-protos>=6.7.0.post4800
|
27
27
|
Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
|
28
28
|
Requires-Dist: nuclia-models>=0.46.0
|
29
29
|
Requires-Dist: uvicorn[standard]
|
@@ -213,7 +213,7 @@ nucliadb/search/__init__.py,sha256=tnypbqcH4nBHbGpkINudhKgdLKpwXQCvDtPchUlsyY4,1
|
|
213
213
|
nucliadb/search/app.py,sha256=-WEX1AZRA8R_9aeOo9ovOTwjXW_7VfwWN7N2ccSoqXg,3387
|
214
214
|
nucliadb/search/lifecycle.py,sha256=hiylV-lxsAWkqTCulXBg0EIfMQdejSr8Zar0L_GLFT8,2218
|
215
215
|
nucliadb/search/openapi.py,sha256=t3Wo_4baTrfPftg2BHsyLWNZ1MYn7ZRdW7ht-wFOgRs,1016
|
216
|
-
nucliadb/search/predict.py,sha256=
|
216
|
+
nucliadb/search/predict.py,sha256=PdcJz--hK884GTTZ4m_QldR6dfNuI0vHpUWumJ2NGoA,23207
|
217
217
|
nucliadb/search/predict_models.py,sha256=ozuQZGWAK7v8W6UOk3xXQ_zW7YUNtRy_4l5LE5BuT_A,8172
|
218
218
|
nucliadb/search/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
219
219
|
nucliadb/search/run.py,sha256=aFb-CXRi_C8YMpP_ivNj8KW1BYhADj88y8K9Lr_nUPI,1402
|
@@ -277,7 +277,7 @@ nucliadb/search/search/query_parser/old_filters.py,sha256=GsU3T3-WiSPvjucP7evHks
|
|
277
277
|
nucliadb/search/search/query_parser/parsers/__init__.py,sha256=ySCNSdbesLXGZyR88919njulA6UE10_3PhqMG_Yj1o4,1034
|
278
278
|
nucliadb/search/search/query_parser/parsers/ask.py,sha256=mc4Rx7jLM101tRZYOxEQC-txO5C-fDJid_oMAtZTRug,2809
|
279
279
|
nucliadb/search/search/query_parser/parsers/catalog.py,sha256=JuDiBL2wdjAuEFEPo0e2nQ4VqWjF3FXakT0ziZk3Oes,7495
|
280
|
-
nucliadb/search/search/query_parser/parsers/common.py,sha256=
|
280
|
+
nucliadb/search/search/query_parser/parsers/common.py,sha256=jbQweWVufngbobr99qpHh1iiaGICOC6-e9AV33x0-Gk,6594
|
281
281
|
nucliadb/search/search/query_parser/parsers/find.py,sha256=4xQwa0BxNucenUrW_iZ2jCGd15Dm4AKS_B91BE8sDi4,12773
|
282
282
|
nucliadb/search/search/query_parser/parsers/graph.py,sha256=zyqdUg5Afmhb2_-hvj9FUCaoLh026MUP1fgY2j-lD7c,9385
|
283
283
|
nucliadb/search/search/query_parser/parsers/search.py,sha256=78KSJ9t3I7nFVY2Qk2fMw2P1RHUdGRsWzBf59FdAeTA,10503
|
@@ -376,8 +376,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
|
|
376
376
|
nucliadb/writer/tus/s3.py,sha256=vu1BGg4VqJ_x2P1u2BxqPKlSfw5orT_a3R-Ln5oPUpU,8483
|
377
377
|
nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
|
378
378
|
nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
|
379
|
-
nucliadb-6.7.0.
|
380
|
-
nucliadb-6.7.0.
|
381
|
-
nucliadb-6.7.0.
|
382
|
-
nucliadb-6.7.0.
|
383
|
-
nucliadb-6.7.0.
|
379
|
+
nucliadb-6.7.0.post4800.dist-info/METADATA,sha256=p5YogXctzlcnUaCPjJowa0_MXNaVlxDYJdow5vfEqrs,4158
|
380
|
+
nucliadb-6.7.0.post4800.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
381
|
+
nucliadb-6.7.0.post4800.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
|
382
|
+
nucliadb-6.7.0.post4800.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
|
383
|
+
nucliadb-6.7.0.post4800.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|