from praisonaiagents import embedding
# For search queries
result = embedding(
input="What is machine learning?",
model="cohere/embed-english-v3.0",
input_type="search_query"
)
# For documents to be searched
result = embedding(
input="Machine learning is a subset of AI...",
model="cohere/embed-english-v3.0",
input_type="search_document"
)