Interface EmbeddingProviderProviderParameterInfo

Info about any additional, arbitrary parameter the provider may take in. May or may not be required.

Passed into the parameters block in VectorizeServiceOptions (except for vectorDimension, which should be set in the upper-level dimension: number field).

Example

// openai.parameters[1]
{
  name: 'projectId',
  type: 'STRING',
  required: false,
  defaultValue: '',
  validation: {},
  help: 'Optional, OpenAI Project ID. If provided passed as `OpenAI-Project` header.',
  displayName: 'Organization ID',
  hint: 'Add an (optional) organization ID',
}

Field

name - The name of the parameter to be passed in.

Field

type - The datatype of the parameter.

Field

required - Whether the parameter is required to be passed in.

Field

defaultValue - The default value of the provider, or an empty string if there is none.

Field

validation - Validations that may be done on the inputted value.

Field

help - Any additional help text/information about the parameter.

Field

displayName - Display name for the parameter.

Field

hint - Hint for parameter usage.

See

  • EmbeddingProviderInfo
  • EmbeddingProviderModelInfo
interface EmbeddingProviderProviderParameterInfo {
    defaultValue: string;
    displayName: string;
    help: string;
    hint: string;
    name: string;
    required: boolean;
    type: string;
    validation: Record<string, unknown>[];
}

Hierarchy (view full)

Properties

defaultValue: string

The default value of the provider, or an empty string if there is none.

Will always be in string form (even if the type is 'number').

Example

// huggingface.parameters[0].defaultValue
''
displayName: string

Display name for the parameter.

Example

// openai.parameters[0].displayName
'Organization ID'
help: string

Any additional help text/information about the parameter.

Example

// huggingface.parameters[0].help
'The name of your Hugging Face dedicated endpoint, the first part of the Endpoint URL.'
hint: string

Hint for parameter usage.

Example

// openai.parameters[0].hint
'Add an (optional) organization ID'
name: string

The name of the parameter to be passed in.

The one exception is the vectorDimension parameter, which should be passed into the dimension field of the vector block in VectorOptions.

Example

// huggingface.parameters[0].name
endpointName
required: boolean

Whether the parameter is required to be passed in.

Example

// huggingface.parameters[0].required
true
type: string

The datatype of the parameter.

Commonly number or STRING.

Example

// huggingface.parameters[0].type
STRING
validation: Record<string, unknown>[]

Validations that may be done on the inputted value.

Commonly either an empty record, or { numericRange: [<min>, <max>] }.

Example

// huggingface.parameters[0].validation
{}