> ## Documentation Index
> Fetch the complete documentation index at: https://docs.camel-ai.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Camel.embeddings.jina embedding

<a id="camel.embeddings.jina_embedding" />

<a id="camel.embeddings.jina_embedding.JinaEmbedding" />

## JinaEmbedding

```python theme={"system"}
class JinaEmbedding:
```

Provides text and image embedding functionalities using Jina AI's API.

**Parameters:**

* **model\_type** (EmbeddingModelType, optional): The model to use for embeddings. (default: :obj:`JINA_EMBEDDINGS_V3`)
* **api\_key** (Optional\[str], optional): The API key for authenticating with Jina AI. (default: :obj:`None`)
* **dimensions** (Optional\[int], optional): The dimension of the output embeddings. (default: :obj:`None`)
* **embedding\_type** (Optional\[str], optional): The type of embedding format to generate. Options: 'int8' (binary encoding with higher storage and transfer efficiency), 'uint8' (unsigned binary encoding with higher storage and transfer efficiency), 'base64' (base64 string encoding with higher transfer efficiency). (default: :obj:`None`)
* **task** (Optional\[str], optional): The type of task for text embeddings.
* **Options**: retrieval.query, retrieval.passage, text-matching, classification, separation. (default: :obj:`None`)
* **late\_chunking** (bool, optional): If true, concatenates all sentences in input and treats as a single input. (default: :obj:`False`)
* **normalized** (bool, optional): If true, embeddings are normalized to unit L2 norm. (default: :obj:`False`)

<a id="camel.embeddings.jina_embedding.JinaEmbedding.__init__" />

### **init**

```python theme={"system"}
def __init__(
    self,
    model_type: EmbeddingModelType = EmbeddingModelType.JINA_EMBEDDINGS_V3,
    api_key: Optional[str] = None,
    dimensions: Optional[int] = None,
    embedding_type: Optional[str] = None,
    task: Optional[str] = None,
    late_chunking: bool = False,
    normalized: bool = False
):
```

<a id="camel.embeddings.jina_embedding.JinaEmbedding.embed_list" />

### embed\_list

```python theme={"system"}
def embed_list(self, objs: list[Union[str, Image.Image]], **kwargs: Any):
```

Generates embeddings for the given texts or images.

**Parameters:**

* **objs** (list\[Union\[str, Image.Image]]): The texts or images for which to generate the embeddings. \*\*kwargs (Any): Extra kwargs passed to the embedding API. Not used in this implementation.

**Returns:**

list\[list\[float]]: A list that represents the generated embedding
as a list of floating-point numbers.

<a id="camel.embeddings.jina_embedding.JinaEmbedding.get_output_dim" />

### get\_output\_dim

```python theme={"system"}
def get_output_dim(self):
```

**Returns:**

int: The dimensionality of the embedding for the current model.
