Skip to Content
Confident AI is free to try . No credit card required.

Import From CSV

You can import goldens from CSV files by mapping each header column each respective golden fields. Alternatively, you can also upload goldens via code instead.

Loading video...

Import goldens from CSV

0 views • 0 days ago
Confident AI Logo
Confident AI
100K subscribers
0

Map Headers To Fields

The first row of your CSV file must be the headers, which you’ll use to determine which each golden field belongs to.

Single-Turn goldens

As a quick recap, the golden fields include:

  • Input: a string (text) representing the input to prompt your LLM application with during evaluation.
  • Expected Output: a string (text) representing the ideal output based on for the given input.
  • Context: a list of strings (text) representing the ground truth as supporting context.
  • Comments: a string (text) representing whatever comments your data annotators have for this particular golden (e.g. “Watch out for this expected output! It needs more work.”).
  • Additional Metadata: a free-form JSON which you can use to include as any additional data which you can later make use of in code during evaluation time.

These fields are also part of a golden but you should probably not populate it since they are meant to be computed dynamically at evaluation time:

  • Actual Output: a string (text) representing the generated output of your LLM application for the given input.
  • Retrieval Context: a list of strings (text) representing the retrieved text chunks of your LLM application for the given input. This is only for RAG pipelines.
💡

The full explanation of what a golden is and its fields are available here.

Once you’re done with your mapping, click Next to review your upload details. The platform will let you know whether there are duplicates, errors in type mismatches, and show you the final number of goldens that will be uploaded. Once you’re happy with everything, click Save.

Multi-Turn goldens

Multi-turn goldens have similar fields:

  • Scenario: a string (text) representing the scenario of which a user is interacting with your LLM chatbot.
  • Expected Outcome: a string (text) representing the ideal outcome based on for the given scenario.
  • User Description: a list of strings (text) representing the characteristics of the user interacting with your LLM chatbot.
  • Comments: a string (text) representing whatever comments your data annotators have for this particular golden (e.g. “Watch out for this expected output! It needs more work.”).
  • Additional Metadata: a free-form JSON which you can use to include as any additional data which you can later make use of in code during evaluation time.

As you may notice, the scenario is analogous to the input for single-turn goldens, while the expected outcome mirrors the expected output.

Last updated on