Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Generate embeddings using Mistral AI’s embedding model
from praisonaiagents import embedding result = embedding( input="Hello world", model="mistral/mistral-embed" ) print(f"Dimensions: {len(result.embeddings[0])}")
praisonai embed "Hello world" --model mistral/mistral-embed
export MISTRAL_API_KEY="your-mistral-api-key"
mistral/mistral-embed
from praisonaiagents import embedding texts = ["Document 1", "Document 2", "Document 3"] result = embedding( input=texts, model="mistral/mistral-embed" ) print(f"Generated {len(result.embeddings)} embeddings")