org.llm4s.agent.memory.LLMEmbeddingService
See theLLMEmbeddingService companion object
Embedding service using an LLM provider (OpenAI, VoyageAI, etc.).
Value parameters
-
client
-
The embedding client
-
modelConfig
-
The model configuration (dimensions, model name)
Attributes
-
Companion
-
object
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
Members list
Get the dimensionality of the embeddings produced.
Get the dimensionality of the embeddings produced.
Attributes
-
Definition Classes
-
Generate an embedding for a single text.
Generate an embedding for a single text.
Value parameters
-
text
-
The text to embed
Attributes
-
Returns
-
Embedding vector or error
-
Definition Classes
-
Generate embeddings for multiple texts in a batch.
Generate embeddings for multiple texts in a batch.
Value parameters
-
texts
-
The texts to embed
Attributes
-
Returns
-
Embedding vectors (one per input) or error
-
Definition Classes
-