Annotation Interface Vectorize


@Target(FIELD) @Retention(RUNTIME) public @interface Vectorize
Annotation to mark a field for vectorization in a collection document.

This annotation indicates that the field should be serialized with the special property name "$vectorize" for use with DataStax Astra DB's vectorization features. The field must be of type String.

Example usage:

 
 @DataApiCollection
 public class MyDocument {
     @DocumentId
     private String id;
     
     @Vectorize
     private String content;
     
     // getters and setters
 }