Enum Class MetadataStorageMode

java.lang.Object
java.lang.Enum<MetadataStorageMode>
dev.langchain4j.store.embedding.pgvector.MetadataStorageMode
All Implemented Interfaces:
Serializable, Comparable<MetadataStorageMode>, Constable

public enum MetadataStorageMode extends Enum<MetadataStorageMode>
Metadata storage mode
  • COLUMN_PER_KEY: for static metadata, when you know in advance the list of metadata
  • COMBINED_JSON: For dynamic metadata, when you don't know the list of metadata that will be used.
  • COMBINED_JSONB: Same as JSON, but stored in a binary way. Optimized for query on large dataset.

Default value: COMBINED_JSON

  • Enum Constant Details

    • COLUMN_PER_KEY

      public static final MetadataStorageMode COLUMN_PER_KEY
      COLUMN_PER_KEY: for static metadata, when you know in advance the list of metadata
    • COMBINED_JSON

      public static final MetadataStorageMode COMBINED_JSON
      COMBINED_JSON: For dynamic metadata, when you don't know the list of metadata that will be used.
    • COMBINED_JSONB

      public static final MetadataStorageMode COMBINED_JSONB
      COMBINED_JSONB: Same as JSON, but stored in a binary way. Optimized for query on large dataset.
  • Method Details

    • values

      public static MetadataStorageMode[] 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 MetadataStorageMode 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