EdgeAIG/opencode / .opencode /node_modules /@ai-sdk /provider /src /reranking-model /v3 /reranking-model-v3-call-options.ts
EdgeAIG's picture
download
raw
1.07 kB
import { JSONObject } from '../../json-value';
import { SharedV3Headers, SharedV3ProviderOptions } from '../../shared/v3';
export type RerankingModelV3CallOptions = {
/**
* Documents to rerank.
* Either a list of texts or a list of JSON objects.
*/
documents:
| { type: 'text'; values: string[] }
| { type: 'object'; values: JSONObject[] };
/**
* The query is a string that represents the query to rerank the documents against.
*/
query: string;
/**
* Optional limit returned documents to the top n documents.
*/
topN?: number;
/**
* Abort signal for cancelling the operation.
*/
abortSignal?: AbortSignal;
/**
* Additional provider-specific options. They are passed through
* to the provider from the AI SDK and enable provider-specific
* functionality that can be fully encapsulated in the provider.
*/
providerOptions?: SharedV3ProviderOptions;
/**
* Additional HTTP headers to be sent with the request.
* Only applicable for HTTP-based providers.
*/
headers?: SharedV3Headers;
};

Xet Storage Details

Size:
1.07 kB
·
Xet hash:
e514fc87a109b873ca034fc1e30b7966f00074bff7e93c74c1da1e45c8a56c9c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.