Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return rephrased query in results #2870

Merged
merged 4 commits into from
Feb 12, 2025
Merged

Return rephrased query in results #2870

merged 4 commits into from
Feb 12, 2025

Conversation

javitonino
Copy link
Contributor

Description

Describe the proposed changes made in this PR.

How was this PR tested?

Describe how you tested this PR.

Copy link

codecov bot commented Feb 12, 2025

Codecov Report

Attention: Patch coverage is 94.44444% with 1 line in your changes missing coverage. Please review.

Project coverage is 86.84%. Comparing base (754cfa6) to head (bd1cf01).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...adb_models/src/nucliadb_models/internal/predict.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2870      +/-   ##
==========================================
- Coverage   86.90%   86.84%   -0.06%     
==========================================
  Files         382      382              
  Lines       24184    24192       +8     
==========================================
- Hits        21016    21010       -6     
- Misses       3168     3182      +14     
Flag Coverage Δ
nucliadb 75.40% <100.00%> (-0.07%) ⬇️
nucliadb-ingest 40.95% <25.00%> (-0.01%) ⬇️
nucliadb-reader 42.71% <25.00%> (+<0.01%) ⬆️
nucliadb-search 44.33% <81.25%> (+0.01%) ⬆️
nucliadb-standalone 47.32% <25.00%> (-0.02%) ⬇️
nucliadb-train 45.48% <25.00%> (-0.02%) ⬇️
nucliadb-writer 46.84% <25.00%> (-0.02%) ⬇️
nucliadb_dataset 55.45% <ø> (ø)
nucliadb_models 84.82% <50.00%> (-0.05%) ⬇️
nucliadb_sdk 89.67% <ø> (ø)
nucliadb_telemetry 86.56% <ø> (ø)
nucliadb_utils 83.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -120,6 +120,7 @@ async def _index_node_retrieval(
results,
kbid=kbid,
query=pb_query.body,
rephrased_query=await query_parser.fetcher.get_rephrased_query(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fetcher inside the QueryParser class was more a middle step while moving thing to query_parser module, I don't love exposing it here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can proxy the get_rephrased_query function

@javitonino javitonino merged commit df6fd7f into main Feb 12, 2025
46 checks passed
@javitonino javitonino deleted the return_rephrase_query branch February 12, 2025 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants