Skip to main content

OpenAI Embedding

Embed data using OpenAI's API.

Configure via UI

  1. Select OpenAI Embedding from the Embedding Model dropdown.
  2. Enter your OpenAI API key.
  3. Select your preferred model:
  • text-embedding-3-small (Default)
  • text-similarity-3-large
  • text-embedding-ada-002

openai

Configure via API / Client

pipeline = {
'name': 'test-pipeline',
'transform_config': {...},
'embedding_config': {
'type': 'OPENAI_EMBEDDING',
'component': {
'api_key': '<YOUR_API_KEY_HERE>', # editable
'model_name': 'text-embedding-3-small' # editable
},
},
'data_sink_id': data_sink.id
}

pipeline = client.pipelines.upsert_pipeline(request=pipeline)