knowledge base node checklist

This commit is contained in:
zxhlyh 2025-06-04 15:17:34 +08:00
parent 3afd5e73c9
commit 4c9bf78363
2 changed files with 10 additions and 4 deletions

View File

@ -18,10 +18,16 @@ const nodeDefault: NodeDefault<KnowledgeBaseNodeType> = {
score_threshold: 0.5,
},
},
checkValid() {
checkValid(payload) {
const { chunk_structure } = payload
let errorMessage = ''
if (!chunk_structure)
errorMessage = 'Chunk structure is required.'
return {
isValid: true,
errorMessage: '',
isValid: !errorMessage,
errorMessage,
}
},
}

View File

@ -172,7 +172,7 @@ const InputVarList: FC<Props> = ({
return (
<div key={variable} className='space-y-1'>
<div className='flex h-[18px] items-center space-x-2'>
<div className='flex items-center space-x-2 leading-[18px]'>
<span className='code-sm-semibold text-text-secondary'>{label[language] || label.en_US}</span>
<span className='system-xs-regular text-text-tertiary'>{paramType(type)}</span>
{required && <span className='system-xs-regular text-util-colors-orange-dark-orange-dark-600'>Required</span>}