LangChain specific default response

题意:

LangChain 特定的默认响应

问题背景:

using LangChain and OpenAI, how can I have the model return a specific default response? for instance, let's say I have these statement/responses

使用 LangChain 和 OpenAI 时,如何让模型返回特定的默认响应?
例如,假设我有如下的陈述/响应:

Statement: Hi, I need to update my email address.
Answer: Thank you for updating us. Please text it here.

Statement: Hi, I have a few questions regarding my case. Can you call me back?
Answer: Hi. Yes, one of our case managers will give you a call shortly. 

if the input is similar to one of the above statements, I would like to have OpenAI respond with the specific answer.

如果输入与上述陈述之一相似,我希望 OpenAI 返回特定的回答。

你可能感兴趣的:(AI,langchain,python,openai,api)