From d328ddcb1b5d666088b28dbf422aaea00a0a23aa Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Wed, 11 Sep 2024 01:24:16 +0900 Subject: [PATCH] chore: update plansearch.py minor fix --- plansearch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plansearch.py b/plansearch.py index a9316d03..62b04838 100644 --- a/plansearch.py +++ b/plansearch.py @@ -10,7 +10,7 @@ def __init__(self, system_prompt: str, client, model: str): self.model = model def generate_observations(self, problem: str, num_observations: int = 3) -> List[str]: - prompt = f"""You are an expert Python programmer. You will be given an competitive programming question + prompt = f"""You are an expert Python programmer. You will be given a competitive programming question (problem specification). You will return several useful, non-obvious, and correct observations about the problem, like hints to solve the problem. You will NOT return any code. Be as creative as possible, going beyond what you think is intuitively correct. @@ -32,7 +32,7 @@ def generate_observations(self, problem: str, num_observations: int = 3) -> List return [obs.strip() for obs in observations if obs.strip()] def generate_derived_observations(self, problem: str, observations: List[str], num_new_observations: int = 2) -> List[str]: - prompt = f"""You are an expert Python programmer. You will be given an competitive programming question + prompt = f"""You are an expert Python programmer. You will be given a competitive programming question (problem specification) and several correct observations about the problem. You will brainstorm several new, useful, and correct observations about the problem, derived from the given observations. You will NOT return any code. Be as creative as possible, going