You are AI data developer, create example of fine-tune data and based on fine-tuned data create set of evaluations, to check how model will answer for fine-tuned data
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Certainly! Below is an example of how to create fine-tune data and a set of evaluations to check how a model will answer based on the fine-tuned data. Let's assume we are fine-tuning a language model for a customer support chatbot that specializes in handling inquiries about an online streaming service.
Fine-Tune Data
The fine-tune data should consist of pairs of prompts and completions. The prompts are the customer's questions or statements, and the completions are the desired responses from the chatbot.
Example Fine-Tune Data
json
[
{
"prompt": "Hi, I'm having trouble logging into my account.",
"completion": "Hello! I'm sorry to hear you're having trouble logging in. Please try resetting your password by clicking the 'Forgot Password' link on the login page. If you continue to experience issues, please let me know!"
},
{
"prompt": "What devices are supported by your streaming service?",
"completion": "Our streaming service supports a wide range of devices including smartphones, tablets, smart TVs, gaming consoles, and computers. For a complete list of supported devices, please visit our Help Center."
},
{
"prompt": "How can I cancel my subscription?",
"completion": "To cancel your subscription, go to the 'Account' section, select 'Subscription,' and then choose the 'Cancel Subscription' option. You will receive a confirmation email once the cancellation is processed. Note that you will have access to the service until the end of your current billing cycle."
},
{
"prompt": "I can't find the show I want to watch. Can you help?",
"completion": "I'd be happy to help you find the show! Please provide me with the name of the show, and I will check if it is available on our platform. If it isn't, I can suggest some similar titles that you might enjoy."
},
{
"prompt": "Is there a family plan available?",
"completion": "Yes, we offer a family plan that allows up to six family members to have their own profiles and stream content simultaneously. The family plan is a cost-effective way to share the service with your loved ones. You can sign up for the family plan in the 'Account' section under 'Subscriptions.'"
}
]
Evaluations
To evaluate how well the model performs on the fine-tuned data we will create a set of evaluation prompts. These prompts will be similar to the prompts in the fine-tune data but with slight variations to ensure the model can generalise.
Example Evaluations
Evaluation for Login Issue
Prompt: "I can't log into my account. What should I do?"
Expected Output: The model should suggest resetting the password and provide further assistance if the issue persists.
Evaluation for Supported Devices
Prompt: "Which devices can I use to stream your service?"
Expected Output: The model should list the supported devices and direct the user to the Help Centre for more information
Evaluation for Subscription Cancellation
Prompt: "How do I stop my subscription?"
Expected Output: The model should guide the user through the steps to cancel their subscription and mention the access period until the end of the current billing cycle.
Evaluation for Finding a Show
Prompt: "I'm looking for a specific TV show but can't find it. Can you assist?"
Expected Output: The model should ask for the name of the show and offer to check its availability or suggest similar titles.
Evaluation for Family Plan
Prompt: "Do you have a plan for families?"
Expected Output: The model should explain the family plan, including the number of profiles and simultaneous streams allowed, and how to sign up for it.
Evaluation Metrics
To quantitatively evaluate the model's performance, you can use the following metrics:
Accuracy: Measure the percentage of evaluations where the model's response matches the expected output.
Relevance: Evaluate how relevant the model's responses are to the given prompts. This can be done through manual review or using relevance scores.
Consistency: Check if the model provides consistent responses for similar prompts.
Fluency: Assess the grammatical correctness and naturalness of the model's responses
Customer Satisfaction: If possible simulate customer responses to the model outputs to gauge satisfaction.
Evaluation Process
Automated Evaluation:
Use a script to automatically feed the evaluation prompts to the fine-tuned model and collect the responses.
Compare the model's responses to the expected outputs using the metrics above and calculate scores for each metric.
Manual Evaluation
Have human evaluators review a sample of the model's responses.
Rate each response based on relevance, consistency, fluency, and overall satisfaction.
Calculate the average scores for each metric.
By following this process you can effectively evaluate how well your fine-tuned language model performs on the specific tasks it was trained for.