Configurable Model Provider
class ConfigurableModelProvider constructor(llms: List<LlmService<*>>, embeddingServices: List<<Error class: unknown class>>, properties: ConfigurableModelProviderProperties, roleResolvers: List<RoleResolver> = emptyList(), credentialLlmServiceFactories: List<CredentialLlmServiceFactory> = emptyList(), embeddingRoleResolvers: List<EmbeddingRoleResolver> = emptyList(), credentialEmbeddingServiceFactories: List<CredentialEmbeddingServiceFactory> = emptyList(), localModelCatalogs: List<LocalModelCatalog> = emptyList()) : ModelProvider
Take LLM definitions from configuration
Constructors
Link copied to clipboard
constructor(llms: List<LlmService<*>>, embeddingServices: List<<Error class: unknown class>>, properties: ConfigurableModelProviderProperties, roleResolvers: List<RoleResolver> = emptyList(), credentialLlmServiceFactories: List<CredentialLlmServiceFactory> = emptyList(), embeddingRoleResolvers: List<EmbeddingRoleResolver> = emptyList(), credentialEmbeddingServiceFactories: List<CredentialEmbeddingServiceFactory> = emptyList(), localModelCatalogs: List<LocalModelCatalog> = emptyList())
Functions
Link copied to clipboard
What configuration says role means for this deployment, or null if it says nothing.
Link copied to clipboard
open override fun getEmbeddingService(criteria: <Error class: unknown class>): <Error class: unknown class>
EXHAUSTIVE over ModelSelectionCriteria, deliberately and with no else, exactly as getLlm has always been.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Every model of this class the deployment can serve - registered at startup, or being served by a local runner since.
Link copied to clipboard
Link copied to clipboard
open override fun resolveLlmOptions(llmOptions: <Error class: unknown class>): <Error class: unknown class>
Resolve any role in these options to a concrete model, applying whatever hyperparameters are configured against that role.