Vllm.Outputs.ScoringOutput (VLLM v0.3.0)

Copy Markdown View Source

The output data of one scoring output of a request.

Parameters

  • score - The similarity score, which is a scalar value.

Summary

Functions

Python method ScoringOutput.from_base.

Initialize self. See help(type(self)) for accurate signature.

Types

t()

@opaque t()

Functions

from_base(ref, pooling_output, opts \\ [])

@spec from_base(SnakeBridge.Ref.t(), Vllm.Outputs.PoolingOutput.t(), keyword()) ::
  {:ok, term()} | {:error, Snakepit.Error.t()}

Python method ScoringOutput.from_base.

Parameters

  • pooling_output (Vllm.Outputs.PoolingOutput.t())

Returns

  • term()

new(score, opts \\ [])

@spec new(
  float(),
  keyword()
) :: {:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}

Initialize self. See help(type(self)) for accurate signature.

Parameters

  • score (float())