nucliadb 6.3.5.post4039__py3-none-any.whl → 6.3.5.post4043__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/metrics.py +1 -0
- nucliadb/search/search/query.py +2 -0
- nucliadb/search/search/query_parser/parsers/find.py +2 -0
- {nucliadb-6.3.5.post4039.dist-info → nucliadb-6.3.5.post4043.dist-info}/METADATA +6 -6
- {nucliadb-6.3.5.post4039.dist-info → nucliadb-6.3.5.post4043.dist-info}/RECORD +8 -8
- {nucliadb-6.3.5.post4039.dist-info → nucliadb-6.3.5.post4043.dist-info}/WHEEL +0 -0
- {nucliadb-6.3.5.post4039.dist-info → nucliadb-6.3.5.post4043.dist-info}/entry_points.txt +0 -0
- {nucliadb-6.3.5.post4039.dist-info → nucliadb-6.3.5.post4043.dist-info}/top_level.txt +0 -0
@@ -26,6 +26,7 @@ from nucliadb_telemetry import metrics
|
|
26
26
|
merge_observer = metrics.Observer("merge_results", labels={"type": ""})
|
27
27
|
node_features = metrics.Counter("nucliadb_node_features", labels={"type": ""})
|
28
28
|
query_parse_dependency_observer = metrics.Observer("query_parse_dependency", labels={"type": ""})
|
29
|
+
query_parser_observer = metrics.Observer("nucliadb_query_parser", labels={"type": ""})
|
29
30
|
|
30
31
|
buckets = [
|
31
32
|
0.005,
|
nucliadb/search/search/query.py
CHANGED
@@ -32,6 +32,7 @@ from nucliadb.search.search.filters import (
|
|
32
32
|
)
|
33
33
|
from nucliadb.search.search.metrics import (
|
34
34
|
node_features,
|
35
|
+
query_parser_observer,
|
35
36
|
)
|
36
37
|
from nucliadb.search.search.query_parser.fetcher import Fetcher
|
37
38
|
from nucliadb.search.search.rank_fusion import (
|
@@ -194,6 +195,7 @@ class QueryParser:
|
|
194
195
|
if self.with_synonyms and self.query:
|
195
196
|
asyncio.ensure_future(self.fetcher.get_synonyms())
|
196
197
|
|
198
|
+
@query_parser_observer.wrap({"type": "QueryParser"})
|
197
199
|
async def parse(self) -> tuple[nodereader_pb2.SearchRequest, bool, list[str], Optional[str]]:
|
198
200
|
"""
|
199
201
|
:return: (request, incomplete, autofilters)
|
@@ -20,6 +20,7 @@
|
|
20
20
|
|
21
21
|
from pydantic import ValidationError
|
22
22
|
|
23
|
+
from nucliadb.search.search.metrics import query_parser_observer
|
23
24
|
from nucliadb.search.search.query_parser.exceptions import InternalParserError
|
24
25
|
from nucliadb.search.search.query_parser.models import (
|
25
26
|
NoopReranker,
|
@@ -35,6 +36,7 @@ from nucliadb_models.search import (
|
|
35
36
|
)
|
36
37
|
|
37
38
|
|
39
|
+
@query_parser_observer.wrap({"type": "parse_find"})
|
38
40
|
async def parse_find(kbid: str, item: FindRequest) -> UnitRetrieval:
|
39
41
|
parser = _FindParser(kbid, item)
|
40
42
|
return await parser.parse()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: nucliadb
|
3
|
-
Version: 6.3.5.
|
3
|
+
Version: 6.3.5.post4043
|
4
4
|
Summary: NucliaDB
|
5
5
|
Author-email: Nuclia <nucliadb@nuclia.com>
|
6
6
|
License: AGPL
|
@@ -20,11 +20,11 @@ Classifier: Programming Language :: Python :: 3.12
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
21
21
|
Requires-Python: <4,>=3.9
|
22
22
|
Description-Content-Type: text/markdown
|
23
|
-
Requires-Dist: nucliadb-telemetry[all]>=6.3.5.
|
24
|
-
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.3.5.
|
25
|
-
Requires-Dist: nucliadb-protos>=6.3.5.
|
26
|
-
Requires-Dist: nucliadb-models>=6.3.5.
|
27
|
-
Requires-Dist: nidx-protos>=6.3.5.
|
23
|
+
Requires-Dist: nucliadb-telemetry[all]>=6.3.5.post4043
|
24
|
+
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.3.5.post4043
|
25
|
+
Requires-Dist: nucliadb-protos>=6.3.5.post4043
|
26
|
+
Requires-Dist: nucliadb-models>=6.3.5.post4043
|
27
|
+
Requires-Dist: nidx-protos>=6.3.5.post4043
|
28
28
|
Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
|
29
29
|
Requires-Dist: nuclia-models>=0.24.2
|
30
30
|
Requires-Dist: uvicorn[standard]
|
@@ -240,11 +240,11 @@ nucliadb/search/search/graph_strategy.py,sha256=SPJdDHQcTFsNb1IEWdWzklC5j1Vv9igi
|
|
240
240
|
nucliadb/search/search/hydrator.py,sha256=-R37gCrGxkyaiHQalnTWHNG_FCx11Zucd7qA1vQCxuw,6985
|
241
241
|
nucliadb/search/search/ingestion_agents.py,sha256=NeJr4EEX-bvFFMGvXOOwLv8uU7NuQ-ntJnnrhnKfMzY,3174
|
242
242
|
nucliadb/search/search/merge.py,sha256=fh5WnA_xnXp-Iiq5Cud9hIGole7_0OW2b3Oymk32D6Y,22689
|
243
|
-
nucliadb/search/search/metrics.py,sha256=
|
243
|
+
nucliadb/search/search/metrics.py,sha256=HJVQPLOIwLuc733G4keqEgx1-Dcg97hyWGKZQTojiSE,2973
|
244
244
|
nucliadb/search/search/paragraphs.py,sha256=pNAEiYqJGGUVcEf7xf-PFMVqz0PX4Qb-WNG-_zPGN2o,7799
|
245
245
|
nucliadb/search/search/pgcatalog.py,sha256=s_J98fsX_RuFXwpejpkGqG-tD9ELuzz4YQ6U3ew5h2g,9313
|
246
246
|
nucliadb/search/search/predict_proxy.py,sha256=IFI3v_ODz2_UU1XZnyaD391fE7-2C0npSmj_HmDvzS4,3123
|
247
|
-
nucliadb/search/search/query.py,sha256=
|
247
|
+
nucliadb/search/search/query.py,sha256=Obd84og7BQJ5zZd3iAc9kyndCTHv0ihSL3PO5GNljR4,30351
|
248
248
|
nucliadb/search/search/rank_fusion.py,sha256=tRGo_KlsFsVx1CQEy1iqQ6f0T1Dq1kf0axDXHuuzvvM,6946
|
249
249
|
nucliadb/search/search/rerankers.py,sha256=3vep4EOVNeDJGsMdx-1g6Ar4ZGJG3IHym3HkxnbwtAQ,7321
|
250
250
|
nucliadb/search/search/shards.py,sha256=OEtN1p9WX_cMX8t-myaafpmFAPTpUEOutR7z1sDuNcY,3242
|
@@ -264,7 +264,7 @@ nucliadb/search/search/query_parser/models.py,sha256=7czH-jHskl9axEnZV5XnQY8cyN_
|
|
264
264
|
nucliadb/search/search/query_parser/old_filters.py,sha256=-zbfN-RsXoj_DRjh3Lfp-wShwFXgkISawzVptVzja-A,9071
|
265
265
|
nucliadb/search/search/query_parser/parsers/__init__.py,sha256=ySCNSdbesLXGZyR88919njulA6UE10_3PhqMG_Yj1o4,1034
|
266
266
|
nucliadb/search/search/query_parser/parsers/catalog.py,sha256=XdBiTweGTQkj8m_V_i2xbwp7P5pPO8K1Tud692XKhMw,7149
|
267
|
-
nucliadb/search/search/query_parser/parsers/find.py,sha256=
|
267
|
+
nucliadb/search/search/query_parser/parsers/find.py,sha256=5Hp3MIlzkf_NdzpBaNAIHS8gWm6CYZEzUMwmrrO9Z-k,4783
|
268
268
|
nucliadb/search/search/query_parser/parsers/graph.py,sha256=QJs-pybNXPsMSEkIHctb0Q0xQG-aArks8BtUxbJL5rU,9386
|
269
269
|
nucliadb/standalone/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
270
270
|
nucliadb/standalone/api_router.py,sha256=hgq9FXpihzgjHkwcVGfGCSwyXy67fqXTfLFHuINzIi0,5567
|
@@ -361,8 +361,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
|
|
361
361
|
nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
|
362
362
|
nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
|
363
363
|
nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
|
364
|
-
nucliadb-6.3.5.
|
365
|
-
nucliadb-6.3.5.
|
366
|
-
nucliadb-6.3.5.
|
367
|
-
nucliadb-6.3.5.
|
368
|
-
nucliadb-6.3.5.
|
364
|
+
nucliadb-6.3.5.post4043.dist-info/METADATA,sha256=-NYKmTmw3lBfJoWY5vjA6IOOAVacxzhQ-e6MpunF2M8,4301
|
365
|
+
nucliadb-6.3.5.post4043.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
366
|
+
nucliadb-6.3.5.post4043.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
|
367
|
+
nucliadb-6.3.5.post4043.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
|
368
|
+
nucliadb-6.3.5.post4043.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|