Response Models
This page documents all the data models used in DataBridge's API responses.
Document Models
Document
The core document model representing an ingested document.
class Document:
external_id: str
owner: Dict[str, str]
content_type: str
filename: Optional[str]
metadata: Dict[str, Any] # user-defined metadata
storage_info: Dict[str, str] # storage backend info
system_metadata: Dict[str, Any] # creation date, version, etc.
additional_metadata: Dict[str, Any] # e.g., frame descriptions and transcripts for videos
access_control: Dict[str, List[str]] # readers, writers, admins
chunk_ids: List[str]DocumentContent
Represents the content of a document, either as a direct string or URL.
DocumentResult
A document search result with relevance score.
Search Models
ChunkResult
Represents a matching chunk from a semantic search.
Query Models
CompletionResponse
The response from an AI completion request.
TokenUsage
Details about token usage in completion requests.
Last updated