KnnByteVectorField
constructor(name: String, vector: ByteArray, similarityFunction: VectorSimilarityFunction = VectorSimilarityFunction.EUCLIDEAN)
Creates a numeric vector field with the default EUCLIDEAN_HNSW (L2) similarity. Fields are single-valued: each document has either one value or no value. Vectors of a single field share the same dimension and similarity function.
Parameters
name
field name
vector
value
Throws
if any parameter is null, or the vector is empty or has dimension > 1024.
Creates a numeric vector field. Fields are single-valued: each document has either one value or no value. Vectors of a single field share the same dimension and similarity function.
Parameters
name
field name
vector
value
fieldType
field type
Throws
if any parameter is null, or the vector is empty or has dimension > 1024.