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

# Embeddings CLI

> CLI commands for generating text embeddings

## Overview

Generate text embeddings from the command line. Both `embed` and `embedding` commands work identically.

<Note>
  Both `praisonai embed` and `praisonai embedding` work the same way - use whichever you prefer.
</Note>

## Commands

### Basic Embedding

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai embed "Hello world"
# or
praisonai embedding "Hello world"
```

### With Model Selection

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai embed "Hello world" --model text-embedding-3-large
```

### With Custom Dimensions

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai embed "Hello world" --dimensions 256
```

## Options

| Option         | Short | Default                | Description       |
| -------------- | ----- | ---------------------- | ----------------- |
| `--model`      | `-m`  | text-embedding-3-small | Embedding model   |
| `--dimensions` | `-d`  | None                   | Output dimensions |

## Examples

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Generate embedding using 'embed' command
praisonai embed "Machine learning is fascinating"

# Same thing using 'embedding' command
praisonai embedding "Machine learning is fascinating"

# Use larger model
praisonai embed "AI research" -m text-embedding-3-large

# Reduce dimensions for efficiency
praisonai embed "Hello" -m text-embedding-3-large -d 256
```

## Output

The command outputs:

* Number of embedding vectors generated
* Dimensions of each vector
* Token usage statistics

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
$ praisonai embed "Hello world"
Embeddings generated: 1 vectors
Dimensions: 1536
Tokens: 4
```

## Supported Models

All LiteLLM-supported embedding models work:

* `text-embedding-3-small` (default)
* `text-embedding-3-large`
* `text-embedding-ada-002`
* `cohere/embed-english-v3.0`
* And many more
