mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 20:37:48 +00:00
i18n perf (#3770)
* model config * feat: normalization embedding * perf: mark ui * perf: i18n * fix: rerank error tip
This commit is contained in:
@@ -25,6 +25,9 @@ export function reRankRecall({
|
||||
if (!model) {
|
||||
return Promise.reject('no rerank model');
|
||||
}
|
||||
if (documents.length === 0) {
|
||||
return Promise.resolve([]);
|
||||
}
|
||||
|
||||
const { baseUrl, authorization } = getAxiosConfig();
|
||||
|
||||
|
@@ -635,7 +635,7 @@ export async function searchDatasetData(
|
||||
return true;
|
||||
});
|
||||
try {
|
||||
return datasetDataReRank({
|
||||
return await datasetDataReRank({
|
||||
query: reRankQuery,
|
||||
data: filterSameDataResults
|
||||
});
|
||||
|
@@ -142,7 +142,7 @@ export const checkQuoteQAValue = (quoteQA?: SearchDataResponseItemType[]) => {
|
||||
if (quoteQA.length === 0) {
|
||||
return [];
|
||||
}
|
||||
if (quoteQA.some((item) => !item.q)) {
|
||||
if (quoteQA.some((item) => typeof item !== 'object' || !item.q)) {
|
||||
return undefined;
|
||||
}
|
||||
return quoteQA;
|
||||
|
@@ -165,7 +165,7 @@
|
||||
"common.Not open": "Not Open",
|
||||
"common.OK": "OK",
|
||||
"common.Open": "Open",
|
||||
"common.Operation": "Operation",
|
||||
"Operation": "Operation",
|
||||
"common.Other": "Other",
|
||||
"common.Output": "Output",
|
||||
"common.Params": "Parameters",
|
||||
@@ -179,7 +179,7 @@
|
||||
"common.Remove": "Remove",
|
||||
"common.Rename": "Rename",
|
||||
"common.Request Error": "Request Error",
|
||||
"common.Require Input": "Required",
|
||||
"Required_input": "Required",
|
||||
"common.Reset": "Reset",
|
||||
"common.Restart": "Restart",
|
||||
"common.Role": "Permission",
|
||||
|
@@ -169,7 +169,7 @@
|
||||
"common.Not open": "未开启",
|
||||
"common.OK": "好的",
|
||||
"common.Open": "打开",
|
||||
"common.Operation": "操作",
|
||||
"Operation": "操作",
|
||||
"common.Other": "其他",
|
||||
"common.Output": "输出",
|
||||
"common.Params": "参数",
|
||||
@@ -183,7 +183,7 @@
|
||||
"common.Remove": "移除",
|
||||
"common.Rename": "重命名",
|
||||
"common.Request Error": "请求异常",
|
||||
"common.Require Input": "必填",
|
||||
"Required_input": "必填",
|
||||
"common.Reset": "恢复默认",
|
||||
"common.Restart": "重新开始",
|
||||
"common.Role": "权限",
|
||||
|
@@ -164,7 +164,7 @@
|
||||
"common.Not open": "未開啟",
|
||||
"common.OK": "確定",
|
||||
"common.Open": "開啟",
|
||||
"common.Operation": "操作",
|
||||
"Operation": "操作",
|
||||
"common.Other": "其他",
|
||||
"common.Output": "輸出",
|
||||
"common.Params": "參數",
|
||||
@@ -178,7 +178,7 @@
|
||||
"common.Remove": "移除",
|
||||
"common.Rename": "重新命名",
|
||||
"common.Request Error": "請求錯誤",
|
||||
"common.Require Input": "必填",
|
||||
"Required_input": "必填",
|
||||
"common.Reset": "恢復預設",
|
||||
"common.Restart": "重新開始",
|
||||
"common.Role": "權限",
|
||||
|
Reference in New Issue
Block a user