* model config

* feat: normalization embedding

* perf: mark ui

* perf: i18n

* fix: rerank error tip
This commit is contained in:
Archer
2025-02-12 16:36:21 +08:00
committed by GitHub
parent 132cf69372
commit abe082b9ab
13 changed files with 19 additions and 33 deletions

View File

@@ -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;