Skip to main content

Interface: CorpusPage<DocType>

batteries/docs.CorpusPage

A collection of sequential documents within a single CorpusPartition.

Type parameters

NameType
DocTypeextends RawDocument | Document

Properties

documents

Readonly documents: DocType[]

Documents to load into the corpus.

Defined in

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


nextPageToken

Optional Readonly nextPageToken: string

If there's another page in the requested partition, the token needed for requesting it.

Defined in

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