mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-10 09:21:25 +08:00
Feat: Support pipeline-related configuration at the document level. (#17212)
### Summary Feat: Support pipeline-related configuration at the document level.
This commit is contained in:
@@ -57,7 +57,10 @@ import {
|
||||
useGetPaginationWithRouter,
|
||||
useHandleSearchChange,
|
||||
} from './logic-hooks';
|
||||
import { extractParserConfigExt } from './parser-config-utils';
|
||||
import {
|
||||
extractParserConfigExt,
|
||||
isPipelineParserConfig,
|
||||
} from './parser-config-utils';
|
||||
import { useSetPaginationParams } from './route-hook';
|
||||
|
||||
export const enum KnowledgeApiAction {
|
||||
@@ -263,15 +266,6 @@ export const useDeleteKnowledge = () => {
|
||||
return { data, loading, deleteKnowledge: mutateAsync };
|
||||
};
|
||||
|
||||
function isPipelineParserConfig(
|
||||
parserConfig: Record<string, any> | undefined,
|
||||
): boolean {
|
||||
if (!parserConfig || typeof parserConfig !== 'object') {
|
||||
return false;
|
||||
}
|
||||
return Object.keys(parserConfig).some((key) => key.includes(':'));
|
||||
}
|
||||
|
||||
export const useUpdateKnowledge = (shouldFetchList = false) => {
|
||||
const knowledgeBaseId = useKnowledgeBaseId();
|
||||
const queryClient = useQueryClient();
|
||||
|
||||
Reference in New Issue
Block a user