You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/plan-builder-generated.js
+15-14Lines changed: 15 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -5304,7 +5304,7 @@ class VecExpr {
5304
5304
constructor() {
5305
5305
}
5306
5306
/**
5307
-
* Provides a client interface to a server function.
5307
+
* Returns the sum of two vectors. The vectors must be of the same dimension. Provides a client interface to a server function. See {@link http://docs.marklogic.com/vec.add|vec.add}
5308
5308
* @method planBuilder.vec#add
5309
5309
* @since 3.5.0
5310
5310
* @param { VecVector } [vector1] - The first addend vector.
@@ -5321,7 +5321,7 @@ add(...args) {
5321
5321
5322
5322
}
5323
5323
/**
5324
-
* Constructs a vector result by decoding the base64 binary input. Provides a client interface to a server function. See {@link http://docs.marklogic.com/vec.base64Decode|vec.base64Decode}
5324
+
* Returns a vector value by decoding the base64 encoded string input. Provides a client interface to a server function. See {@link http://docs.marklogic.com/vec.base64Decode|vec.base64Decode}
5325
5325
* @method planBuilder.vec#base64Decode
5326
5326
* @since 3.5.0
5327
5327
* @param { XsString } [base64Vector] - The base64 binary encoded string vector to decode.
* @param { VecVector } [vector1] - The vector to grab the k-th element of.
5415
-
* @param { XsUnsignedInt } [k] - The zero-based index of vector1 to return.
5415
+
* @param { XsUnsignedInt } [k] - The zero-based index of vector1 to return. If k is greater than the number of elements in the vector, throw VEC-OUTOFBOUNDS.
5416
5416
* @returns { XsFloat }
5417
5417
*/
5418
5418
get(...args) {
@@ -5449,7 +5449,7 @@ normalize(...args) {
5449
5449
return new types.VecVector('vec', 'normalize', checkedArgs);
5450
5450
}
5451
5451
/**
5452
-
* Provides a client interface to a server function.
5452
+
* Returns the difference of two vectors. The vectors must be of the same dimension. Provides a client interface to a server function. See {@link http://docs.marklogic.com/vec.subtract|vec.subtract}
5453
5453
* @method planBuilder.vec#subtract
5454
5454
* @since 3.5.0
5455
5455
* @param { VecVector } [vector1] - The minuend vector.
@@ -5466,28 +5466,28 @@ subtract(...args) {
5466
5466
5467
5467
}
5468
5468
/**
5469
-
* Returns a subvector of the input vector, starting at the specified index and with the specified length. Provides a client interface to a server function. See {@link http://docs.marklogic.com/vec.subvector|vec.subvector}
5469
+
* Returns a subvector of the input vector, starting at the specified index, with the specified length (optional). Provides a client interface to a server function. See {@link http://docs.marklogic.com/vec.subvector|vec.subvector}
5470
5470
* @method planBuilder.vec#subvector
5471
5471
* @since 3.5.0
5472
5472
* @param { VecVector } [vector] - The input vector.
5473
-
* @param { XsUnsignedInt } [start] - The starting index of the subvector (inclusive).
5474
-
* @param { XsUnsignedInt } [length] - The length of the subvector.
5473
+
* @param { XsUnsignedInt } [start] - The zero-based index of the input vector from which to start (inclusive).
5474
+
* @param { XsUnsignedInt } [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.
return new types.VecVector('vec', 'subvector', checkedArgs);
5484
5484
5485
5485
}
5486
5486
/**
5487
5487
* Returns a vector value. Provides a client interface to a server function. See {@link http://docs.marklogic.com/vec.vector|vec.vector}
5488
5488
* @method planBuilder.vec#vector
5489
5489
* @since 3.5.0
5490
-
* @param { XsAnyAtomicType } [values] - The values to create the vector from. Can be a sequence or json:array of integer or floating-point numbers.
5490
+
* @param { XsAnyAtomicType } [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().
5491
5491
* @returns { VecVector }
5492
5492
*/
5493
5493
vector(...args) {
@@ -5496,12 +5496,12 @@ vector(...args) {
5496
5496
return new types.VecVector('vec', 'vector', checkedArgs);
5497
5497
}
5498
5498
/**
5499
-
* A helper function that returns the hybrid score using a cts:score and a vector similarity function. You can tune the effect of the vector similarity on the score using the "similarity-weight" option. Provides a client interface to a server function. See {@link http://docs.marklogic.com/vec.vectorScore|vec.vectorScore}
5499
+
* A helper function that returns a hybrid score using a ctsscore and a vector similarity calculation result. You can tune the effect of the vector similarity on the score using the similarityWeight option. The ideal value for similarityWeight depends on your application. Provides a client interface to a server function. See {@link http://docs.marklogic.com/vec.vectorScore|vec.vectorScore}
5500
5500
* @method planBuilder.vec#vectorScore
5501
5501
* @since 3.5.0
5502
5502
* @param { XsUnsignedInt } [score] - The cts:score of the matching document.
5503
-
* @param { XsDouble } [similarity] - The similarity between the vector in the matching document and the query vector. The result of a call to ovec:cosine-similarity() or op.vec.cosineSimilarity(). In the case that the vectors are normalized, pass ovec:dot-product() or op.vec.dotProduct(). Note that vec:euclideanDistance() should not be used here.
5504
-
* @param { XsDouble } [similarityWeight] - The weight of the vector similarity on the score. The default value is 1.0. Values less than or equal to zero have no effect.
5503
+
* @param { XsDouble } [similarity] - The similarity between the vector in the matching document and the query vector. The result of a call to ovec:cosine-similarity(). In the case that the vectors are normalized, pass ovec:dot-product(). Note that vec:euclidean-distance() should not be used here.
5504
+
* @param { XsDouble } [similarityWeight] - The weight of the vector similarity on the score. The default value is 0.1. If 0.0 is passed in, vector similarity has no effect. If passed a value less than 0.0 or greater than 1.0, throw VEC-VECTORSCORE.
5505
5505
* @returns { XsUnsignedLong }
5506
5506
*/
5507
5507
vectorScore(...args) {
@@ -8513,7 +8513,7 @@ viewCol(...args) {
8513
8513
* Specifies a name for adding a fragment id column to the row set identifying the source documents for the rows from a view, lexicons or triples. The only use for the fragment id is joining other rows from the same document, the document uri, or the document content. The fragment id is only useful during execution of the query and not after. Provides a client interface to a server function. See {@link http://docs.marklogic.com/op.fragmentIdCol|op.fragmentIdCol}
8514
8514
* @method planBuilder#fragmentIdCol
8515
8515
* @since 2.1.1
8516
-
* @param { XsString } [column] -
8516
+
* @param { XsString } [column] - The name of the fragment ID column.
8517
8517
* @returns { planBuilder.PlanSystemColumn }
8518
8518
*/
8519
8519
fragmentIdCol(...args) {
@@ -8695,6 +8695,7 @@ fromSQL(...args) {
8695
8695
* @since 2.1.1
8696
8696
* @param { PlanSearchQuery } [query] - Qualifies and establishes the scores for a set of documents. The query can be a cts:query or a string as a shortcut for a cts:word-query.
8697
8697
* @param { XsString } [qualifierName] - Specifies a name for qualifying the column names.
8698
+
* @param { PlanSearchOption } [option] - Similar to the options of cts:search, supplies the 'scoreMethod' key with a value of 'logtfidf', 'logtf', 'simple', 'zero', 'random', or 'bm25' to specify the method for assigning a score to matched documents or supplies the 'qualityWeight' key with a numeric value to specify a multiplier for the quality contribution to the score. Specify a value between 0 (exclusive) and 1 (inclusive) for bm25LengthWeight if 'bm25' scoring method is used.
0 commit comments