获取知识详情
获取知识文档详细信息,包括知识名称、类型、大小、令牌计数、更新者。 (-- api-linter: core::0131::response-message-name=disabled aip.dev/not-precedent: We need to do this because reasons. --)
Path Parameters
知识库ID。
知识ID。
- 200
- default
OK
Schema
- Array [
- ]
知识ID
知识名称
知识类型
知识大小
令牌计数
段落计数
知识库ID
知识库名称
父知识ID
数据源类型
知识创建者
创建时间。
更新时间
segments object[]
段落详细信息列表
段ID
知识库ID
知识ID
段内容
令牌数量
段编号
metadata object
元数据
关键词
图片名称
图片大小
表格名称
表格行数
表格列
分数
单词数量
段落类型
表格内容
图片键值
图片URI
显示类型
图片键值列表
展示内容
文档在OSS中的预签名URI
{
"document_id": "string",
"display_name": "string",
"type": 0,
"document_size": 0,
"token_count": 0,
"segment_count": 0,
"dataset_id": "string",
"dataset_display": "string",
"p_id": "string",
"data_source_type": 0,
"creator": "string",
"create_time": "2024-12-05T02:41:59.744Z",
"update_time": "2024-12-05T02:41:59.744Z",
"segments": [
{
"segment_id": "string",
"dataset_id": "string",
"document_id": "string",
"content": "string",
"token_count": 0,
"number": 0,
"metadata": {
"key_words": [
"string"
],
"image_name_value": "string",
"image_size": 0,
"table_name_value": "string",
"table_rows": 0,
"table_columns": [
"string"
],
"score": 0
},
"words": 0,
"segment_type": 0,
"table_content": "string",
"image_key": "string",
"image_uri": "string",
"display_type": 0,
"image_keys": "string",
"display_content": "string"
}
],
"uri": "string"
}
Default error response
Schema
- Array [
- ]
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
The type of the serialized message.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}