-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* perf: input guide code * perf: input guide ui * Chat input guide api * Update app chat config store * perf: app chat config field * perf: app context * perf: params * fix: ts * perf: filter private config * perf: filter private config * perf: import workflow * perf: limit max tip amount
- Loading branch information
Showing
123 changed files
with
2,126 additions
and
1,807 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
title: "对话问题引导" | ||
description: "FastGPT 对话问题引导" | ||
icon: "code" | ||
draft: false | ||
toc: true | ||
weight: 350 | ||
--- | ||
|
||
![](/imgs/questionGuide.png) | ||
|
||
## 什么是自定义问题引导 | ||
|
||
你可以为你的应用提前预设一些问题,用户在输入时,会根据输入的内容,动态搜索这些问题作为提示,从而引导用户更快的进行提问。 | ||
|
||
你可以直接在 FastGPT 中配置词库,或者提供自定义词库接口。 | ||
|
||
## 自定义词库接口 | ||
|
||
**请求:** | ||
|
||
```bash | ||
curl --location --request GET 'http://localhost:3000/api/core/chat/inputGuide/query?appId=663c75302caf8315b1c00194&searchKey=你' | ||
``` | ||
|
||
**响应** | ||
|
||
```json | ||
{ | ||
"code": 200, | ||
"statusText": "", | ||
"message": "", | ||
"data": [ | ||
"是你", | ||
"你是谁呀", | ||
"你好好呀", | ||
"你好呀", | ||
"你是谁!", | ||
"你好" | ||
] | ||
} | ||
``` | ||
|
||
|
||
**参数说明:** | ||
|
||
- appId - 应用ID | ||
- searchKey - 搜索关键字 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import { StoreNodeItemType } from '../workflow/type'; | ||
import { StoreEdgeItemType } from '../workflow/type/edge'; | ||
import { AppChatConfigType } from './type'; | ||
|
||
export type AppVersionSchemaType = { | ||
_id: string; | ||
appId: string; | ||
time: Date; | ||
nodes: StoreNodeItemType[]; | ||
edges: StoreEdgeItemType[]; | ||
chatConfig: AppChatConfigType; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export type ChatInputGuideSchemaType = { | ||
_id: string; | ||
appId: string; | ||
text: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.