Class InProcessEmbeddingModelConfig.BuilderBase.InProcessEmbeddingModelConfigImpl
java.lang.Object
io.helidon.integrations.langchain4j.providers.lc4jinprocess.InProcessEmbeddingModelConfig.BuilderBase.InProcessEmbeddingModelConfigImpl
- All Implemented Interfaces:
Prototype.Api,InProcessEmbeddingModelConfig
- Enclosing class:
InProcessEmbeddingModelConfig.BuilderBase<BUILDER extends InProcessEmbeddingModelConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends InProcessEmbeddingModelConfig>
protected static class InProcessEmbeddingModelConfig.BuilderBase.InProcessEmbeddingModelConfigImpl
extends Object
implements InProcessEmbeddingModelConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.integrations.langchain4j.providers.lc4jinprocess.InProcessEmbeddingModelConfig
InProcessEmbeddingModelConfig.Builder, InProcessEmbeddingModelConfig.BuilderBase<BUILDER extends InProcessEmbeddingModelConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends InProcessEmbeddingModelConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Whether the embedding model is enabled.booleanexecutor()Executor configuration used by the embedding model.inthashCode()The path to the modelPath file (e.g., "/path/to/model.onnx").The path to the tokenizer file (e.g., "/path/to/tokenizer.json").Optional<dev.langchain4j.model.embedding.onnx.PoolingMode> The pooling model to use.toString()type()Which in-process ONNX model variant should be used.
-
Constructor Details
-
InProcessEmbeddingModelConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
enabled
public boolean enabled()Description copied from interface:InProcessEmbeddingModelConfigWhether the embedding model is enabled. If set tofalse, the model will not be available even if configured.- Specified by:
enabledin interfaceInProcessEmbeddingModelConfig- Returns:
- whether the embedding model is enabled, defaults to
true
-
executor
Description copied from interface:InProcessEmbeddingModelConfigExecutor configuration used by the embedding model.- Specified by:
executorin interfaceInProcessEmbeddingModelConfig- Returns:
- optional executor configuration
-
type
Description copied from interface:InProcessEmbeddingModelConfigWhich in-process ONNX model variant should be used.- Specified by:
typein interfaceInProcessEmbeddingModelConfig- Returns:
- in-process ONNX model provided type
-
pathToModel
Description copied from interface:InProcessEmbeddingModelConfigThe path to the modelPath file (e.g., "/path/to/model.onnx").- Specified by:
pathToModelin interfaceInProcessEmbeddingModelConfig- Returns:
- an
Optionalcontaining the configured model path, or an emptyOptionalif not set
-
pathToTokenizer
Description copied from interface:InProcessEmbeddingModelConfigThe path to the tokenizer file (e.g., "/path/to/tokenizer.json").- Specified by:
pathToTokenizerin interfaceInProcessEmbeddingModelConfig- Returns:
- an
Optionalcontaining the configured tokenizer path, or an emptyOptionalif not set
-
poolingMode
Description copied from interface:InProcessEmbeddingModelConfigThe pooling model to use. Can be found in the ".../1_Pooling/config.json" file on HuggingFace. Here is an example."pooling_mode_mean_tokens": truemeans thatPoolingMode.MEANshould be used.- Specified by:
poolingModein interfaceInProcessEmbeddingModelConfig- Returns:
- an
Optionalcontaining the configuredPoolingMode, or an emptyOptionalif no pooling mode is explicitly configured
-
toString
-
equals
-
hashCode
public int hashCode()
-