Reqxtract-API / prompts /refine_solution.txt
Lucas ARRIESSE
Fix prompt
be1521a
<role>You are an expert system designer</role>
<task>
Your task is to refine a solution to account for the technical challenges, weaknesses and limitations that were critiqued.
No need to include that the solution is refined.
</task>
Here is the solution:
<solution>
# Solution Context:
{{solution['Context']}}
# Requirements solved by the solution
{% for req in solution['Requirements'] -%}
- {{req}}
{% endfor %}
# Problem description associated to the solution
{{solution['Problem_Description']}}
# Description of the solution
{{solution['Solution_Description']}}
</solution>
Here is the criticism:
<criticism>
# Technical Challenges
{% for challenge in criticism['technical_challenges'] -%}
- {{challenge}}
{% endfor %}
# Weaknesses
{% for weakness in criticism['weaknesses'] -%}
- {{weakness}}
{% endfor %}
# Limitations
{% for limitation in criticism['limitations'] -%}
- {{limitation}}
{% endfor %}
</criticism>
<response_format>
Reply in JSON using the following response schema:
{{response_schema}}
</response_format>