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

# Aembed Batch • AI Agent SDK

> aembed_batch: Async version of embed_batch().

# aembed\_batch

<div className="flex items-center gap-2">
  <Badge color="blue">Async</Badge>
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**EmbeddingAgent**](../classes/EmbeddingAgent) class in the [**embedding\_agent**](../modules/embedding_agent) module.

Async version of embed\_batch().

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def aembed_batch(texts: List[str], model: Optional[str]) -> List[List[float]]
```

## Parameters

<ParamField query="texts" type="List" required={true}>
  No description available.
</ParamField>

<ParamField query="model" type="Optional" required={false}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="List[List[float]]">
  The result of the operation.
</ResponseField>

## Uses

* `aembedding`

## Used By

* [`EmbeddingAgent.asimilarity`](../functions/EmbeddingAgent-asimilarity)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/embedding_agent.py#L377">
  `praisonaiagents/agent/embedding_agent.py` at line 377
</Card>
