Learn how to quickly get started with running prompt evaluations using the Maxim SDK
createTestRun
is the main function that creates a test run. It takes the name of the test run and the workspace id.
withDataStructure
is used to define the data structure of the dataset. It takes an object with the keys as the column names and the values as the column types.
withData
is used to specify the dataset to use for the test run. Can be a datasetId(string), a CSV file, an array of column to value mappings.
withEvaluators
is used to specify the evaluators to use/attach for the test run. You may create an evaluator locally through code or use an evaluator that is installed in your workspace through the name directly
withPromptVersionId
is used to specify the prompt version to use for the test run. It takes the id of the prompt version.
run
is used to execute the test run.