mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
feat: add corresponding icons to files (#164)
This commit is contained in:
@ -206,3 +206,26 @@ export const useSelectKnowledgeDetails = () => {
|
||||
return knowledgeDetails;
|
||||
};
|
||||
//#endregion
|
||||
|
||||
//#region Retrieval testing
|
||||
|
||||
export const useTestChunkRetrieval = () => {
|
||||
const dispatch = useDispatch();
|
||||
const knowledgeBaseId = useKnowledgeBaseId();
|
||||
|
||||
const testChunk = useCallback(
|
||||
(values: any) => {
|
||||
dispatch({
|
||||
type: 'testingModel/testDocumentChunk',
|
||||
payload: {
|
||||
...values,
|
||||
kb_id: knowledgeBaseId,
|
||||
},
|
||||
});
|
||||
},
|
||||
[dispatch, knowledgeBaseId],
|
||||
);
|
||||
|
||||
return testChunk;
|
||||
};
|
||||
//#endregion
|
||||
|
||||
Reference in New Issue
Block a user