Gemini Embedding
Embed data using Gemini's API.
Configure via UI
- Select
Gemini Embedding
from theEmbedding Model
dropdown. - Enter your Gemini API key.
Configure via API / Client
- Python Client
- TypeScript Client
pipeline = {
'name': 'test-pipeline',
'transform_config': {...},
'embedding_config': {
'type': 'GEMINI_EMBEDDING',
'component': {
'api_key': '<YOUR_GEMINI_API_KEY>', # editable
},
},
'data_sink_id': data_sink.id
}
pipeline = client.pipelines.upsert_pipeline(request=pipeline)
const pipeline = {
name': 'test-pipeline',
'transform_config': {...},
'embedding_config': {
'type': 'GEMINI_EMBEDDING',
'component': {
'api_key': '<YOUR_GEMINI_API_KEY>', # editable
},
},
'dataSinkId': data_sink.id
}
await client.pipelines.upsertPipeline({
projectId: projectId,
body: pipeline
})