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

# dimensions • AI Agent SDK

> Embedding dimension utilities.

# dimensions

<Badge color="blue">AI Agent</Badge>

Embedding dimension utilities.

This module provides utilities for determining embedding dimensions
based on model names. Consolidates the dimension lookup logic that
was previously duplicated in memory.py and knowledge.py.

## Import

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents.embedding import dimensions
```

## Functions

<CardGroup cols={2}>
  <Card title="get_dimensions()" icon="function" href="../functions/get_dimensions">
    Get embedding dimensions based on model name.
  </Card>
</CardGroup>

### Constants

| Name                       | Value                                                                                  |
| -------------------------- | -------------------------------------------------------------------------------------- |
| `DEFAULT_DIMENSION`        | `1536`                                                                                 |
| `_SORTED_MODEL_DIMENSIONS` | `sorted(_LOWER_MODEL_DIMENSIONS.items(), key=lambda item: len(item[0]), reverse=True)` |
