就电子邮件会话培训gpt-3

kmpatx3s  于 2023-03-31  发布在  其他
关注(0)|答案(1)|浏览(167)

我必须在电子邮件数据上训练gpt-3,以便支持团队可以从聊天机器人中快速回答客户之前提出的问题。客户和支持团队之间有电子邮件对话(客户1问问题,支持回答,客户1问另一个问题......)。我必须:
1.过滤重要的对话,只给gpt-3输入它们。2.准备并转换成正确的格式,这样我就可以训练模型了。有没有人对如何实现这些步骤以及使用微调或嵌入有一些想法?
gpt-3必须将问题与支持团队给出的答案联系起来。

dtcbnfnu

dtcbnfnu1#

在许多方面,这类似于支持团队可能准备“知识库”文章的方式。没有灵丹妙药,你必须决定什么是有价值的知识,并过滤电子邮件以找到这方面的实际例子。
例如

From: customer@example.com
To: support@example.com
Subject: Problem with account

Hi,

I'm having trouble accessing my account. Can you help?

Thanks,
Customer

这种React可能被认为是不重要的:

From: support@example.com
To: customer@example.com
Subject: Re: Problem with account

Hello Customer,

I'm sorry to hear that you're having trouble accessing your account. Can you provide more details about the issue you're experiencing?

Regards,
Support Team

但另一种不同的React,比如这样的可能是值得的:

From: support@example.com
To: customer@example.com
Subject: Re: Problem with account

Hello Customer,

Sorry to hear that you're having trouble accessing your account. Here are some steps you can try to resolve the issue:

1. Make sure you're using the correct username and password. (Check that your caps lock is OFF.)
2. Clear your browser's cache and cookies, and re-try.
3. Try resetting your password.

If you continue to have trouble, please don't hesitate to contact us for further assistance.

Regards,
Support Team

因此,您必须决定在电子邮件中找到的哪些问题/答案集是值得学习的,然后格式化为输入输出对进行训练:

Input: I'm having trouble accessing my account. Can you help?
Output: Sorry to hear that you're having trouble accessing your account. Here are some steps you can try to resolve the issue: 1. Make sure you're using the correct username and password. (Check that your caps lock is OFF.) 2. Clear your browser's cache and cookies, and re-try. 3. Try resetting your password. If you continue to have trouble, please don't hesitate to contact us for further assistance.

请注意,这也需要剥离所有不相关的信息,如电子邮件标题,签名,网址,营销等电子邮件。
参见:https://platform.openai.com/docs/guides/fine-tuning/preparing-your-dataset

相关问题