Benchmark

Adds a new prompt to a benchmark.

Changed on

The content is validated against the benchmark's prompt structure: a required segment must be filled and an unknown segment key is rejected.

post/benchmark/{benchmarkId}/prompt

Request

  • Base URL
    https://api.rapidata.ai
  • URL
    https://api.rapidata.ai/benchmark/{benchmarkId}/prompt
  • Auth
    OpenID Connect (https://auth.rapidata.ai/.well-known/openid-configuration, scopes: openid, profile, email, offline_access, api)

Path parameters

benchmarkIdstring required

The id of the benchmark to add the prompt to.

Request body

identifierstring required

An identifier associated with the prompt.

Response

OK

idstring required

The id of the created prompt.

Changes

    • warning

      removed the request property

    • warning

      removed the request property

    • info

      added the new optional request property

    • info

      the security scope api was added to the endpoint's security scheme OpenIdConnect