Skip to content

Commit

Permalink
Request citations
Browse files Browse the repository at this point in the history
  • Loading branch information
marekzp committed Sep 11, 2024
1 parent 6dd10f1 commit 71b9f0b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions llm-debate/debater.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def start(self) -> str:
initial_prompt: str = (
f"You are participating in a debate on the topic: '{self.topic}'. "
f"You are {self.position} the proposition. Make a convincing opening "
"argument for your position."
"argument for your position. Please also provide relevant citations "
"supporting your position."
)
response: str = self.llm_client.get_response(initial_prompt, self.model)
self.responses.append(response)
Expand All @@ -39,8 +40,10 @@ def respond_to(self, opponent_argument: str) -> str:
)
prompt += "\n\n".join(self.debate_history)
prompt += (
f"\n\nNow, respond to the opponent's latest argument, maintaining your "
f"position {self.position} the proposition."
f"\n\nNow, carefully consider the opponent's latest arguments and, "
f"maintaining your position {self.position} the proposition, respond to "
"those arguments. Please provide relevant citations supporting your "
"argument."
)

response: str = self.llm_client.get_response(prompt, self.model)
Expand Down

0 comments on commit 71b9f0b

Please sign in to comment.