Skip to main content

Create Local Eval Set For Project

POST 

/api/v1/projects/:project_id/localevalset

Create a new local eval set.

Request

Path Parameters

    project_id anyrequired

Query Parameters

    organization_id any

Cookie Parameters

    session any

Body

required

    app_name App Name (string)required

    The name of the app.

    results

    object

    required

    The eval results.

    property name*

    object[]

  • Array [

  • query

    object

    Query string

    anyOf

    string

    contexts

    object

    Context strings

    anyOf

  • Array [

  • string

  • ]

  • response

    object

    Response string

    anyOf

    string

    passing

    object

    Binary evaluation result (passing or not)

    anyOf

    boolean

    feedback

    object

    Feedback or reasoning for the response

    anyOf

    string

    score

    object

    Score for the response

    anyOf

    number

    pairwise_source

    object

    Used only for pairwise and specifies whether it is from original order of presented answers or flipped order

    anyOf

    string

    invalid_result Invalid Result (boolean)

    Whether the evaluation result is an invalid one.

    Default value: false

    invalid_reason

    object

    Reason for invalid evaluation.

    anyOf

    string

  • ]

Responses

Successful Response

Schema

  • Array [

  • project_id uuidrequired

    The ID of the project.

    eval_set_id

    object

    The ID of the local eval result set.

    anyOf

    string

    app_name App Name (string)required

    The name of the app.

    eval_name Eval Name (string)required

    The name of the eval.

    result

    object

    required

    Evaluation result, EvaluationResult from llama_index.

    Output of an BaseEvaluator.

    query

    object

    Query string

    anyOf

    string

    contexts

    object

    Context strings

    anyOf

  • Array [

  • string

  • ]

  • response

    object

    Response string

    anyOf

    string

    passing

    object

    Binary evaluation result (passing or not)

    anyOf

    boolean

    feedback

    object

    Feedback or reasoning for the response

    anyOf

    string

    score

    object

    Score for the response

    anyOf

    number

    pairwise_source

    object

    Used only for pairwise and specifies whether it is from original order of presented answers or flipped order

    anyOf

    string

    invalid_result Invalid Result (boolean)

    Whether the evaluation result is an invalid one.

    Default value: false

    invalid_reason

    object

    Reason for invalid evaluation.

    anyOf

    string

  • ]