KnowledgeDocument
A Document of a Knowledge base (1.53.0): where it came from, its status and the facts of its current revision. Never its content; its title and external reference only to a read that names include=names.
An object with 27 fields.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
byte_size | integer or null | yes | |
chunk_count | integer | yes | |
chunker_version | string or null | yes | |
classification | KnowledgeClassification or null | yes | |
created_at | Timestamp | yes | |
embedding_space | EmbeddingSpace or null | yes | |
entity_counts | array of KnowledgeEntityCount | yes | |
error_code | IngestionErrorCode or null | yes | Set when failed. |
external_ref | string or null | yes | The file name, URL or vendor reference the Source knows the Document by. The content class names: null unless the read names include=names, and null in the answer of a write (1.53.0, second part). |
id | KnowledgeDocumentId | yes | |
indexed_at | Timestamp or null | yes | |
knowledge_base_id | KnowledgeBaseId | yes | |
last_ingestion_run_id | IngestionRunId or null | yes | |
media_type | KnowledgeMediaType or null | yes | |
object | "knowledge_document" | yes | |
page_count | integer or null | yes | |
parser_version | string or null | yes | |
purged_at | Timestamp or null | yes | |
quarantine_expires_at | Timestamp or null | yes | When the parsed text held for review is deleted, 14 days after the quarantine (a target); null otherwise. |
quarantined_at | Timestamp or null | yes | |
review_status | KnowledgeReviewStatus | yes | |
revision | integer | yes | Counts writes to the Document; returned as the ETag and required in If-Match. Not the number of content revisions. |
source_id | KnowledgeSourceId | yes | |
status | KnowledgeDocumentStatus | yes | |
tags | array of DocumentTag | yes | |
title | string or null | yes | The title the upload or the parse stage gave, or null when it has none. The content class names: null unless the read names include=names, and null in the answer of a write (1.53.0, second part). |
updated_at | Timestamp | yes |
Used by
The operations whose parameters, request body or responses name this shape directly.
- POST
/v1/knowledge-bases/{knowledge_base_id}/documents - GET
/v1/knowledge-bases/{knowledge_base_id}/documents/{document_id} - DELETE
/v1/knowledge-bases/{knowledge_base_id}/documents/{document_id} - POST
/v1/knowledge-bases/{knowledge_base_id}/documents/{document_id}/purge - POST
/v1/knowledge-bases/{knowledge_base_id}/documents/{document_id}/review