Skip to main content

Interface: CorpusLoadResponse<DocType>

batteries/docs.CorpusLoadResponse

The response to a CorpusLoadRequest.

Type parameters

NameType
DocTypeextends RawDocument | Document

Properties

page

Optional Readonly page: CorpusPage<DocType>

A page of documents from the requested partition.

Defined in

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


partitions

Optional Readonly partitions: CorpusPartition[]

Additional partitions that should be loaded in subsequent requests. These will be ignored if they were already included in a previous response.

Defined in

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