Skip to content

Gemini Embedding

Embed data using Gemini’s API.

  1. Select Gemini Embedding from the Embedding Model dropdown.
  2. Enter your Gemini API key.

gemini

pipeline = client.pipelines.upsert(
name="test-pipeline",
project_id="my-project-id",
data_sink_id=None, # optional
embedding_config={
'type': 'GEMINI_EMBEDDING',
'component': {
'api_key': '<YOUR_GEMINI_API_KEY>', # editable
},
},
llama_parse_parameters={},
transform_config={"mode": "auto", "chunk_overlap": 128, "chunk_size": 1028},
)