Interface InMemoryEmbeddingStoreConfig
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
InMemoryEmbeddingStoreConfig.BuilderBase.InMemoryEmbeddingStoreConfigImpl
Configuration for LangChain4j in-memory embedding store components.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forInMemoryEmbeddingStoreConfig.static classInMemoryEmbeddingStoreConfig.BuilderBase<BUILDER extends InMemoryEmbeddingStoreConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends InMemoryEmbeddingStoreConfig> Fluent API builder base forInMemoryEmbeddingStoreConfig. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a new fluent API builder to customize configuration.builder(InMemoryEmbeddingStoreConfig instance) Create a new fluent API builder from an existing instance.static InMemoryEmbeddingStoreConfigcreate()Create a new instance with default values.static InMemoryEmbeddingStoreConfigDeprecated.static InMemoryEmbeddingStoreConfigCreate a new instance from configuration.booleanenabled()Whether this embedding store component is enabled.fromFile()Path to a JSON file used to initialize the in-memory embedding store viaInMemoryEmbeddingStore.fromFile.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
enabled
boolean enabled()Whether this embedding store component is enabled.If set to
false, the component will be disabled even if configured.- Returns:
trueif the component should be enabled;falseotherwise
-
fromFile
Path to a JSON file used to initialize the in-memory embedding store viaInMemoryEmbeddingStore.fromFile.If configured, the implementation may read the file and import previously persisted embeddings/segments into the store during startup/initialization; if not configured, the store starts empty.
- Returns:
- path to the JSON file, if configured
-
create(io.helidon.config.Config)