Skip to main content

embed

Method
This is a method of the EmbeddingAgent class in the embedding_agent module.
Generate embedding for a single text.

Signature

Parameters

str
required
Text to embed
Optional
Override model for this call **kwargs: Additional provider-specific parameters

Returns

List[float]
List of floats representing the embedding vector

Usage

Uses

  • embedding

Source

View on GitHub

praisonaiagents/agent/embedding_agent.py at line 185