如何从 AI Chatbot 中获得最佳效果
为确保您的 AI 聊天机器人提供最准确、最有帮助的回复,请遵循以下指导原则:
1. 在回复中嵌入标题
在 text(答案)中嵌入 heading(问题)有助于 AI 更好地理解上下文,并提供更相关的回复。
通过在答案中重复问题,AI 可以更好地将用户查询与正确信息相匹配。
替代工具
此外,Excel 还提供了一个功能,使您无需将问题逐一插入答案中。请按照以下指南操作:
打开 Excel 文件
File -> Option -> Custom ribbon
勾选右侧面板上的 "Developer"
点击 "OK" 按钮
Developer tab -> Visual Basic (Alt + F11)
Insert -> Module
粘贴准备好的代码
替换工作表名称
关闭
Macros (Alt + F8)
选择创建的模块
运行
Heading 将添加到 text 中
Visual Basic's code:
Sub MoveHeadingToText()
Dim ws As Worksheet
Dim lastRow As Long
Dim i As Long
Dim heading As String
Dim text As String
' Set the worksheet
Set ws = ThisWorkbook.Sheets("Sheet1") ' Change "Sheet1" to the name of your sheet
' Find the last row with data in column B (Heading)
lastRow = ws.Cells(ws.Rows.Count, "B").End(xlUp).Row
' Loop through each row and update the Text column
For i = 2 To lastRow ' Assuming the data starts from row 2
heading = ws.Cells(i, 2).Value
text = ws.Cells(i, 3).Value
' Trim any leading/trailing spaces or line breaks from the Heading
heading = Trim(Replace(Replace(Replace(heading, vbCrLf, " "), vbLf, " "), vbCr, " "))
' Prepend the Heading to the Text with a comma and a space
ws.Cells(i, 3).Value = heading & ", " & text
Next i
End Sub
2. 使用简洁明了的语言
语言要简单直接。避免行话或过于复杂的句子。
3. 构建信息结构
用标题、要点和编号列表来组织内容,使 AI 更容易解析。
4. 提供全面的答案
确保您的答案全面,涵盖问题的所有方面。
5. 使用相关关键词
在文本中自然融入相关关键词,帮助 AI 更有效地匹配问题和答案。
最后更新于
这有帮助吗?