Skip to main content

Interface: RawDocument

batteries/docs.RawDocument

A raw document loaded from an arbitrary source that has not yet been parsed.

Properties

encoding

Readonly encoding: string

The encoding used for this document, e.g. 'utf-8'.

Defined in

packages/ai-jsx/src/batteries/docs.tsx:36


mimeType

Readonly mimeType: string

The content type for this document, e.g. 'text/plain'

Defined in

packages/ai-jsx/src/batteries/docs.tsx:39


pageContent

Readonly pageContent: Uint8Array

The raw bytes content.

Defined in

packages/ai-jsx/src/batteries/docs.tsx:27


name

Optional Readonly name: string

A human-readable name for this document. This identifies the document to users and should be unique within a corpus. If the document is hosted on the web, its URL is a good choice.

Defined in

packages/ai-jsx/src/batteries/docs.tsx:33