Interface EmbeddingStoreContentRetrieverConfig

All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
EmbeddingStoreContentRetrieverConfig.BuilderBase.EmbeddingStoreContentRetrieverConfigImpl

public interface EmbeddingStoreContentRetrieverConfig extends Prototype.Api
Configuration class for EmbeddingStoreContentRetrieverConfigBlueprint.
See Also:
  • Field Details

  • 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

      Create a new instance with default values.
      Returns:
      a new instance
    • enabled

      boolean enabled()
      If set to false, embedding store content retriever will be disabled even if configured.
      Returns:
      whether the content retriever should be enabled
    • embeddingStore

      dev.langchain4j.store.embedding.EmbeddingStore<dev.langchain4j.data.segment.TextSegment> embeddingStore()
      Embedding store to use in the content retriever.
      Returns:
      an Optional containing the embedding store
    • embeddingModel

      Optional<dev.langchain4j.model.embedding.EmbeddingModel> embeddingModel()
      Explicit embedding model to use in the content retriever.
      Returns:
      an Optional containing the embedding model bean name or "discovery:auto" if the bean must be discovered automatically
    • displayName

      Optional<String> displayName()
      The display name.
      Returns:
      an Optional containing the display name if set, otherwise an empty Optional
    • maxResults

      Optional<Integer> maxResults()
      The maximum number of results.
      Returns:
      an Optional containing the maximum results if set, otherwise an empty Optional
    • minScore

      Optional<Double> minScore()
      The minimum score threshold.
      Returns:
      an Optional containing the minimum score if set, otherwise an empty Optional