Rapidata leaderboard
RapidataLeaderboard #
RapidataLeaderboard(
name: str,
instruction: str,
show_prompt: bool,
id: str,
openapi_service: OpenAPIService,
)
An instance of a Rapidata leaderboard.
Used to interact with a specific leaderboard in the Rapidata system, such as retrieving prompts and evaluating models.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The name that will be used to identify the leaderboard on the overview. |
required |
instruction
|
str
|
The instruction that will determine what how the models will be evaluated. |
required |
show_prompt
|
bool
|
Whether to show the prompt to the users. |
required |
id
|
str
|
The ID of the leaderboard. |
required |
openapi_service
|
OpenAPIService
|
The OpenAPIService instance for API interaction. |
required |
Source code in src/rapidata/rapidata_client/leaderboard/rapidata_leaderboard.py
evaluate_model #
Evaluates a model on the leaderboard.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The name of the model. |
required |
media
|
list[str]
|
The generated images/videos that will be used to evaluate the model. |
required |
prompts
|
list[str]
|
The prompts that correspond to the media. The order of the prompts must match the order of the media. The prompts that are used must be registered for the leaderboard. To see the registered prompts, use the prompts property. |
required |