Skip to content

KnowledgeBaseDocument

Structure Class

KnowledgeBaseDocument dataclass

Bases: _SerdeShape

Contains information about a document to ingest into a knowledge base and metadata to associate with it.

Attributes

content instance-attribute
content: DocumentContent

Contains the content of the document.

metadata class-attribute instance-attribute
metadata: DocumentMetadata | None = ...

Contains the metadata to associate with the document.