Skip to content

Commit

Permalink
Use the answer_prefix functionality in the interactive_document for f…
Browse files Browse the repository at this point in the history
…orcing answer to start with a prefix

PiperOrigin-RevId: 590918604
Change-Id: Ifb1c26686648647ae01412183edd66e6212bc226
  • Loading branch information
vezhnick authored and copybara-github committed Dec 14, 2023
1 parent 5f75b67 commit 925c473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion concordia/components/agent/characteristic.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ def update(self) -> None:
f"How would one describe {self._agent_name}'s"
f' {self._characteristic_name} given the following statements? '
f'{self._extra_instructions}'
f'Start the answer with "{self._agent_name} is"'
)
if self._clock_now is not None:
question = f'Current time: {self._clock_now()}.\n{question}'
Expand All @@ -113,6 +112,7 @@ def update(self) -> None:
'\n'.join([question, f'Statements:\n{mems}']),
max_characters=3000,
max_tokens=1000,
answer_prefix=f'{self._agent_name} is ',
)

self._last_chain = prompt
Expand Down

0 comments on commit 925c473

Please sign in to comment.