mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? fix: Remove kAModel #1306 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -236,4 +236,22 @@ export const useTestChunkRetrieval = () => {
|
||||
|
||||
return testChunk;
|
||||
};
|
||||
|
||||
export const useTestNextChunkRetrieval = () => {
|
||||
const {
|
||||
data,
|
||||
isPending: loading,
|
||||
mutateAsync,
|
||||
} = useMutation({
|
||||
mutationKey: ['testChunk'],
|
||||
mutationFn: async (canvasIds: string[]) => {
|
||||
const { data } = await kbService.retrieval_test({ canvasIds });
|
||||
if (data.retcode === 0) {
|
||||
}
|
||||
return data?.data ?? [];
|
||||
},
|
||||
});
|
||||
|
||||
return { data, loading, testChunk: mutateAsync };
|
||||
};
|
||||
//#endregion
|
||||
|
||||
Reference in New Issue
Block a user