Llm4sVoyageModule

org.llm4s.llmconnect.provider.Llm4sVoyageModule

Registers llm4s-voyage's one provider: the Voyage AI embedding provider, under the id voyage (alias voyageai). Voyage supplies embeddings and no chat client, so this module overrides only embeddingProviders.

Declared in this module's META-INF/services/org.llm4s.llmconnect.spi.Llm4sProviderModule, so adding the llm4s-voyage dependency is all it takes for ProviderRegistry.default to resolve EMBEDDING_MODEL=voyage/<model>. Where discovery cannot run - a fat jar whose services files were overwritten rather than merged - register it explicitly:

given ProviderRegistry = ProviderRegistry.ofModules(new Llm4sVoyageModule)

A class rather than an object because java.util.ServiceLoader instantiates the class named in the services file through its public no-arg constructor.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

The embedding providers this module supplies.

The embedding providers this module supplies.

Both lists default to empty, so a module contributes whichever halves it has: llm4s-anthropic overrides only chatProviders, a Voyage or Jina module only embeddingProviders, and llm4s-ollama both.

Attributes

Definition Classes

Inherited methods

The chat providers this module supplies.

The chat providers this module supplies.

Attributes

Inherited from:
Llm4sProviderModule