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.

Parameters

array $inputs
int $dimensions
EmbeddingProvider $provider
string $model
int $timeout
array $providerOptions

at line 36
bool contains(string $string)

Determine if any of the inputs contain the given string.

Parameters

string $string

Return Value

bool

at line 44
int count()

Get the number of inputs in the prompt.

Return Value

int