RankedDocument
Namespace: Vercel.AI.Operations
public sealed class RankedDocumentOne document in the reranked order.
Inheritance: object
Constructors
Section titled “Constructors”RankedDocument(int, double, object?)
Section titled “RankedDocument(int, double, object?)”public RankedDocument(int originalIndex, double score, object? document)Creates a ranked document.
Parameters
| Name | Type | Description |
|---|---|---|
originalIndex |
int | |
score |
double | |
document |
object |
Properties
Section titled “Properties”Document
Section titled “Document”public object? Document { get; }Original document.
Value: object
OriginalIndex
Section titled “OriginalIndex”public int OriginalIndex { get; }Index in OriginalDocuments.
Value: int
public double Score { get; }Relevance score.
Value: double
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product