class QueuedEmbeddingsPrompt implements Countable

Methods

__construct(array $inputs, int|null $dimensions, Provider|Lab|array|string|null $provider, string|null $model, int $timeout = 30, array $providerOptions = [])

Create a queued 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 24
__construct(array $inputs, int|null $dimensions, Provider|Lab|array|string|null $provider, string|null $model, int $timeout = 30, array $providerOptions = [])

Create a queued embeddings prompt.

Parameters

array $inputs
int|null $dimensions
Provider|Lab|array|string|null $provider
string|null $model
int $timeout
array $providerOptions

at line 37
bool contains(string $string)

Determine if any of the inputs contain the given string.

Parameters

string $string

Return Value

bool

at line 45
int count()

Get the number of inputs in the prompt.

Return Value

int