0% found this document useful (0 votes)
38 views

Exercise 1: Import and Export Entities Via CSV Files: On This Link

This document provides instructions for importing and exporting entities via CSV files in Anthropic's Constitutional AI training interface. It describes downloading a sample CSV file with two entities, importing the entities by selecting the CSV file, and viewing the new entities in the interface. The key difference between importing entities and intents is that entity CSV files can include synonyms and patterns for each value in addition to the entity name.

Uploaded by

Syam Siva Reddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

Exercise 1: Import and Export Entities Via CSV Files: On This Link

This document provides instructions for importing and exporting entities via CSV files in Anthropic's Constitutional AI training interface. It describes downloading a sample CSV file with two entities, importing the entities by selecting the CSV file, and viewing the new entities in the interface. The key difference between importing entities and intents is that entity CSV files can include synonyms and patterns for each value in addition to the entity name.

Uploaded by

Syam Siva Reddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Lab 5: Import and Export Entities

Exercise 1: Import and export entities via CSV files


Importing and exporting entities via CSV files works very similarly to intents. When you select
one or more entities by checking off the checkmarks next to them, you'll be offered the ability
to export them to CSV. Likewise, you can import them by clicking the Import entities button
next to Create entity.

Click on this link to download a CSV file with two new entities I prepared (i.e.,
@occasion and @relationship).

If clicking on the link opens the file in a new tab, ensure you save the file on your disk
(press CRTL+S on Windows or ⌘+S on Mac) and then proceed with importing the new
entities by clicking on the Import entities button in the Entities section.

As usual, you’ll be asked to select the CSV file you downloaded and then click Import.

Upon successful upload and import of your entities, you should see a confirmation dialog
similar to the one shown in the image below.
Lab 5: Import and Export Entities

Click Done and you should see two new entities. We'll use these two entities later on in the
chatbot. For now, this will serve as a good exercise on importing entities.

The only real difference you need to be aware of, as far as importing goes, lies in the structure
of the CSV file. For intents, it was example,intent. Entities can optionally have synonyms and
patterns as well, so the structure is different.

If you open the CSV file I provided you with, you'll notice that each line has the entity name
first, followed by a value, followed by a comma separated list of synonyms if any have been
provided for that entity value. If a pattern is specified instead, it will also appear here.

You might also like