high_quality
High quality: embedding using embedding model, built as vector database index
- - economy
Economy: Build using inverted index of Keyword Table Index
+ - economy
Economy: Build using inverted index of keyword table index
remove_extra_spaces
Replace consecutive spaces, newlines, tabs
- remove_urls_emails
Delete URL, email address
- enabled
(bool) Whether to select this rule or not. If no document ID is passed in, it represents the default value.
- - segmentation
(object) segmentation rules
+ - segmentation
(object) Segmentation rules
- separator
Custom segment identifier, currently only allows one delimiter to be set. Default is \n
- max_tokens
Maximum length (token) defaults to 1000
original_document_id
Source document ID (optional)
- Used to re-upload the document or modify the document cleaning and segmentation configuration. The missing information is copied from the source document
- The source document cannot be an archived document
- When original_document_id is passed in, the update operation is performed on behalf of the document. process_rule is a fillable item. If not filled in, the segmentation method of the source document will be used by default
- When original_document_id is not passed in, the new operation is performed on behalf of the document, and process_rule is required
- - indexing_technique Index mode
+ - indexing_technique
Index mode
- high_quality
High quality: embedding using embedding model, built as vector database index
- - economy
Economy: Build using inverted index of Keyword Table Index
+ - economy
Economy: Build using inverted index of keyword table index
- - process_rule Processing rules
+ - process_rule
Processing rules
- mode
(string) Cleaning, segmentation mode, automatic / custom
- rules
(object) Custom rules (in automatic mode, this field is empty)
- pre_processing_rules
(array[object]) Preprocessing rules
@@ -164,7 +164,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
- remove_extra_spaces
Replace consecutive spaces, newlines, tabs
- remove_urls_emails
Delete URL, email address
- enabled
(bool) Whether to select this rule or not. If no document ID is passed in, it represents the default value.
- - segmentation
(object) segmentation rules
+ - segmentation
(object) Segmentation rules
- separator
Custom segment identifier, currently only allows one delimiter to be set. Default is \n
- max_tokens
Maximum length (token) defaults to 1000
high_quality
High quality
+ - economy
Economy
+ only_me
Only me
- all_team_members
All team members
- partial_members
Partial members
vendor
Vendor
+ - external
External knowledge
+ remove_extra_spaces
Replace consecutive spaces, newlines, tabs
- remove_urls_emails
Delete URL, email address
- enabled
(bool) Whether to select this rule or not. If no document ID is passed in, it represents the default value.
- - segmentation
(object) segmentation rules
+ - segmentation
(object) Segmentation rules
- separator
Custom segment identifier, currently only allows one delimiter to be set. Default is \n
- max_tokens
Maximum length (token) defaults to 1000
@@ -437,11 +456,11 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
remove_extra_spaces
Replace consecutive spaces, newlines, tabs
- remove_urls_emails
Delete URL, email address
- enabled
(bool) Whether to select this rule or not. If no document ID is passed in, it represents the default value.
- - segmentation
(object) segmentation rules
+ - segmentation
(object) Segmentation rules
- separator
Custom segment identifier, currently only allows one delimiter to be set. Default is \n
- max_tokens
Maximum length (token) defaults to 1000
@@ -534,11 +553,11 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
content
(text) Text content/question content, required
- - answer
(text) Answer content, if the mode of the Knowledge is qa mode, pass the value(optional)
- - keywords
(list) Keywords(optional)
+ - content
(text) Text content / question content, required
+ - answer
(text) Answer content, if the mode of the knowledge is Q&A mode, pass the value (optional)
+ - keywords
(list) Keywords (optional)
content
(text) text content/question content,required
- - answer
(text) Answer content, not required, passed if the Knowledge is in qa mode
- - keywords
(list) keyword, not required
- - enabled
(bool) false/true, not required
+ - content
(text) Text content / question content, required
+ - answer
(text) Answer content, passed if the knowledge is in Q&A mode (optional)
+ - keywords
(list) Keyword (optional)
+ - enabled
(bool) False / true (optional)
search_method
(text) Search method: One of the following four keywords is required
- keyword_search
Keyword search
- semantic_search
Semantic search
- full_text_search
Full-text search
- hybrid_search
Hybrid search
- - reranking_enable
(bool) Whether to enable reranking, optional, required if the search mode is semantic_search or hybrid_search
- - reranking_mode
(object) Rerank model configuration, optional, required if reranking is enabled
+ - reranking_enable
(bool) Whether to enable reranking, required if the search mode is semantic_search or hybrid_search (optional)
+ - reranking_mode
(object) Rerank model configuration, required if reranking is enabled
- reranking_provider_name
(string) Rerank model provider
- reranking_model_name
(string) Rerank model name
- weights
(double) Semantic search weight setting in hybrid search mode
- - top_k
(integer) Number of results to return, optional
+ - top_k
(integer) Number of results to return (optional)
- score_threshold_enabled
(bool) Whether to enable score threshold
- score_threshold
(double) Score threshold
high_quality
高质量:使用 embedding 模型进行嵌入,构建为向量数据库索引
- - economy
经济:使用 Keyword Table Index 的倒排索引进行构建
+ - economy
经济:使用 keyword table index 的倒排索引进行构建
enabled
(bool) 是否选中该规则,不传入文档 ID 时代表默认值
- segmentation
(object) 分段规则
- separator
自定义分段标识符,目前仅允许设置一个分隔符。默认为 \n
- - max_tokens
最大长度 (token) 默认为 1000
+ - max_tokens
最大长度(token)默认为 1000
original_document_id
源文档 ID(选填)
- 用于重新上传文档或修改文档清洗、分段配置,缺失的信息从源文档复制
- 源文档不可为归档的文档
- 当传入 original_document_id
时,代表文档进行更新操作,process_rule
为可填项目,不填默认使用源文档的分段方式
- 未传入 original_document_id
时,代表文档进行新增操作,process_rule
为必填
- - indexing_technique 索引方式
+ - indexing_technique
索引方式
- high_quality
高质量:使用 embedding 模型进行嵌入,构建为向量数据库索引
- - economy
经济:使用 Keyword Table Index 的倒排索引进行构建
+ - economy
经济:使用 keyword table index 的倒排索引进行构建
- - process_rule 处理规则
+ - process_rule
处理规则
- mode
(string) 清洗、分段模式 ,automatic 自动 / custom 自定义
- rules
(object) 自定义规则(自动模式下,该字段为空)
- pre_processing_rules
(array[object]) 预处理规则
@@ -166,7 +166,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
- enabled
(bool) 是否选中该规则,不传入文档 ID 时代表默认值
- segmentation
(object) 分段规则
- separator
自定义分段标识符,目前仅允许设置一个分隔符。默认为 \n
- - max_tokens
最大长度 (token) 默认为 1000
+ - max_tokens
最大长度(token)默认为 1000
high_quality
高质量
+ - economy
经济
only_me
仅自己
- all_team_members
所有团队成员
- partial_members
部分团队成员
vendor
上传文件
+ - external
外部知识库
+ enabled
(bool) 是否选中该规则,不传入文档 ID 时代表默认值
- segmentation
(object) 分段规则
- separator
自定义分段标识符,目前仅允许设置一个分隔符。默认为 \n
- - max_tokens
最大长度 (token) 默认为 1000
+ - max_tokens
最大长度(token)默认为 1000
enabled
(bool) 是否选中该规则,不传入文档 ID 时代表默认值
- segmentation
(object) 分段规则
- separator
自定义分段标识符,目前仅允许设置一个分隔符。默认为 \n
- - max_tokens
最大长度 (token) 默认为 1000
+ - max_tokens
最大长度(token)默认为 1000
content
(text) 文本内容/问题内容,必填
- - answer
(text) 答案内容,非必填,如果知识库的模式为qa模式则传值
+ - answer
(text) 答案内容,非必填,如果知识库的模式为 Q&A 模式则传值
- keywords
(list) 关键字,非必填
content
(text) 文本内容/问题内容,必填
- - answer
(text) 答案内容,非必填,如果知识库的模式为qa模式则传值
+ - answer
(text) 答案内容,非必填,如果知识库的模式为 Q&A 模式则传值
- keywords
(list) 关键字,非必填
- enabled
(bool) false/true,非必填
search_method
(text) 检索方法:以下三个关键字之一,必填
- keyword_search
关键字检索
- semantic_search
语义检索
- full_text_search
全文检索
- hybrid_search
混合检索
- - reranking_enable
(bool) 是否启用 Reranking,非必填,如果检索模式为semantic_search模式或者hybrid_search则传值
+ - reranking_enable
(bool) 是否启用 Reranking,非必填,如果检索模式为 semantic_search 模式或者 hybrid_search 则传值
- reranking_mode
(object) Rerank模型配置,非必填,如果启用了 reranking 则传值
- reranking_provider_name
(string) Rerank 模型提供商
- reranking_model_name
(string) Rerank 模型名称
- weights
(double) 混合检索模式下语意检索的权重设置
- top_k
(integer) 返回结果数量,非必填
- - score_threshold_enabled
(bool) 是否开启Score阈值
- - score_threshold
(double) Score阈值
+ - score_threshold_enabled
(bool) 是否开启 score 阈值
+ - score_threshold
(double) Score 阈值
{t('appDebug.codegen.generatedCode')}
+
+
+ {res.code}
+
+
+ {res.error}
+