Commit adf3a61d authored by nick zheng's avatar nick zheng

fix: 问答知识库分片单元格限制

parent 42d3f5da
......@@ -521,6 +521,7 @@ personal_space_module:
add_QA: 'Add Q&A'
add_QA_data: 'Add Q&A data'
edit_QA_data: 'Edit Q&A data'
limit_max_chunk_content_length: 'The number of words in a single cell cannot exceed 300 words. Excess words will be automatically cleared'
setting_index_desc: 'The index is an important key field of the knowledge base search slice. Select at least one field as the index.'
select_at_least_one_field_as_the_index: 'Select at least one field as the index'
setting_index: 'Setting Index'
......
......@@ -519,6 +519,7 @@ personal_space_module:
add_QA: '新建问答'
add_QA_data: '添加问答数据'
edit_QA_data: '编辑问答数据'
limit_max_chunk_content_length: '单个单元格字数不可超300字,多余字数将自动清除'
setting_index_desc: '索引是知识库检索切片的重要关键字段,至少选择1个字段作为索引'
select_at_least_one_field_as_the_index: '至少选择1个字段作为索引'
setting_index: '设置索引'
......
......@@ -519,6 +519,7 @@ personal_space_module:
add_QA: '新建問答'
add_QA_data: '添加問答數據'
edit_QA_data: '編輯問答數據'
limit_max_chunk_content_length: '單個單元格字數不可超300字,多餘字數將自動清除'
setting_index_desc: '索引是知識庫檢索切片的重要關鍵字段,至少選擇1個字段作為索引'
select_at_least_one_field_as_the_index: '至少選擇1個字段作為索引'
setting_index: '設置索引'
......
......@@ -33,7 +33,7 @@ export function createQAKnowledgeChunkColumn(
return (
<div class='flex items-center gap-[10px]'>
<NEllipsis class='font-family-medium max-w-full' tooltip={{ width: 200 }}>
{item.structName}
{item.structName || '--'}
</NEllipsis>
{item.isIndex === 'Y' && (
<span class='border-theme-color text-theme-color rounded-theme flex-shrink-0 border px-[11px] py-[2px] text-xs'>
......
......@@ -95,7 +95,7 @@ function handleAddKnowledgeChunk() {
<div class="flex h-12 w-full flex-shrink-0 items-center border-b border-[#e5e7eb] bg-[#f7f7fa] px-3">
<span v-show="chunkItem.isIndex === 'Y'" class="mr-1 text-base text-[#d03050]">*</span>
<n-ellipsis :tooltip="{ width: '200px' }">
{{ chunkItem.structName }}
{{ chunkItem.structName || '--' }}
</n-ellipsis>
<span
v-show="chunkItem.isIndex === 'Y'"
......@@ -115,11 +115,16 @@ function handleAddKnowledgeChunk() {
minRows: 4,
maxRows: 4,
}"
:maxlength="300"
/>
</div>
</n-form-item>
</n-form>
</n-scrollbar>
<p class="text-gray-font-color mt-2">
{{ t('personal_space_module.knowledge_module.limit_max_chunk_content_length') }}
</p>
</template>
</CustomModal>
</template>
......
......@@ -101,7 +101,7 @@ function handleAddKnowledgeChunk() {
<div class="flex h-12 w-full flex-shrink-0 items-center border-b border-[#e5e7eb] bg-[#f7f7fa] px-3">
<span v-show="chunkItem.isIndex === 'Y'" class="mr-1 text-base text-[#d03050]">*</span>
<n-ellipsis :tooltip="{ width: '200px' }">
{{ chunkItem.structName }}
{{ chunkItem.structName || '--' }}
</n-ellipsis>
<span
v-show="chunkItem.isIndex === 'Y'"
......@@ -121,11 +121,16 @@ function handleAddKnowledgeChunk() {
minRows: 4,
maxRows: 4,
}"
:maxlength="300"
/>
</div>
</n-form-item>
</n-form>
</n-scrollbar>
<p class="text-gray-font-color mt-2">
{{ t('personal_space_module.knowledge_module.limit_max_chunk_content_length') }}
</p>
</template>
</CustomModal>
</template>
......
......@@ -526,6 +526,7 @@ declare namespace I18n {
add_QA: string
add_QA_data: string
edit_QA_data: string
limit_max_chunk_content_length: string
setting_index_desc: string
select_at_least_one_field_as_the_index: string
setting_index: string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment