gpt-3.5-turbo-0125· OpenAI
WildChat-4.8M (AI2)
create a code for loading prompt templates from a yaml file . each template would be…
- User
create a code for loading prompt templates from a yaml file . each template would be having system_prompt and user_prompt . create a sample yaml structure also
- Assistant
Here is a sample YAML structure for loading prompt templates:
yamlprompt_templates: - system_prompt: "Welcome, how can I assist you today?" user_prompt: "I would like to inquire about your services." - system_prompt: "Please provide more details about your question." user_prompt: "I need help with troubleshooting my device." - system_prompt: "Thank you for your request. Our team will get back to you soon." user_prompt: "Great, looking forward to hearing from you."And here is the corresponding Python code to load the prompt templates from the YAML file:
python