java.lang.Object
java.lang.Enum<InProcessModelType>
io.helidon.integrations.langchain4j.providers.lc4jinprocess.InProcessModelType
All Implemented Interfaces:
Serializable, Comparable<InProcessModelType>, Constable

public enum InProcessModelType extends Enum<InProcessModelType>
Supported LangChain4j in-process embedding model types. This enum provides well-known model identifiers for LangChain4j's ONNX-based "in-process" embedding models.
See Also:
  • Enum Constant Details

    • ALL_MINILM_L6_V2

      public static final InProcessModelType ALL_MINILM_L6_V2
      The default "all-minilm-l6-v2" in-process embedding model.
    • ALL_MINILM_L6_V2_Q

      public static final InProcessModelType ALL_MINILM_L6_V2_Q
      The quantized variant of the "all-minilm-l6-v2" in-process embedding model, typically offering reduced memory footprint and potentially faster inference at some quality cost.
    • CUSTOM

      public static final InProcessModelType CUSTOM
      A custom, user-provided in-process ONNX embedding model, when selected `path-to-model` and `path-to-tokenizer` needs to be provided.
  • Method Details

    • values

      public static InProcessModelType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static InProcessModelType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<InProcessModelType>