ConfigurableModelProvider

class ConfigurableModelProvider constructor(llms: List<LlmService<*>>, embeddingServices: List<<Error class: unknown class>>, properties: ConfigurableModelProviderProperties, roleResolvers: List<RoleResolver> = emptyList(), credentialLlmServiceFactories: List<CredentialLlmServiceFactory> = 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())

Functions

Link copied to clipboard
open override fun configuredOptionsForRole(role: String): <Error class: unknown class>?

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>
Link copied to clipboard
open override fun getLlm(criteria: <Error class: unknown class>): LlmService<*>
Link copied to clipboard
open fun infoString(verbose: Boolean?, indent: Int): String
Link copied to clipboard
open override fun listModelNames(modelClass: Class<*>): List<String>
Link copied to clipboard
open override fun listModels(): List<<Error class: unknown class>>
Link copied to clipboard
open override fun listRoles(modelClass: Class<*>): List<String>

List the roles available for this class of model

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.