Skip to content

Cohere Embedding

Embed data using Cohere’s API.

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

cohere

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