Interface InMemoryEmbeddingStoreConfig

All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
InMemoryEmbeddingStoreConfig.BuilderBase.InMemoryEmbeddingStoreConfigImpl

public interface InMemoryEmbeddingStoreConfig extends Prototype.Api
Configuration for LangChain4j in-memory embedding store components.
See Also:
  • 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

      static InMemoryEmbeddingStoreConfig create(Config config)
      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 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:
      true if the component should be enabled; false otherwise
    • fromFile

      Optional<Path> fromFile()
      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.

      Returns:
      path to the JSON file, if configured