Annotation Interface Vector
Annotation to mark a field as a vector in a collection document.
This annotation indicates that the field should be serialized with the special
property name "$vector" for use with DataStax Astra DB's vector search features.
The field must be of type float[] or DataAPIVector.
Example usage:
@DataApiCollection
public class MyDocument {
@DocumentId
private String id;
@Vector
private float[] embedding;
// or
@Vector
private DataAPIVector embedding;
// getters and setters
}