add (ServerExpression vector1,
ServerExpression vector2)base64Decode (ServerExpression base64Vector)base64Encode (ServerExpression vector1)cosine (ServerExpression vector1,
ServerExpression vector2)cosineDistance (ServerExpression vector1,
ServerExpression vector2)dimension (ServerExpression vector1)dotProduct (ServerExpression vector1,
ServerExpression vector2)euclideanDistance (ServerExpression vector1,
ServerExpression vector2)get (ServerExpression vector1,
ServerExpression k)magnitude (ServerExpression vector1)normalize (ServerExpression vector1)precision (ServerExpression vector)precision (ServerExpression vector,
ServerExpression precision)subtract (ServerExpression vector1,
ServerExpression vector2)subvector (ServerExpression vector,
ServerExpression start)subvector (ServerExpression vector,
ServerExpression start,
ServerExpression length)trunc (ServerExpression vector)trunc (ServerExpression vector,
int n)trunc (ServerExpression vector,
ServerExpression n)vector (ServerExpression values)vectorScore (ServerExpression score,
double distance)vectorScore (ServerExpression score,
double distance, double distanceWeight)vectorScore (ServerExpression score,
double distance, double distanceWeight,
double weight)vectorScore (ServerExpression score,
ServerExpression distance)vectorScore (ServerExpression score,
ServerExpression distance,
ServerExpression distanceWeight)vectorScore (ServerExpression score,
ServerExpression distance,
ServerExpression distanceWeight,
ServerExpression weight)Provides a client interface to the vec:add server function.
vector1 - The first addend vector. (of vec:vector)vector2 - The second addend vector. (of vec:vector)Provides a client interface to the vec:base64-decode server function.
base64Vector - The base64 binary encoded string
vector to decode. (of xs:string)Provides a client interface to the vec:base64-encode server function.
vector1 - The vector to base64 encode. (of
vec:vector)Provides a client interface to the vec:cosine server function.
vector1 - The vector from which to calculate the
cosine with vector2. (of vec:vector)vector2 - The vector from which to calculate the
cosine with vector1. (of vec:vector)vector1 - The vector from which to calculate the
cosine distance with vector2. (of vec:vector)vector2 - The vector from which to calculate the
cosine distance with vector1. (of vec:vector)Provides a client interface to the vec:dimension server function.
vector1 - The vector to find the dimension of. (of
vec:vector)Provides a client interface to the vec:dot-product server function.
vector1 - The vector from which to calculate the
dot product with vector2. (of vec:vector)vector2 - The vector from which to calculate the
dot product with vector1. (of vec:vector)Provides a client interface to the vec:euclidean-distance server function.
vector1 - The vector from which to calculate the
Euclidean distance to vector2. (of vec:vector)vector2 - The vector from which to calculate the
Euclidean distance to vector1. (of vec:vector)Provides a client interface to the vec:get server function.
vector1 - The vector to grab the k-th element of.
(of vec:vector)k - The zero-based index of vector1 to return. If
k is greater than the number of elements in the vector, throw
VEC-OUTOFBOUNDS. (of xs:unsignedInt)Provides a client interface to the vec:magnitude server function.
vector1 - The vector to find the magnitude of. (of
vec:vector)Provides a client interface to the vec:normalize server function.
vector1 - The vector to normalize. (of vec:vector)Provides a client interface to the vec:precision server function.
vector - The input vector to reduce precision. Can
be a vector or an empty sequence. (of vec:vector)Provides a client interface to the vec:precision server function.
vector - The input vector to reduce precision. Can
be a vector or an empty sequence. (of vec:vector)precision - The number of mantissa bits to
preserve (9-32 inclusive). Default is 16. Higher values preserve
more precision. If the value is outside the valid range, throw
VEC-INVALIDPRECISION. (of xs:unsignedInt)Provides a client interface to the vec:subtract server function.
vector1 - The minuend vector. (of vec:vector)vector2 - The subtrahend vector. (of vec:vector)Provides a client interface to the vec:subvector server function.
vector - The input vector. (of vec:vector)start - The zero-based index of the input vector
from which to start (inclusive). (of xs:unsignedInt)Provides a client interface to the vec:subvector server function.
vector - The input vector. (of vec:vector)start - The zero-based index of the input vector
from which to start (inclusive). (of xs:unsignedInt)length - The length of the subvector. If not
provided, returns a subvector beginning from index at start to the
end of the input vector. If length is greater than the number of
elements left in the input vector, throw VEC-OUTOFBOUNDS. (of
xs:unsignedInt)Provides a client interface to the vec:trunc server function.
vector - The input vector to truncate. (of
vec:vector)Provides a client interface to the vec:trunc server function.
vector - The input vector to truncate. (of
vec:vector)n - The numbers of decimal places to truncate to.
The default is 0. Negative values cause that many digits to the
left of the decimal point to be truncated. (of xs:int)Provides a client interface to the vec:trunc server function.
vector - The input vector to truncate. (of
vec:vector)n - The numbers of decimal places to truncate to.
The default is 0. Negative values cause that many digits to the
left of the decimal point to be truncated. (of xs:int)Provides a client interface to the vec:vector server function.
values - The value(s) to create the vector from.
Can be a sequence or json:array of integer or floating-point
numbers. Also accepts a string that has the format of a JSON array
of Numbers. Also accepts a string that was created by
vec:base64-encode(). (of xs:anyAtomicType)Provides a client interface to the vec:vector-score server function.
score - The cts:score of the matching document.
(of xs:unsignedInt)distance - The distance between the vector in the
matching document and the query vector. Examples, the result of a
call to ovec:cosine-distance() or ovec:euclidean-distance(). (of
xs:double)Provides a client interface to the vec:vector-score server function.
score - The cts:score of the matching document.
(of xs:unsignedInt)distance - The distance between the vector in the
matching document and the query vector. Examples, the result of a
call to ovec:cosine-distance() or ovec:euclidean-distance(). (of
xs:double)Provides a client interface to the vec:vector-score server function.
score - The cts:score of the matching document.
(of xs:unsignedInt)distance - The distance between the vector in the
matching document and the query vector. Examples, the result of a
call to ovec:cosine-distance() or ovec:euclidean-distance(). (of
xs:double)distanceWeight - The weight of the vector distance
on the annScore. This value is a positive coefficient that scales
the distance. A larger distanceWeight produces a lower annScore for
the same distance. The default value is 1. (of xs:double)Provides a client interface to the vec:vector-score server function.
score - The cts:score of the matching document.
(of xs:unsignedInt)distance - The distance between the vector in the
matching document and the query vector. Examples, the result of a
call to ovec:cosine-distance() or ovec:euclidean-distance(). (of
xs:double)distanceWeight - The weight of the vector distance
on the annScore. This value is a positive coefficient that scales
the distance. A larger distanceWeight produces a lower annScore for
the same distance. The default value is 1. (of xs:double)Provides a client interface to the vec:vector-score server function.
score - The cts:score of the matching document.
(of xs:unsignedInt)distance - The distance between the vector in the
matching document and the query vector. Examples, the result of a
call to ovec:cosine-distance() or ovec:euclidean-distance(). (of
xs:double)distanceWeight - The weight of the vector distance
on the annScore. This value is a positive coefficient that scales
the distance. A larger distanceWeight produces a lower annScore for
the same distance. The default value is 1. (of xs:double)weight - The weight of the annScore in the final
hybrid score. This value is a coefficient between 0 and 1, where 0
gives full weight to the cts score and 1 gives full weight to the
annScore. The default value is 0.5. (of xs:double)Provides a client interface to the vec:vector-score server function.
score - The cts:score of the matching document.
(of xs:unsignedInt)distance - The distance between the vector in the
matching document and the query vector. Examples, the result of a
call to ovec:cosine-distance() or ovec:euclidean-distance(). (of
xs:double)distanceWeight - The weight of the vector distance
on the annScore. This value is a positive coefficient that scales
the distance. A larger distanceWeight produces a lower annScore for
the same distance. The default value is 1. (of xs:double)weight - The weight of the annScore in the final
hybrid score. This value is a coefficient between 0 and 1, where 0
gives full weight to the cts score and 1 gives full weight to the
annScore. The default value is 0.5. (of xs:double)Copyright (c) 2010-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.