Annotation Interface EmbeddingVector


@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface EmbeddingVector
Marks the persistent attribute of an @Entity that represents the embedding vector. By default, a 32-bit floating point vector is assumed. To override the vector type, annotate e.g. @JdbcTypeCode(SqlTypes.VECTOR_FLOAT16).
See Also:
  • JdbcTypeCode
  • SqlTypes.VECTOR_BINARY
  • SqlTypes.VECTOR_INT8
  • SqlTypes.VECTOR_FLOAT16
  • SqlTypes.VECTOR_FLOAT32
  • SqlTypes.VECTOR_FLOAT64
  • SqlTypes.SPARSE_VECTOR_INT8
  • SqlTypes.SPARSE_VECTOR_FLOAT32
  • SqlTypes.SPARSE_VECTOR_FLOAT64
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Defines the distance function to use for vector search on the annotated attribute.
  • Element Details

    • distance

      Defines the distance function to use for vector search on the annotated attribute.
      Default:
      COSINE