distanceType
Distance Type
required
|
One of the the following functions: cosine_similarity, cosine_distance, euclidean_distance, dot_product
type: string
default value: 'cosine_similarity '
enum: {
cosine_similarity
cosine_distance
euclidean_distance
dot_product
}
|
documentDistanceResultField
Document Vectors Distance Field
required
|
Name of the result document field containing vectors distance. Might be used for further results sorting.
type: string
default value: 'vectors_distance '
minLength: 1
|
documentVectorField
Document Vector Field
required
|
Name of the document field containing dense vector (as double array) or compressed vector (as string)
type: string
default value: 'compressed_document_vector_s '
minLength: 1
|
failOnError
Fail on Error
|
Flag to indicate if this stage should throw an exception if an error occurs.
type: boolean
default value: 'false '
|
keepDocumentVectorField
Keep document vector field
|
Should the document field with the dense vector kept and returned in the response
type: boolean
default value: 'false '
|
queryVectorContextKey
Query Vector Context Key
required
|
Name of the query context key containing dense vector (as double array)
type: string
default value: 'query_vector '
minLength: 1
|