首页 > 其他分享 >[Prompt] Temperature

[Prompt] Temperature

时间:2023-05-02 15:22:35浏览次数:35  
标签:customer Prompt Temperature sentiment review our your Thank

With Temperature = 0, everytimes it generates same response, with high temperature, it add more randomness into the response.

prompt = f"""
You are a customer service AI assistant.
Your task is to send an email reply to a valued customer.
Given the customer email delimited by ```, \
Generate a reply to thank the customer for their review.
If the sentiment is positive or neutral, thank them for \
their review.
If the sentiment is negative, apologize and suggest that \
they can reach out to customer service. 
Make sure to use specific details from the review.
Write in a concise and professional tone.
Sign the email as `AI customer agent`.
Customer review: ```{review}```
Review sentiment: {sentiment}
"""
response = get_completion(prompt, temperature=0.7)
print(response)

 

Dear valued customer,

Thank you for taking the time to share your thoughts about our product. We are sorry to hear that you had a negative experience with the pricing of our 17 piece system. We apologize for any inconvenience this may have caused. 

We take pride in our products and it's unfortunate to hear that you experienced a decrease in quality. We understand that this can be frustrating and we would like to help. Please feel free to contact our customer service department and they will be happy to assist you further.

Thank you again for your feedback and for choosing our product. We appreciate your business and hope to have the opportunity to serve you better in the future.

Best regards,

AI customer agent

 

Dear valued customer,

Thank you for taking the time to leave a review about our 17 piece system. We appreciate your feedback and we're sorry to hear that you had a negative experience with the recent price increase and the quality of the product. We apologize for any inconvenience this may have caused you. 

Please know that we take customer satisfaction very seriously and we would like to offer our assistance in resolving your issue. If there's anything we can do to help, please don't hesitate to reach out to our customer service team. 

Thank you again for your feedback and for choosing our brand. We hope to have the opportunity to serve you better in the future.

Best regards,
AI customer agent

 

标签:customer,Prompt,Temperature,sentiment,review,our,your,Thank
From: https://www.cnblogs.com/Answer1215/p/17367740.html

相关文章

  • [Prompt] Transforming
    UniversalTranslatorImagineyouareinchargeofITatalargemultinationale-commercecompany.UsersaremessagingyouwithITissuesinalltheirnativelanguages.Yourstaffisfromallovertheworldandspeaksonlytheirnativelanguages.Youneed......
  • 迁移Prompt–解决Prompt Tuning三大问题!
    文|Harris刘鹏飞博士将近代NLP的研究划归为四种范式[1]并把预训练语言模型加持下的PromptLearning看作是近代自然语言处理技术发展的“第四范式”。当我们使用新范式的方法的时候,能够意识到它带来的优异性可能是以某种“人力”牺牲为代价的。而如何让这种人力代价降到最低,往往......
  • 吴恩达Prompt课 - 02 构建原则
    吴恩达和OpenAI一起制作了节一个半小时的,面向开发者的关于《ChatGPTPromptEngineering》的课,对自己Prompt提高非常有帮助。英文课程地址:https://www.deeplearning.ai/short-courses/chatgpt-prompt-engineering-for-developers/我反复学习后,针对每小节的例子和关键部分按......
  • 吴恩达Prompt课 - 01 介绍
    吴恩达和OpenAI一起制作了节一个半小时的,面向开发者的关于《ChatGPTPromptEngineering》的课,对自己Prompt提高非常有帮助。英文课程地址:https://www.deeplearning.ai/short-courses/chatgpt-prompt-engineering-for-developers/我反复学习后,针对每小节的例子和关键部分按......
  • Langchain框架 prompt injection注入
    Langchain框架promptinjection注入PromptInjection是一种攻击技术,黑客或恶意攻击者操纵AI模型的输入值,以诱导模型返回非预期的结果Langchain框架LangChain是一个基于大语言模型进行应用开发的框架。所谓大语言模型(LargeLanguageModels,LLMs),是指基于海量语料训练、......
  • 7个AI绘画工具Prompt站
    ChatGPT的流行使得AI成为2023最大的科技风口,同时驱动了各种类型的AI发展。这些AI正在改变甚至颠覆很多行业的业务模式。ChatGPT推动了生成式AI革命的到来,这正在彻底颠覆内容的生产方式。自PGC、UGC之后,内容生成终于迎来下一个发展阶段——AIGC。AI工具种类也......
  • 《花雕学AI》24:如何用万能Prompt公式与ChatGPT进行高效的对话测试
    引言你是否想要与人工智能进行有趣、有价值、有说服力的对话?你是否想要使用ChatGPT这个强大而灵活的对话生成器来创造出任何类型和主题的对话?如果是这样,那么你需要了解一个简单而强大的工具,就是万能Prompt公式。万能Prompt公式是一种用于生成任何类型和主题的对话的模板,它可以帮......
  • 你也可以动手参数有效微调:LoRA、Prefix Tuning、P-Tuning、Prompt Tuning
    Part1前言随着大语言模型的流行,如何让大模型在消费级GPU上进行微调训练成为了热点。掌握参数有效微调成为每个自然语言处理工程师必不可少的技能,正好huggingface开源了一个PEFT库,让我们也能够自己动手去了解参数有效微调。接下来以中文情感分析(二分类)去了解下参数有效微调。使......
  • Prompt
    https://mp.weixin.qq.com/s/vyKCCjAEbuOxpKOd6zhz3w一文跟进Prompt进展!综述+15篇最新论文逐一梳理原创ZenMoore夕小瑶科技说2021-11-0412:46https://mp.weixin.qq.com/s/uaS-YjYcEU_3En-Q96YMzwFine-tune之后的NLP新范式:Prompt越来越火,CMU华人博士后出了篇综述文章刘鹏......
  • JavaScript 之 confirm,alert,prompt
    //confirmfunctiondisp_confirm(){varr=confirm("Pressabutton!")if(r==true){alert("YoupressedOK!")}else{alert("YoupressedCancel!")}}//alert<script>window.alert("确......