Annotation Interface Vector


@Documented @Target({METHOD,FIELD}) @Retention(RUNTIME) @Repeatable(List.class) @PropertyMapping(processor=@PropertyMappingAnnotationProcessorRef(type=VectorProcessor.class,retrieval=CONSTRUCTOR)) public @interface Vector
  • Element Details

    • name

      String name
      Returns:
      The name of the index field.
      Default:
      ""
    • projectable

      boolean projectable
      Returns:
      Whether projections are enabled for this field.
      See Also:
      Default:
      false
    • searchable

      boolean searchable
      Returns:
      Whether this field should be searchable.
      See Also:
      Default:
      true
    • indexNullAs

      String indexNullAs
      Returns:
      A value used instead of null values when indexing.
      See Also:
      Default:
      "__Infinispan_indexNullAs_doNotIndexNull"
    • dimension

      int dimension
      Returns:
      The dimension of the vector.
    • similarity

      VectorSimilarity similarity
      Returns:
      The similarity algorithm.
      Default:
      L2
    • beamWidth

      int beamWidth
      Returns:
      The beam width used for kNN accuracy.
      Default:
      512
    • maxConnections

      int maxConnections
      Returns:
      HNSW neighbor nodes.
      Default:
      16