Skip to content
Snippets Groups Projects
Unverified Commit 9a0cd217 authored by William FH's avatar William FH Committed by GitHub
Browse files

Small prompt spelling nit (#19)

* Small prompt spelling nit

* another
parent 45eaeb4c
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ It received the following feedback:
{negative_example['feedback']}
"""
tasks.append(self.llm.agen([Message(role="user", content=meta_prompt),
Message(role='user', content=f"Identify a problem in {self.operation_description} from the given example and suggest how to prevent it without mentioning the specific example. Responde only one sentence.")],
Message(role='user', content=f"Identify a problem in {self.operation_description} from the given example and suggest how to prevent it without mentioning the specific example. Respond only one sentence.")],
max_tokens=100))
responds = await asyncio.gather(*tasks)
......@@ -62,7 +62,7 @@ My current prompt is:
To generate an improved prompt, consider the following:
{advice}
Genergate an improved prompt within five sentences. Do not mention a specific task in the prompt!
Generate an improved prompt within five sentences. Do not mention a specific task in the prompt!
The prompt should be wrapped with <START> and <END>.
"""
new_prompt = await self.llm.agen([Message(role="user", content=meta_prompt)], max_tokens=200)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment