Skip to main content

Interface: ScoredChunk<ChunkMetadata>

batteries/docs.ScoredChunk

A chunk along with its score for a particular query.

Type parameters

NameType
ChunkMetadataextends Jsonifiable = Jsonifiable

Properties

chunk

chunk: Chunk<ChunkMetadata>

The Chunk result.

Defined in

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


score

score: number

The Chunk's raw score for the given query.

Defined in

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


id

Optional id: string

The id of the vector encoding this chunk (if supported).

Defined in

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