RerankScore interface
Note
This API is in Beta and provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the score assigned to a document after a semantic reranking operation.
Properties
| document | The document content that was reranked. Empty string if |
| index | The original index of the document in the input list before reranking. |
| score | The relevance score assigned to the document after reranking. |
Property Details
document
The document content that was reranked. Empty string if return_documents is false.
document: string
Property Value
string
index
The original index of the document in the input list before reranking.
index: number
Property Value
number
score
The relevance score assigned to the document after reranking.
score: number
Property Value
number