43 lines
1.2 KiB
TypeScript
Raw Normal View History

2025-04-25 17:24:47 +08:00
import type { FC } from 'react'
import { memo } from 'react'
import type { KnowledgeBaseNodeType } from './types'
2025-04-28 18:36:55 +08:00
import InputVariable from './components/input-variable'
import ChunkStructure from './components/chunk-structure'
2025-04-28 12:12:33 +08:00
import IndexMethod from './components/index-method'
2025-04-28 18:36:55 +08:00
import RetrievalSetting from './components/retrieval-setting'
import EmbeddingModel from './components/embedding-model'
2025-04-25 17:24:47 +08:00
import type { NodePanelProps } from '@/app/components/workflow/types'
2025-04-28 18:36:55 +08:00
import {
Group,
GroupWithBox,
} from '@/app/components/workflow/nodes/_base/components/layout'
import Split from '../_base/components/split'
2025-04-25 17:24:47 +08:00
const Panel: FC<NodePanelProps<KnowledgeBaseNodeType>> = () => {
return (
2025-04-28 12:12:33 +08:00
<div>
2025-04-28 18:36:55 +08:00
<GroupWithBox boxProps={{ withBorderBottom: true }}>
<InputVariable />
</GroupWithBox>
<Group
className='py-3'
withBorderBottom
>
<ChunkStructure />
</Group>
<GroupWithBox>
<div className='space-y-3'>
2025-04-28 12:12:33 +08:00
<IndexMethod />
2025-04-28 18:36:55 +08:00
<EmbeddingModel />
<div className='pt-1'>
<Split className='h-[1px]' />
</div>
<RetrievalSetting />
2025-04-28 12:12:33 +08:00
</div>
2025-04-28 18:36:55 +08:00
</GroupWithBox>
2025-04-25 17:24:47 +08:00
</div>
)
}
export default memo(Panel)