Reranker#

Evaluates the relevance of documents to the query using the built-in BGE reranker or a specified model instance.

Query*[Text] Required non-empty search query.
Documents*[Array of texts] Required non-empty list of documents in original order.
ModelInstanceGuid[Text] Optional GUID of the model instance; if not provided, the built-in BGE reranker is used.
TopN[Number] Number of results when working through ModelInstanceGuid; the built-in BGE returns a score for each document.
Timeout[Number] HTTP request timeout in seconds; default value is 300.
ResultSuccessTrue if reranking is performed without error.
ResultData[Array of numbers | object] BGE scores in the order of input documents or the full response of the specified model instance.
Error Handling Level

Select the error handling level.

Possible values:

  • "Default" - default;
  • "Ignore" - errors are ignored;
  • "Handle" - errors are handled.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Message Level

Select the message level that blocks will output during operation.

Possible values:

  • "Default" - default;
  • "Release" - output is disabled;
  • "Debug" - outputs main information;
  • "Detailed" - outputs detailed information.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Error Message[Text] Returns detailed information about the error in case of incorrect execution of the block.