From 9deeb9125e9fa068f60f353e51554bc14dd40125 Mon Sep 17 00:00:00 2001 From: Julius ter Pelkwijk <1099127+mrseeker@users.noreply.github.com> Date: Thu, 27 Jul 2023 14:46:06 +0200 Subject: [PATCH] fixing spelling --- openvalidators/prompts.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openvalidators/prompts.py b/openvalidators/prompts.py index 61e59bf..3cb451a 100644 --- a/openvalidators/prompts.py +++ b/openvalidators/prompts.py @@ -124,7 +124,7 @@ def find_unique_tags(input_text: str): # Request a follow-up question given a preceding context. -followup_request_template = "Ask one relevant and insightful question about the preceding context" +followup_request_template = "Ask a single relevant and insightful question about the preceding context" # Scores a summary on a scale from 0 to 10, given a context. augment_scoring_template = """Score the relevance, succinctness, and quality of a summary given a context. The context is within tags, and the question is within tags. Give a score between 0 and 10 in the tags, where 0 means the summary is irrelevant, and 10 means it's perfectly relevant and a good summary. Include a brief explanation for your score based solely on the context-summary relationship. @@ -348,16 +348,16 @@ def find_unique_tags(input_text: str): def followup_prompt( base_text:str, i:int = 0) -> str: if i == 0: - return f"{base_text}\n\n{followup_request_template}\n" + return f"{base_text}\n\n{followup_request_template}. Do not return an answer:\n" else: - return f"{base_text}\n\n{followup_request_template} and previous questions\n" + return f"{base_text}\n\n{followup_request_template} and previous questions. Do not return an answer:\n" def answer_prompt( base_text:str, followup:str ) -> str: - return f"{base_text}\n Question:{followup}\n Answer the question step by step and explain your thoughts" + return f"{base_text}\n\nQuestion: {followup}\nAnswer the last question step by step and explain your thoughts:\n" augment_request_template = "Summarize the preceding context" def augment_prompt( base_text:str ) -> str: random_level = random.randint(4, 8) - return f"{base_text}\n\n{augment_request_template} in {random_level} sentences.\n\n" \ No newline at end of file + return f"{base_text}\n\n{augment_request_template} in {random_level} sentences.\n" \ No newline at end of file