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
packages/ai-jsx/src/batteries/docs.tsx:388
score
• score: number
The Chunk's raw score for the given query.
Defined in
packages/ai-jsx/src/batteries/docs.tsx:390
id
• Optional
id: string
The id of the vector encoding this chunk (if supported).