Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plansearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down