Interface: QueryResultDocumentInfo
Document result from a query with similarity score.Extends
Properties
| Property | Type | Description | Inherited from |
|---|---|---|---|
id | string | Unique identifier within an index. | DocumentInfo.id |
text | string | REQUIRED canonical text to embed/search. | DocumentInfo.text |
metadata? | Record<string, string> | Optional metadata associated with the document. | DocumentInfo.metadata |
embedding? | number[] | Optional caller-provided embedding vector. | DocumentInfo.embedding |
score | number | Similarity score (0-1, higher = more similar). | - |