This commit is contained in:
Archer
2023-11-28 19:28:46 +08:00
committed by GitHub
parent e765c3bf95
commit a74e1d7166
75 changed files with 1139 additions and 417 deletions

View File

@@ -4,7 +4,8 @@ import type {
LLMModelItemType,
VectorModelItemType,
AudioSpeechModels,
WhisperModelType
WhisperModelType,
ReRankModelItemType
} from '@fastgpt/global/core/ai/model.d';
import type { FeConfigsType } from '@fastgpt/global/common/system/types/index.d';
@@ -19,6 +20,7 @@ export type ConfigFileType = {
ExtractModels: FunctionModelItemType[];
QGModels: LLMModelItemType[];
VectorModels: VectorModelItemType[];
ReRankModels: ReRankModelItemType[];
AudioSpeechModels: AudioSpeechModelType[];
WhisperModel: WhisperModelType;
};
@@ -29,6 +31,7 @@ export type InitDateResponse = {
extractModels: FunctionModelItemType[];
vectorModels: VectorModelItemType[];
audioSpeechModels: AudioSpeechModels[];
reRankModels: ReRankModelItemType[];
feConfigs: FeConfigsType;
priceMd: string;
systemVersion: string;

View File

@@ -1,4 +1,5 @@
import { AppSimpleEditConfigTemplateType } from '@fastgpt/global/core/app/type.d';
import { DatasetSearchModeEnum } from '@fastgpt/global/core/dataset/constant';
export const SimpleModeTemplate_FastGPT_Universal: AppSimpleEditConfigTemplateType = {
id: 'fastgpt-universal',
@@ -17,7 +18,7 @@ export const SimpleModeTemplate_FastGPT_Universal: AppSimpleEditConfigTemplateTy
datasets: true,
similarity: true,
limit: true,
rerank: true,
searchMode: DatasetSearchModeEnum.embedding,
searchEmptyText: true
},
userGuide: {

View File

@@ -1,5 +1,5 @@
import { PushDatasetDataChunkProps } from '@fastgpt/global/core/dataset/api';
import { TrainingModeEnum } from '@fastgpt/global/core/dataset/constant';
import { DatasetSearchModeEnum, TrainingModeEnum } from '@fastgpt/global/core/dataset/constant';
import {
DatasetDataIndexItemType,
SearchDataResponseItemType
@@ -43,7 +43,7 @@ export type SearchTestProps = {
datasetId: string;
text: string;
limit?: number;
rerank?: boolean;
searchMode?: `${DatasetSearchModeEnum}`;
};
export type SearchTestResponse = {
list: SearchDataResponseItemType[];