OpenAI (or Compatible) Embedding Models
To use a hosted OpenAI (or compatible) embedding model, specify the openai path in the from field of your configuration.
For a specific model, include its model ID in the from field. If no model ID is specified, it defaults to "text-embedding-3-small".
The following parameters are specific to OpenAI models:
| Parameter | Description | Default |
|---|---|---|
openai_api_key | The API key for accessing OpenAI. | - |
openai_org_id | The organization ID for OpenAI. | - |
openai_project_id | The project ID for OpenAI. | - |
openai_usage_tier | The OpenAI usage tier for the account. This parameter sets the maximum number of concurrent requests based on OpenAI's published limits per tier. Valid values are free, tier1, tier2, tier3, tier4, or tier5. | tier1 |
endpoint | The base endpoint for the OpenAI API. | https://api.openai.com/v1 |
Below is an example configuration in spicepod.yaml:
embeddings:
- from: openai:text-embedding-3-large
name: xl_embed
params:
openai_api_key: ${ secrets:SPICE_OPENAI_API_KEY }
- name: mistral
from: openai:mistral-embed
params:
endpoint: https://api.mistral.ai/v1
api_key: ${ secrets:SPICE_MISTRAL_API_KEY }
For detailed instructions and examples on running vector searches, refer to the Vector-Based Search documentation.
