fix: child sparator not escape

pull/12097/head
Joel 1 year ago
parent c22c010210
commit 6ea333fb44

@ -230,7 +230,7 @@ const StepTwo = ({
}, },
parent_mode: parentChildConfig.chunkForContext, parent_mode: parentChildConfig.chunkForContext,
subchunk_segmentation: { subchunk_segmentation: {
separator: parentChildConfig.child.delimiter, separator: unescape(parentChildConfig.child.delimiter),
max_tokens: parentChildConfig.child.maxLength, max_tokens: parentChildConfig.child.maxLength,
}, },
}, // api will check this. It will be removed after api refactored. }, // api will check this. It will be removed after api refactored.
@ -630,7 +630,7 @@ const StepTwo = ({
<div className='inline-flex shrink-0'> <div className='inline-flex shrink-0'>
<TextLabel>{t('datasetCreation.stepTwo.rules')}</TextLabel> <TextLabel>{t('datasetCreation.stepTwo.rules')}</TextLabel>
</div> </div>
<Divider className='grow' bgStyle='gradient'/> <Divider className='grow' bgStyle='gradient' />
</div> </div>
<div className='mt-1'> <div className='mt-1'>
{rules.map(rule => ( {rules.map(rule => (
@ -717,7 +717,7 @@ const StepTwo = ({
<div className='inline-flex shrink-0'> <div className='inline-flex shrink-0'>
<TextLabel>{t('datasetCreation.stepTwo.parentChunkForContext')}</TextLabel> <TextLabel>{t('datasetCreation.stepTwo.parentChunkForContext')}</TextLabel>
</div> </div>
<Divider className='grow' bgStyle='gradient'/> <Divider className='grow' bgStyle='gradient' />
</div> </div>
<RadioCard className='mt-1' <RadioCard className='mt-1'
icon={<Image src={Note} alt='' />} icon={<Image src={Note} alt='' />}
@ -774,7 +774,7 @@ const StepTwo = ({
<div className='inline-flex shrink-0'> <div className='inline-flex shrink-0'>
<TextLabel>{t('datasetCreation.stepTwo.childChunkForRetrieval')}</TextLabel> <TextLabel>{t('datasetCreation.stepTwo.childChunkForRetrieval')}</TextLabel>
</div> </div>
<Divider className='grow' bgStyle='gradient'/> <Divider className='grow' bgStyle='gradient' />
</div> </div>
<div className='flex gap-3 mt-1'> <div className='flex gap-3 mt-1'>
<DelimiterInput <DelimiterInput
@ -804,7 +804,7 @@ const StepTwo = ({
<div className='inline-flex shrink-0'> <div className='inline-flex shrink-0'>
<TextLabel>{t('datasetCreation.stepTwo.rules')}</TextLabel> <TextLabel>{t('datasetCreation.stepTwo.rules')}</TextLabel>
</div> </div>
<Divider className='grow' bgStyle='gradient'/> <Divider className='grow' bgStyle='gradient' />
</div> </div>
<div className='mt-1'> <div className='mt-1'>
{rules.map(rule => ( {rules.map(rule => (

Loading…
Cancel
Save