Skip to content

Commit 8f1090d

Browse files
authored
Merge pull request #1 from eltociear/patch-1
chore: update plansearch.py
2 parents 663bbe0 + d328ddc commit 8f1090d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plansearch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def __init__(self, system_prompt: str, client, model: str):
1010
self.model = model
1111

1212
def generate_observations(self, problem: str, num_observations: int = 3) -> List[str]:
13-
prompt = f"""You are an expert Python programmer. You will be given an competitive programming question
13+
prompt = f"""You are an expert Python programmer. You will be given a competitive programming question
1414
(problem specification). You will return several useful, non-obvious, and correct observations
1515
about the problem, like hints to solve the problem. You will NOT return any code. Be as
1616
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
3232
return [obs.strip() for obs in observations if obs.strip()]
3333

3434
def generate_derived_observations(self, problem: str, observations: List[str], num_new_observations: int = 2) -> List[str]:
35-
prompt = f"""You are an expert Python programmer. You will be given an competitive programming question
35+
prompt = f"""You are an expert Python programmer. You will be given a competitive programming question
3636
(problem specification) and several correct observations about the problem.
3737
You will brainstorm several new, useful, and correct observations about the problem, derived
3838
from the given observations. You will NOT return any code. Be as creative as possible, going

0 commit comments

Comments
 (0)