mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-19 01:54:04 +00:00

* add new doc (#5175) Co-authored-by: dreamer6680 <146868355@qq.com> * Test docs (#5235) * fix: change the page of doc * chore: add new dependencies, update global styles/layout, optimize docs, add Feishu & GitHub icons, update API examples * fix: docs/index 404 not found * Update environment variable names, optimize styles, add new API routes, fix component styles, adjust documentation, and update GitHub and Feishu icons * update readme * feat: add a linkfastgpt compontent * feat: update new doc * fix:remove unuse page and redirect homepage to docs (#5288) * fix:remove some unuse doc * fix: redirect homepage to doc * git ignore * fix:navbar to index (#5295) * sidbar * fix: navtab unlight (#5298) * doc --------- Co-authored-by: dreamer6680 <1468683855@qq.com> Co-authored-by: dreamer6680 <146868355@qq.com>
51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
---
|
||
title: 对话问题引导
|
||
description: FastGPT 对话问题引导
|
||
---
|
||
|
||

|
||
|
||
## 什么是自定义问题引导
|
||
|
||
你可以为你的应用提前预设一些问题,用户在输入时,会根据输入的内容,动态搜索这些问题作为提示,从而引导用户更快的进行提问。
|
||
|
||
你可以直接在 FastGPT 中配置词库,或者提供自定义词库接口。
|
||
|
||
## 自定义词库接口
|
||
|
||
需要保证这个接口可以被用户浏览器访问。
|
||
|
||
**请求:**
|
||
|
||
```bash
|
||
curl --location --request GET 'http://localhost:3000/api/core/chat/inputGuide/query?appId=663c75302caf8315b1c00194&searchKey=你'
|
||
```
|
||
|
||
其中 `appId` 为应用ID,`searchKey` 为搜索关键字,最多是50个字符。
|
||
|
||
**响应**
|
||
|
||
```json
|
||
{
|
||
"code": 200,
|
||
"statusText": "",
|
||
"message": "",
|
||
"data": [
|
||
"是你",
|
||
"你是谁呀",
|
||
"你好好呀",
|
||
"你好呀",
|
||
"你是谁!",
|
||
"你好"
|
||
]
|
||
}
|
||
```
|
||
|
||
data是一个数组,包含了搜索到的问题,最多只需要返回5个问题。
|
||
|
||
|
||
**参数说明:**
|
||
|
||
- appId - 应用ID
|
||
- searchKey - 搜索关键字
|