> ## 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.base

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

<a id="camel.embeddings.base.BaseEmbedding" />

## BaseEmbedding

```python theme={"system"}
class BaseEmbedding(ABC):
```

Abstract base class for text embedding functionalities.

<a id="camel.embeddings.base.BaseEmbedding.embed_list" />

### embed\_list

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

Generates embeddings for the given texts.

**Parameters:**

* **objs** (list\[T]): The objects for which to generate the embeddings. \*\*kwargs (Any): Extra kwargs passed to the embedding API.

**Returns:**

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

<a id="camel.embeddings.base.BaseEmbedding.embed" />

### embed

```python theme={"system"}
def embed(self, obj: T, **kwargs: Any):
```

Generates an embedding for the given text.

**Parameters:**

* **obj** (T): The object for which to generate the embedding. \*\*kwargs (Any): Extra kwargs passed to the embedding API.

**Returns:**

list\[float]: A list of floating-point numbers representing the
generated embedding.

<a id="camel.embeddings.base.BaseEmbedding.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.
