From 6ea333fb448146d111a606481304da34581ea8a0 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 18 Dec 2024 14:10:18 +0800 Subject: [PATCH] fix: child sparator not escape --- .../components/datasets/create/step-two/index.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web/app/components/datasets/create/step-two/index.tsx b/web/app/components/datasets/create/step-two/index.tsx index 253a3d6763..1f40b55cc2 100644 --- a/web/app/components/datasets/create/step-two/index.tsx +++ b/web/app/components/datasets/create/step-two/index.tsx @@ -230,7 +230,7 @@ const StepTwo = ({ }, parent_mode: parentChildConfig.chunkForContext, subchunk_segmentation: { - separator: parentChildConfig.child.delimiter, + separator: unescape(parentChildConfig.child.delimiter), max_tokens: parentChildConfig.child.maxLength, }, }, // api will check this. It will be removed after api refactored. @@ -630,7 +630,7 @@ const StepTwo = ({
{t('datasetCreation.stepTwo.rules')}
- +
{rules.map(rule => ( @@ -717,7 +717,7 @@ const StepTwo = ({
{t('datasetCreation.stepTwo.parentChunkForContext')}
- +
} @@ -774,7 +774,7 @@ const StepTwo = ({
{t('datasetCreation.stepTwo.childChunkForRetrieval')}
- +
{t('datasetCreation.stepTwo.rules')}
- +
{rules.map(rule => ( @@ -829,7 +829,7 @@ const StepTwo = ({ title={

{t('datasetCreation.stepTwo.qualified')} {!hasSetIndexType - && {t('datasetCreation.stepTwo.recommend')}} + && {t('datasetCreation.stepTwo.recommend')}} {!hasSetIndexType && }