org.llm4s.llmconnect.EmbeddingClient
See theEmbeddingClient companion class
Attributes
-
Companion
-
class
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Self type
-
Members list
Typed factory: build client from resolved provider name and typed provider config. Avoids reading any additional configuration at runtime.
Typed factory: build client from resolved provider name and typed provider config. Avoids reading any additional configuration at runtime.
provider is resolved through the org.llm4s.llmconnect.spi.ProviderRegistry, so an embedding provider that ships in its own module is reachable here with nothing in llm4s-core edited — see org.llm4s.llmconnect.spi.EmbeddingProviderDescriptor. Applications that register providers explicitly pass their own registry:
given ProviderRegistry = ProviderRegistry.default.withEmbeddingProvider(JinaEmbeddings)
EmbeddingClient.from("jina", cfg)
Value parameters
-
provider
-
the provider name as configured, e.g. the openai in EMBEDDING_MODEL=openai/text-embedding-3-small. Aliases are folded onto the canonical id.
Attributes