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) => {