Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
adf3a61d
Commit
adf3a61d
authored
Mar 12, 2025
by
nick zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 问答知识库分片单元格限制
parent
42d3f5da
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
3 deletions
+17
-3
en.yaml
src/locales/langs/en.yaml
+1
-0
zh-cn.yaml
src/locales/langs/zh-cn.yaml
+1
-0
zh-hk.yaml
src/locales/langs/zh-hk.yaml
+1
-0
columns.tsx
...nal-space/personal-knowledge/knowledge-detail/columns.tsx
+1
-1
add-qa-knowledge-chunk-modal.vue
.../qa-knowledge/components/add-qa-knowledge-chunk-modal.vue
+6
-1
edit-qa-knowledge-chunk-modal.vue
...qa-knowledge/components/edit-qa-knowledge-chunk-modal.vue
+6
-1
locales.d.ts
types/locales.d.ts
+1
-0
No files found.
src/locales/langs/en.yaml
View file @
adf3a61d
...
...
@@ -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'
...
...
src/locales/langs/zh-cn.yaml
View file @
adf3a61d
...
...
@@ -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
:
'
设置索引'
...
...
src/locales/langs/zh-hk.yaml
View file @
adf3a61d
...
...
@@ -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
:
'
設置索引'
...
...
src/views/personal-space/personal-knowledge/knowledge-detail/columns.tsx
View file @
adf3a61d
...
...
@@ -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'
>
...
...
src/views/personal-space/personal-knowledge/knowledge-detail/qa-knowledge/components/add-qa-knowledge-chunk-modal.vue
View file @
adf3a61d
...
...
@@ -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>
...
...
src/views/personal-space/personal-knowledge/knowledge-detail/qa-knowledge/components/edit-qa-knowledge-chunk-modal.vue
View file @
adf3a61d
...
...
@@ -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>
...
...
types/locales.d.ts
View file @
adf3a61d
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment