Chain of thought prompt using OpenAI to query an order list providing incorrect answer

题意:使用 OpenAI 的链式思维提示查询订单列表时提供了错误答案。 问题背景: I'm new to prompt engineering. I'm trying to create an AI bot to re

题意:使用 OpenAI 的链式思维提示查询订单列表时提供了错误答案。

问题背景:

I'm new to prompt engineering. I'm trying to create an AI bot to retrieve the order data based on the user's queries using OpenAI and gpt-3.5-turbo model. Below is the Python code that also contains the prompt:

我对提示工程还很陌生。 我正在尝试创建一个 AI 机器人,以便根据用户的查询使用 OpenAI 和 gpt-3.5-turbo 模型来检索订单数据。以下是包含提示的 Python 代码:

from openai import OpenAI
import os
os.environ["OPENAI_API_KEY"] = "sk-*****************************************"

client = OpenAI()
prompt = """
You are a helpful AI bot who can answer queries on orders that were processed by a logistics company. Use the orders list under the header "Order list:" to answer the question under header "Question:". Pl

发布者:admin,转转请注明出处:http://www.yc00.com/web/1754772753a5200274.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信