Skip to content

Commit df4ed1e

Browse files
fix: insist for the pydantic parser
1 parent d0ff898 commit df4ed1e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

WDoc/utils/prompts.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ def remove_thoughts(cls, values) -> List[str]:
267267
presentation of breast cancers", "classification of breast cancer", etc.
268268
You can also anticipate the answer like "the most used chemotherapies
269269
for breast cancers are anthracyclines, taxanes and cyclophosphamide".
270+
271+
DO NOT reply anything that is not either a thought or the queries. You
272+
have to do your thinking INSIDE the thought json.
270273
""".strip()+ "\n" + multiquery_parser.get_format_instructions()),
271274
HumanMessagePromptTemplate.from_template(
272275
template="Here's the query to expand: '''{question}'''"""),

0 commit comments

Comments
 (0)