EmbeddingsPrompt
class EmbeddingsPrompt implements Countable
Methods
__construct(array $inputs, int $dimensions, EmbeddingProvider $provider, string $model, int $timeout = 30, array $providerOptions = [])
Create an embeddings prompt.
bool
contains(string $string)
Determine if any of the inputs contain the given string.
int
count()
Get the number of inputs in the prompt.
Details
at line 23
__construct(array $inputs, int $dimensions, EmbeddingProvider $provider, string $model, int $timeout = 30, array $providerOptions = [])
Create an embeddings prompt.
at line 36
bool
contains(string $string)
Determine if any of the inputs contain the given string.
at line 44
int
count()
Get the number of inputs in the prompt.