Add problem statement rewriting to the rewriting pipeline #192
+94
−26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
This PR builds on #191, please merge afterwards
Artemis#10156 is the corresponding Artemis PR to test with
This pull request includes significant updates to the
rewriting_pipeline
to support multiple variants and improve functionality. The most important changes include adding a new prompt for problem statements, modifying the pipeline to handle different variants, and updating the initialization and call methods to accommodate these changes.Support for Multiple Variants:
app/pipeline/prompts/rewriting_prompts.py
: Added a new prompt for problem statements and moved the FAQ prompt to this file.app/pipeline/rewriting_pipeline.py
: Updated the import statements and added avariant
parameter to theRewritingPipeline
class. Modified the__init__
and__call__
methods to handle different prompts based on the variant. [1] [2] [3] [4] [5] [6]Pipeline Initialization:
app/web/routers/pipelines.py
: Updated therun_rewriting_pipeline_worker
andrun_rewriting_pipeline
functions to handle the newvariant
parameter, ensuring the correct pipeline variant is used. [1] [2]Feature Descriptor Updates:
app/web/routers/pipelines.py
: Modified theget_pipeline
function to return specific feature descriptors for the FAQ and problem statement variants.