mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-24 22:03:54 +00:00
Fix: Custom delimiter does not take effect when document type is link (#2565)
Co-authored-by: 勤劳上班的卑微小张 <jiazhan.zhang@ggimage.com>
This commit is contained in:
@@ -159,7 +159,8 @@ export const reloadCollectionChunks = async ({
|
|||||||
// split data
|
// split data
|
||||||
const { chunks } = splitText2Chunks({
|
const { chunks } = splitText2Chunks({
|
||||||
text: newRawText,
|
text: newRawText,
|
||||||
chunkLen: col.chunkSize || 512
|
chunkLen: col.chunkSize || 512,
|
||||||
|
customReg: col.chunkSplitter ? [col.chunkSplitter] : [],
|
||||||
});
|
});
|
||||||
|
|
||||||
// insert to training queue
|
// insert to training queue
|
||||||
|
Reference in New Issue
Block a user