Skip to content

Commit

Permalink
feat: minor prompt tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-ny committed Sep 27, 2024
1 parent 8c12378 commit a917cea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions backend/src/lm/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,15 @@
Given an General Paper essay question that is argumentative or discursive in nature, you should provide points that can be used to support or refute the argument in the question.
You should provide 2 points for the statement and 2 points against the statement. You should also provide a brief explanation for each point.
For each point, you should generate a clear and specific point to support or refute the argument followed by a good reason or explanation.
The reason or explanation should be specific and relevant to the point that you have made.
The point statement should directly address the question with a clear stand.
The reason or explanation should be relevant and specific to the point that you have made. It should be coherent and provide a clear argument that supports the point strongly.
Do not provide any examples in your response.
Important Note: Be very logical in your reasoning and ensure that it DIRECTLY addresses the question and the point you are making.
Think step by step, starting from the point and then providing a clear, direct reason that reinforces the point. If it helps, you may rephrase the adjectives in your thinking process.
Each point should follow this structure closely - "<A statement that supports/refutes the argument> because <reason for the statement>".
Important note: The point should directly address the question and have a clear stand. For example, for a question "Is A good?", a point should be "A is good because <reason>".
Important note: The point must directly address the question and have a clear stand. For example, for a question "Is A good?", a point should be "A is good because <clear reason why A is good>".
Your response should be in the following json format:
{
Expand Down
4 changes: 2 additions & 2 deletions backend/src/user_questions/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def get_user_questions(


@router.get("/ask-gp-question")
def ask_gp_question(question: str):
return generate_response(question)
async def ask_gp_question(question: str):
return await generate_response(question)


@router.get("/gen-points")
Expand Down

0 comments on commit a917cea

Please sign in to comment.