Skip to content

Commit b421178

Browse files
committed
Put LOOSE_XML_ANSWER_USER_PROMPT in the model prompts file
1 parent 351945a commit b421178

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ether0/model_prompts.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ def extract_thought_answer_strict(
118118
return None, None # Consider nested answer as a failure
119119

120120

121+
LOOSE_XML_ANSWER_USER_PROMPT = (
122+
"When answering,"
123+
" be sure to place the final answer as"
124+
" SMILES notation into XML tags <answer></answer>."
125+
" An example is <answer>CCO</answer>."
126+
)
127+
128+
121129
def extract_answer_loose(text: str | None) -> str:
122130
"""
123131
Extract thought and answer from text using a loose XML pattern.

0 commit comments

Comments
 (0)