Interface: ScoredDoc<Meta>
Document with a query score (vector distance/similarity).
Extends
Doc
<Meta
>
Type parameters
Parameter | Default |
---|---|
Meta extends BaseMeta | BaseMeta |
Properties
Property | Type | Description | Inheritance | Source |
---|---|---|---|---|
embedding ? | number [] | - | Doc .embedding | src/datastore/types.ts:22 (opens in a new tab) |
id | string | - | Doc .id | src/datastore/types.ts:20 (opens in a new tab) |
metadata | Meta | - | Doc .metadata | src/datastore/types.ts:21 (opens in a new tab) |
score | number | - | Doc .score | src/datastore/types.ts:151 (opens in a new tab) |
sparseVector ? | Vector | - | Doc .sparseVector | src/datastore/types.ts:23 (opens in a new tab) |