diff --git a/web/public/iconfont.js b/web/public/iconfont.js index bbb539fea..1516f1700 100644 --- a/web/public/iconfont.js +++ b/web/public/iconfont.js @@ -52,6 +52,12 @@ '' + '' + '' + + ` + + ` + + ` + + ` + ''), ((h) => { var a = (l = (l = document.getElementsByTagName('script'))[ diff --git a/web/src/hooks/use-agent-request.ts b/web/src/hooks/use-agent-request.ts index c172d8983..ba6ce5d95 100644 --- a/web/src/hooks/use-agent-request.ts +++ b/web/src/hooks/use-agent-request.ts @@ -122,18 +122,16 @@ export const useFetchAgentListByPage = () => { : []; const owner = filterValue.owner; - const requestParams = { + const requestParams: Record = { keywords: debouncedSearchString, page_size: pagination.pageSize, page: pagination.current, canvas_category: canvasCategory.length === 1 ? canvasCategory[0] : undefined, - owner_ids: '', }; if (Array.isArray(owner) && owner.length > 0) { - requestParams.owner_ids = - `${owner[0]}` + owner.slice(1).map((id) => `&owner_ids=${id}`); + requestParams.owner_ids = owner.join(','); } const { data, isFetching: loading } = useQuery<{ diff --git a/web/src/layouts/next-header.tsx b/web/src/layouts/next-header.tsx index f7d7c9fb3..26cce2ba0 100644 --- a/web/src/layouts/next-header.tsx +++ b/web/src/layouts/next-header.tsx @@ -1,3 +1,4 @@ +import { IconFontFill } from '@/components/icon-font'; import { RAGFlowAvatar } from '@/components/ragflow-avatar'; import { useTheme } from '@/components/theme-provider'; import { Button } from '@/components/ui/button'; @@ -20,7 +21,6 @@ import { CircleHelp, Cpu, File, - Github, House, Library, MessageSquareText, @@ -114,15 +114,6 @@ export function Header() { className="size-10 mr-[12] cursor-pointer" onClick={handleLogoClick} /> - - - {/* 21.5k stars */} -
+ + + + + +
diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index 4620b32c0..63769fb60 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -1705,7 +1705,6 @@ This delimiter is used to split the input text into several text pieces echo of regularExpressions: 'Regular Expressions', overlappedPercent: 'Overlapped percent', searchMethod: 'Search method', - filenameEmbdWeight: 'Filename embd weight', begin: 'File', parserMethod: 'Parser method', systemPrompt: 'System Prompt', @@ -1771,6 +1770,11 @@ Important structured information may include: names, dates, locations, events, k cancel: 'Cancel', swicthPromptMessage: 'The prompt word will change. Please confirm whether to abandon the existing prompt word?', + tokenizerSearchMethodOptions: { + full_text: 'Full-text', + embedding: 'Embedding', + }, + filenameEmbeddingWeight: 'Filename embedding weight', tokenizerFieldsOptions: { text: 'Text', keywords: 'Keywords', diff --git a/web/src/pages/data-flow/form/tokenizer-form/index.tsx b/web/src/pages/data-flow/form/tokenizer-form/index.tsx index a7b668d16..1b4975db9 100644 --- a/web/src/pages/data-flow/form/tokenizer-form/index.tsx +++ b/web/src/pages/data-flow/form/tokenizer-form/index.tsx @@ -29,12 +29,15 @@ export const FormSchema = z.object({ fields: z.string(), }); -const SearchMethodOptions = buildOptions(TokenizerSearchMethod); - const TokenizerForm = ({ node }: INextOperatorForm) => { const { t } = useTranslation(); const defaultValues = useFormValues(initialTokenizerValues, node); + const SearchMethodOptions = buildOptions( + TokenizerSearchMethod, + t, + `dataflow.tokenizerSearchMethodOptions`, + ); const FieldsOptions = buildOptions( TokenizerFields, t, @@ -67,7 +70,7 @@ const TokenizerForm = ({ node }: INextOperatorForm) => {