Interface: ScoredChunk<ChunkMetadata>
batteries/docs.ScoredChunk
A chunk along with its score for a particular query.
Type parameters
Name | Type |
---|---|
ChunkMetadata | extends Jsonifiable = Jsonifiable |
Properties
chunk
• chunk: Chunk
<ChunkMetadata
>
The Chunk result.
Defined in
ai-jsx/src/batteries/docs.tsx:390
score
• score: number
The Chunk's raw score for the given query.
Defined in
ai-jsx/src/batteries/docs.tsx:392
id
• Optional
id: string
The id of the vector encoding this chunk (if supported).