diff --git a/README.md b/README.md index cb5291d..e10d0be 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,5 @@ This project stores [Plugins](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web - [DuckDuckGoLiteSearch](./plugins/duckduckgolite) - [gapier](./plugins/gapier) - [Webpilot](./plugins/webpilot) +- [FastGPT](./plugins/fastgpt) diff --git a/plugins/fastgpt/README.md b/plugins/fastgpt/README.md new file mode 100644 index 0000000..4874077 --- /dev/null +++ b/plugins/fastgpt/README.md @@ -0,0 +1,34 @@ +# FastGPT + +> FastGPT 是一个基于 LLM 大语言模型的知识库问答系统,提供开箱即用的数据处理、模型调用等能力。同时可以通过 Flow 可视化进行工作流编排,从而实现复杂的问答场景! + +## Schema +[openapi.json](./openapi.json) + +## Servers + +`https://api.fastgpt.in` + +## Operations + +1. GetDatasetList +> Get Dataset list with `id`, `name` and other info + +2. SearchFromDatasetById +> search chunks from dataset by `datesetId` + +## Authentication + +type: bearer +location: header + +## Context Prompts +``` +please get `datasetId` which name is "NextChat README", and query context from this dataset, and then answer user's question. +``` + +## Preview + +![Preview](./preview.png) + + diff --git a/plugins/fastgpt/openapi.json b/plugins/fastgpt/openapi.json new file mode 100644 index 0000000..5b848ea --- /dev/null +++ b/plugins/fastgpt/openapi.json @@ -0,0 +1,79 @@ +{ + "openapi": "3.1.0", + "info": { + "title": "FastGPT", + "description": "FastGPT 是一个基于 LLM 大语言模型的知识库问答系统,提供开箱即用的数据处理、模型调用等能力。同时可以通过 Flow 可视化进行工作流编排,从而实现复杂的问答场景!", + "version": "v1.0.0" + }, + "servers": [ + { + "url": "https://api.fastgpt.in" + } + ], + "paths": { + "/api/core/dataset/list": { + "post": { + "operationId": "GetDatasetList", + "description": "Get Dataset list with `id`, `name` and other info", + "deprecated": false, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "parentId": { + "type": "string" + } + } + } + } + } + } + } + }, + "/api/core/dataset/searchTest": { + "post": { + "operationId": "SearchFromDatasetById", + "description": "search chunks from dataset by `datesetId`", + "deprecated": false,"requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["datasetId", "text"], + "properties": { + "datasetId": { + "type": "string", + "description": "id for dataset, can query from `GetDatasetList`" + }, + "text": { + "type": "string", + "description": "keyword to query from dataset" + }, + "limit": { + "type": "number", + "description": "limit for response data." + }, + "searchMode": { + "type": "string", + "description": "can be `embedding`" + }, + "usingReRank": { + "type": "boolean", + "description": "can be `false`" + } + } + } + } + } + } + } + } + }, + "components": { + "schemas": {} + } +} diff --git a/plugins/fastgpt/preview.png b/plugins/fastgpt/preview.png new file mode 100644 index 0000000..8996e30 Binary files /dev/null and b/plugins/fastgpt/preview.png differ