EmbeddingProvider
interface EmbeddingProvider 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.
Get embedding vectors representing the given inputs.
Get the provider's embedding gateway.
Get the name of the default embeddings model.
Get the default dimensions of the default embeddings 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 23
EmbeddingsResponse
embeddings(array $inputs, int|null $dimensions = null, string|null $model = null, int $timeout = 30, array $providerOptions = [])
Get embedding vectors representing the given inputs.
at line 28
EmbeddingGateway
embeddingGateway()
Get the provider's embedding gateway.
at line 33
EmbeddingProvider
useEmbeddingGateway(EmbeddingGateway $gateway)
Set the provider's embedding gateway.
at line 39
string
defaultEmbeddingsModel()
Get the name of the default embeddings model.
at line 44
int
defaultEmbeddingsDimensions()
Get the default dimensions of the default embeddings model.