Skip to content

HuggingFace Embedding

Embed data using HuggingFace’s Inference API.

  1. Select HuggingFace Embedding from the Embedding Model dropdown.
  2. Enter your HuggingFace API key.
  3. Enter your HuggingFace model name or URL, e.g. BAAI/bge-small-en-v1.5.

huggingface

pipeline = client.pipelines.upsert(
name="test-pipeline",
project_id="my-project-id",
data_sink_id=None, # optional
embedding_config={
'type': 'HUGGINGFACE_API_EMBEDDING',
'component': {
'token': 'hf_...',
'model_name': 'BAAI/bge-small-en-v1.5',
},
},
llama_parse_parameters={},
transform_config={"mode": "auto", "chunk_overlap": 128, "chunk_size": 1028},
)