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

# Embed Batch • Rust AI Agent SDK

> embed_batch: Generate embeddings for multiple texts. # Arguments * `texts` - Slice of texts to embed # Returns EmbeddingResult containing all embeddings

# embed\_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**](../modules/embedding) module.

Generate embeddings for multiple texts. # Arguments \* `texts` - Slice of texts to embed # Returns EmbeddingResult containing all embeddings

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def embed_batch(&self, texts: &[&str]) -> Result<EmbeddingResult>
```

## Parameters

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

### Returns

<ResponseField name="Returns" type="Result<EmbeddingResult>">
  The result of the operation.
</ResponseField>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Embeddings" icon="code" href="/docs/rust/embeddings" />

  <Card title="Rust Embedding" icon="code" href="/docs/rust/embedding" />

  <Card title="Rust Vector Store" icon="database" href="/docs/rust/vector-store" />
</CardGroup>
