> ## 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 • AI Agent SDK

> aembed: Async version of embed().

# aembed

<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().

## Signature

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

## Parameters

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

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

### Returns

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

## Uses

* `aembedding`

## Source

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