feat(form): add form field components and configuration updates

refactor(knowledge): restructure configuration components to use common items
This commit is contained in:
2025-10-15 18:48:48 +08:00
parent fe8747983e
commit fd4309582d
36 changed files with 1869 additions and 1001 deletions

View File

@@ -1,60 +1,60 @@
import React from 'react';
import { ConfigurationFormContainer, MainContainer } from './configuration-form-container';
import { ChunkMethodItem, EmbeddingModelItem } from './common-item';
import { Box, Typography } from '@mui/material';
import {
ChunkMethodItem,
EmbeddingModelItem,
LayoutRecognizeItem,
PageRankItem,
AutoKeywordsItem,
AutoQuestionsItem,
UseRaptorItem,
RaptorPromptItem,
RaptorMaxTokenItem,
RaptorThresholdItem,
RaptorMaxClusterItem,
RaptorRandomSeedItem,
UseGraphragItem,
EntityTypesItem,
GraphragMethodItem,
EntityNormalizeItem,
CommunityReportItem,
TagsItem
} from './common-items';
export function BookConfiguration() {
return (
<MainContainer>
<ConfigurationFormContainer>
<ChunkMethodItem />
<Box sx={{ mb: 2 }}>
<Typography variant="body2" color="text.secondary">
-
</Typography>
</Box>
<LayoutRecognizeItem />
<EmbeddingModelItem />
<Box sx={{ mb: 2 }}>
<Typography variant="body2" color="text.secondary">
PageRank配置 -
</Typography>
</Box>
<PageRankItem />
</ConfigurationFormContainer>
<ConfigurationFormContainer>
<Box sx={{ mb: 2 }}>
<Typography variant="body2" color="text.secondary">
-
</Typography>
</Box>
<Box sx={{ mb: 2 }}>
<Typography variant="body2" color="text.secondary">
-
</Typography>
</Box>
<AutoKeywordsItem />
<AutoQuestionsItem />
</ConfigurationFormContainer>
<ConfigurationFormContainer>
<Box sx={{ mb: 2 }}>
<Typography variant="body2" color="text.secondary">
Raptor配置 -
</Typography>
</Box>
<UseRaptorItem />
<RaptorPromptItem />
<RaptorMaxTokenItem />
<RaptorThresholdItem />
<RaptorMaxClusterItem />
<RaptorRandomSeedItem />
</ConfigurationFormContainer>
<Box sx={{ mb: 2, p: 2 }}>
<Typography variant="body2" color="text.secondary">
GraphRAG配置 -
</Typography>
</Box>
<ConfigurationFormContainer>
<UseGraphragItem />
<EntityTypesItem />
<GraphragMethodItem />
<EntityNormalizeItem />
<CommunityReportItem />
</ConfigurationFormContainer>
<ConfigurationFormContainer>
<Box sx={{ mb: 2 }}>
<Typography variant="body2" color="text.secondary">
-
</Typography>
</Box>
<TagsItem />
</ConfigurationFormContainer>
</MainContainer>
);