Files
FastGPT/docSite/content/zh-cn/docs/course/chat_input_guide.md
Archer fe71efbbd2 Collection tag (#2266)
* feat: collection metadata filter (#2211)

* feat: add dataset collection tags (#2231)

* dataset page

* workflow page

* move

* fix

* add plus filter

* fix

* fix

* fix

* perf: collection tag code

* fix: collection tags (#2249)

* fix

* fix

* fix tags of dataset page

* fix tags of workflow page

* doc

* add comments

* fix: collection tags (#2264)

* fix: metadata filter

* feat: search filter

---------

Co-authored-by: heheer <1239331448@qq.com>
Co-authored-by: heheer <heheer@sealos.io>
2024-08-05 12:08:46 +08:00

1.1 KiB
Raw Blame History

title, description, icon, draft, toc, weight
title description icon draft toc weight
对话问题引导 FastGPT 对话问题引导 code false true 108

什么是自定义问题引导

你可以为你的应用提前预设一些问题,用户在输入时,会根据输入的内容,动态搜索这些问题作为提示,从而引导用户更快的进行提问。

你可以直接在 FastGPT 中配置词库,或者提供自定义词库接口。

自定义词库接口

需要保证这个接口可以被用户浏览器访问。

请求:

curl --location --request GET 'http://localhost:3000/api/core/chat/inputGuide/query?appId=663c75302caf8315b1c00194&searchKey=你'

其中 appId 为应用IDsearchKey 为搜索关键字最多是50个字符。

响应

{
  "code": 200,
  "statusText": "",
  "message": "",
  "data": [
    "是你",
    "你是谁呀",
    "你好好呀",
    "你好呀",
    "你是谁!",
    "你好"
  ]
}

data是一个数组包含了搜索到的问题最多只需要返回5个问题。

参数说明:

  • appId - 应用ID
  • searchKey - 搜索关键字