Feat: Reparse a file shall reuse existing chunks if possible #3793 (#4021)

### What problem does this PR solve?

Feat: Reparse a file shall reuse existing chunks if possible #3793

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-12-13 16:55:13 +08:00
committed by GitHub
parent 1defe0b19b
commit 93635674c3
6 changed files with 40 additions and 11 deletions

View File

@ -313,13 +313,16 @@ export const useRunNextDocument = () => {
mutationFn: async ({
documentIds,
run,
shouldDelete,
}: {
documentIds: string[];
run: number;
shouldDelete: boolean;
}) => {
const ret = await kbService.document_run({
doc_ids: documentIds,
run,
delete: shouldDelete,
});
const code = get(ret, 'data.code');
if (code === 0) {