Skip to content

Commit

Permalink
formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
simveit committed Dec 27, 2024
1 parent 94c6777 commit 9ae631e
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions _posts/2024-12-27-synthetic-data-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,30 +116,24 @@ synthetic_question = client.chat.completions.create(
{
"role": "user",
"content": """We want to generate synthetic data to evaluate the capabilities of the chatbot of our client.
Client description:
{{ client_description }}
To generate high quality data, you will first come up with a user type and craft a small background about the user.
You will then craft a query for that user. You will be given a topic that the query will be about.
You will also be given an example for a user type, background, and question for better understanding:
Topic: {{ topic }}
Example type: {{ example_type }}
Example background: {{ example_background }}
Example query: {{ example_query }}
Please make sure the question is on the topic. It is highly important to generate a user type, background, and query about the topic.
""",
Client description:
{{ "{{ client_description " }}}}
To generate high quality data you will first come up with a user type and craft a small background about the user.
You will then craft a query for that user. You will be given a topic that the query will be about.
You will also be given an example for a user type, background and question for better understanding:
Topic: {{ "{{ topic " }}}}
Example type: {{ "{{ example_type " }}}}
Example background: {{ "{{ example_background " }}}}
Example query: {{ "{{ example_query " }}}}
Please make sure that the question is on the topic. It is highly important the generate user type, background and query are about the topic.""",
},
],
response_model=SyntheticQuestion,
context={
"client_description": client_description,
"topic": profile["topic"],
"example_type": profile["example_type"],
"example_background": profile["example_background"],
"example_query": profile["example_query"]
},
context={"client_description": client_description, "topic": profile["topic"],
"example_type": profile["example_type"], "example_background": profile["example_background"],
"example_query": profile["example_query"]},
)

resp = Response(
Expand Down

0 comments on commit 9ae631e

Please sign in to comment.