Class InMemoryEmbeddingStoreConfig.BuilderBase.InMemoryEmbeddingStoreConfigImpl

java.lang.Object
io.helidon.integrations.langchain4j.InMemoryEmbeddingStoreConfig.BuilderBase.InMemoryEmbeddingStoreConfigImpl
All Implemented Interfaces:
Prototype.Api, InMemoryEmbeddingStoreConfig
Enclosing class:
InMemoryEmbeddingStoreConfig.BuilderBase<BUILDER extends InMemoryEmbeddingStoreConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends InMemoryEmbeddingStoreConfig>

protected static class InMemoryEmbeddingStoreConfig.BuilderBase.InMemoryEmbeddingStoreConfigImpl extends Object implements InMemoryEmbeddingStoreConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Constructor Details

    • InMemoryEmbeddingStoreConfigImpl

      protected InMemoryEmbeddingStoreConfigImpl(InMemoryEmbeddingStoreConfig.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • enabled

      public boolean enabled()
      Description copied from interface: InMemoryEmbeddingStoreConfig
      Whether this embedding store component is enabled.

      If set to false, the component will be disabled even if configured.

      Specified by:
      enabled in interface InMemoryEmbeddingStoreConfig
      Returns:
      true if the component should be enabled; false otherwise
    • fromFile

      public Optional<Path> fromFile()
      Description copied from interface: InMemoryEmbeddingStoreConfig
      Path to a JSON file used to initialize the in-memory embedding store via InMemoryEmbeddingStore.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.

      Specified by:
      fromFile in interface InMemoryEmbeddingStoreConfig
      Returns:
      path to the JSON file, if configured
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object