mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
feat: set the object-fit attribute of the chunk image to contain so that the image is not stretched and if the chunk number of the knowledge base is greater than 0, set the embedding model to disabled (#160)
* feat: if the chunk number of the knowledge base is greater than 0, set the embedding model to disabled * feat: set the object-fit attribute of the chunk image to contain so that the image is not stretched
This commit is contained in:
@ -41,8 +41,6 @@ export const useSubmitKnowledgeConfiguration = () => {
|
||||
};
|
||||
|
||||
export const useFetchKnowledgeConfigurationOnMount = (form: FormInstance) => {
|
||||
// const [form] = Form.useForm();
|
||||
|
||||
const knowledgeDetails = useSelectKnowledgeDetails();
|
||||
const parserList = useSelectParserList();
|
||||
const embeddingModelOptions = useSelectLlmOptions();
|
||||
@ -69,7 +67,11 @@ export const useFetchKnowledgeConfigurationOnMount = (form: FormInstance) => {
|
||||
});
|
||||
}, [form, knowledgeDetails]);
|
||||
|
||||
return { parserList, embeddingModelOptions };
|
||||
return {
|
||||
parserList,
|
||||
embeddingModelOptions,
|
||||
disabled: knowledgeDetails.chunk_num > 0,
|
||||
};
|
||||
};
|
||||
|
||||
export const useSelectKnowledgeDetailsLoading = () =>
|
||||
|
||||
Reference in New Issue
Block a user