Hierarchy

  • APIResource
    • Evals

Constructors

Properties

Methods

Constructors

  • Parameters

    • client: OpenAI

    Returns Evals

Properties

Methods

  • Create the structure of an evaluation that can be used to test a model's performance. An evaluation is a set of testing criteria and a datasource. After creating an evaluation, you can run it on different models and model parameters. We support several types of graders and datasources. For more information, see the Evals guide.

    Parameters

    Returns APIPromise<EvalCreateResponse>

  • Delete an evaluation.

    Parameters

    • evalId: string
    • Optionaloptions: RequestOptions<unknown>

    Returns APIPromise<EvalDeleteResponse>

  • Get an evaluation by ID.

    Parameters

    • evalId: string
    • Optionaloptions: RequestOptions<unknown>

    Returns APIPromise<EvalRetrieveResponse>

  • Update certain properties of an evaluation.

    Parameters

    Returns APIPromise<EvalUpdateResponse>