Skip to content
API referenceList a context source's test runs

List a context source's test runs

GET/v1/context-sources/{slug}/test-runs

List a context source's test runs.

Newest first, without per-question results (get one run for those).

Requires an organization admin key, or a key of the source's workspace. Returns 404 when the source does not exist.

Authorization

  • AuthorizationBearer va_

    A platform API key (va_...), created under Settings > API keys. Scoped to an organization or one workspace, with an admin or member role. Used by the management API.

Path parameters

  • slugstringrequired

    The source's identifier (ctx-...).

Query parameters

  • organizationstringrequired

    The organization's identifier (slug).

  • pageinteger<int32>

    The page number, starting at 1. Default 1.

  • page_sizeinteger<int32>

    Runs per page. Default 20, at most 100.

Responses

200application/json
  • dataobject[]

    The runs, without per-case results.

    Child attributes
    • idstring

      The run's id.

    • statusenum<string>

      RUNNING, COMPLETED or FAILED.

      One of "RUNNING", "COMPLETED", "FAILED"

    • virtual_keystring

      The virtual key the selections ran on.

    • modelstring

      The model that chose the sections.

    • budgetinteger<int32>

      Tokens of section text allowed per question.

    • case_countinteger<int32>

      Test cases in the run.

    • recallnumber<double>

      Mean section recall over the cases, 0 to 1. Absent until the run completes.

    • hit_ratenumber<double>

      Share of cases where at least one expected section was chosen, 0 to 1. Absent until the run completes.

    • freshboolean

      True when the run skipped the selection cache, so every selection time is a real selection call.

    • select_p50_msinteger<int64>

      Median selection time over the questions not answered from the selection cache, in milliseconds. Absent until the run completes, or when every question came from the cache.

    • select_p95_msinteger<int64>

      95th-percentile selection time over the same questions, in milliseconds.

    • errorstring

      Why the run failed.

    • resultsobject[]

      Per-case results, in the test set's order. Present when you get one run, absent in lists.

      Child attributes
      • case_idstring

        The test case's id.

      • expected_sectionsstring[]

        The sections the case expects.

      • selected_sectionsstring[]

        The sections the selection chose within the budget, most relevant first.

      • statusstring

        The selection's status, as in x-context-status.

      • recallnumber<double>

        Share of the expected sections that were chosen, 0 to 1.

      • cachedboolean

        True when the choice came from the selection cache.

      • select_msinteger<int64>

        Milliseconds the selection took (0 when every section fit the budget and none had to be chosen).

    • created_bystring

      Who started the run.

    • started_atstring<date-time>

      When the run started.

    • finished_atstring<date-time>

      When it finished.

  • pageinteger<int32>

    The page number, starting at 1.

  • page_sizeinteger<int32>

    Runs per page.

  • totalinteger<int64>

    Runs in all.

NVIDIA Inception Program member

VectorAxis is built by GK Labs, a member of NVIDIA Inception.