RerankingProvider
interface RerankingProvider implements Provider
Methods
Get the provider connection configuration other than the driver, key, and name.
Get a provider instance that sends the given HTTP headers with each request.
Rerank the given documents based on their relevance to the query.
Get the provider's reranking gateway.
Get the name of the default reranking model.
Details
in
Provider at line 12
string
name()
Get the name of the underlying AI provider.
in
Provider at line 17
string
driver()
Get the name of the underlying AI driver.
in
Provider at line 24
array
providerCredentials()
Get the credentials for the underlying AI provider.
in
Provider at line 31
array
additionalConfiguration()
Get the provider connection configuration other than the driver, key, and name.
in
Provider at line 40
Provider
withHeaders(array $headers)
| internal |
Get a provider instance that sends the given HTTP headers with each request.
at line 19
RerankingResponse
rerank(array $documents, string $query, int|null $limit = null, string|null $model = null, int $timeout = 30, array $providerOptions = [])
Rerank the given documents based on their relevance to the query.
at line 24
RerankingGateway
rerankingGateway()
Get the provider's reranking gateway.
at line 29
RerankingProvider
useRerankingGateway(RerankingGateway $gateway)
Set the provider's reranking gateway.
at line 35
string
defaultRerankingModel()
Get the name of the default reranking model.