Embeddings CLI
Generate text embeddings using the PraisonAI CLI with AI SDK backend.Commands
Embed Text
Embed File
Query Similar Texts
List Models
Options
| Option | Short | Description |
|---|---|---|
--model | -m | Embedding model to use |
--provider | Provider (openai, google, cohere) | |
--backend | Backend (ai-sdk, native, auto) | |
--save | Save embeddings to file | |
--file | Embeddings file for query | |
--json | Output as JSON | |
--verbose | -v | Verbose output |
Examples
Basic Embedding
JSON Output
Batch Embedding with Save
Semantic Search
Force Backend
Verbose Mode
Environment Variables
Exit Codes
| Code | Description |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Invalid arguments |

