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 locally-hosted Ollama models
from praisonaiagents import embedding result = embedding( input="Hello world", model="ollama/nomic-embed-text" ) print(f"Dimensions: {len(result.embeddings[0])}")
praisonai embed "Hello world" --model ollama/nomic-embed-text
ollama pull nomic-embed-text
ollama/nomic-embed-text
ollama/mxbai-embed-large
ollama/all-minilm
ollama/snowflake-arctic-embed
from praisonaiagents import embedding result = embedding( input="Hello world", model="ollama/nomic-embed-text", api_base="http://localhost:11434" )
from praisonaiagents import embedding texts = ["Document 1", "Document 2", "Document 3"] result = embedding( input=texts, model="ollama/nomic-embed-text" ) print(f"Generated {len(result.embeddings)} embeddings")