Try and file runs
Try runs the prism on real text from the app, without code. Every answer it gets is saved as a result, like an API call, so it shows on the Results tab. What a result keeps of the text follows the prism's What Prismlet keeps of each text setting.
An admin tries a text on Questions, in the Text to try column. It runs the latest saved version, live or not, so you can check a version before you publish it. An operator has a Try tab, which runs the live version and shows the same columns with the questions only to read.
Try one text
Section titled “Try one text”Text to try shows each field of the prism under its name.
- Type or paste the text into each field.
- Optionally, choose Add a reference and type your own ID, such as a ticket number. It is the API's
ref, saved with the result so you can find it later. - Choose Run, or press Ctrl Enter (Cmd Enter on a Mac).
Answers shows each question's answer on that question's line: plain when it is clear, amber with its percentage when it is Unsure, and plum with a person mark when it needs a person. The head of the column counts both, such as "1 needs a person" and "1 unsure". The line under it names the version that read the text and how long it took, such as "Read by version 3 in 1.8 s".
Click a question to open it. Its picture shows in outline beside the question and filled in for this text beside the answer: each cell of a Choice or Scale filled to that option's probability, or a needle on the Yes / No track at the probability of yes. Open as a result opens the full result. Results explains what a result page shows.
A failed run is saved as a result too. The line says so and shows the error, with Open as a result.
If you edit the text after a run, the line says Changed since the last run, because the answers describe the earlier text. Run it again to answer your edits.
Try runs only a saved version. With unsaved changes on Questions, the button reads Save and run: it saves your changes as the next version, then runs it. API calls keep using the live version.
A text pasted on Home, or a library example, opens in Text to try.
Image fields
Section titled “Image fields”An image field shows a file picker instead of a place to type. Choose a PNG, JPEG or WebP file. The app scales a large image down before it sends it. A prism with image fields needs an account model that reads images. See Fields.
Run a file
Section titled “Run a file”The file runner, at /prisms/{id}/try#file, answers every row of a file, one row per text. An operator finds it under the columns of the Try tab. An admin opens it with Answer a file in the ... menu of Results, or Run a file in Jump to. Each row is saved as a result with the file as its source. File format, at its top, opens the file format details.
In short:
- The file is CSV, TSV or JSON. A
.txtfile is read as CSV or TSV. - In CSV and TSV the first row is the column names. A JSON file is an array of objects.
- A file holds at most 10,000 rows and 200 MB.
Drop the file on the box, or click it to choose one.
Choose the columns
Section titled “Choose the columns”After the file loads, the app shows its name and how many texts it holds, and matches its columns to the prism by name, such as "We matched 5 columns." Change shows each match. When a field has no column, the app says Choose a column for each field. and shows them at once.
- One select per field, named after it. The app picks a column whose name matches the field's key or name. Every field needs a column.
- Reference is optional. The app picks a column named Reference or Ref. Without one, the reference is the row number.
- Context for each text (optional). Each row's cell is sent as that call's context, after the prism's own.
Run 250 texts starts. The app answers eight rows at a time and shows its progress. Try, file runs and retries count against a per-account limit each minute; when the account reaches it, the run waits and goes on. Keep the tab open. Leaving it stops the run. Rows already answered are kept, and running the same file with the same columns and version picks up where it stopped.
Choose another file starts over.
Images in a file
Section titled “Images in a file”For a prism with image fields, each image cell holds a file name, such as scan-0412.png. Under Images for this run, choose the images with Choose images, or a whole folder with Choose a folder. The app matches cells to files by name, ignoring case. Before it runs, it lists any cell whose file you haven't chosen, and any two chosen files that share a name.
When the prism's only field is one image field, you don't need a table. Choose the photos, and each one becomes a row with its file name as the reference.
After the run
Section titled “After the run”The status line counts the rows answered and failed. A row the app could not send, for example one with a reference over 200 characters, counts as not saved and has no result.
- See these results opens the Results tab filtered to this file.
- Download answered file saves the file with one column per question and
result_idadded after your own columns, in the file's own format.
Check against your own labels
Section titled “Check against your own labels”If the file already holds the answers you expect, from a QA team for example, the run can score the prism against them. Under Your answers (optional), each question has a select, named by its short name. The app picks a column whose name matches the question's key, text or short name. Leave the others on Not checked.
Group by (optional) splits the figures by a column, such as language, site or team.
The app sends only the field columns, and the context column when you chose one. Your answers and the group column stay in your browser.
The evaluation report
Section titled “The evaluation report”After a run with your answers, How often it matches your answers shows one block per checked question.
- A count line says how many rows were scored, and how many had no answer from you, were not run, failed, had no valid answer or were Unsure, such as Other or Not enough information. A count that is zero is left out. Cells the app could not read are counted, with a few examples.
- Yes / No shows agreement, recall and precision for Yes at a range of cutoffs, plus a row for the question's own cutoffs, such as Own cutoffs, Yes from 70%, No below 35%, with the share that fell between them. An Unsure answer counts as a miss.
- Choice shows overall agreement, precision and recall per option, and agreement when only confident answers are counted.
- Scale shows exact agreement and agreement within one level.
- With a group column, a table splits the figures per group.
- Each row where the answer differs from yours is listed as a miss, with its reference, your answer, the answer and its probability. The report shows the first 50.
Every percentage shows its sample beside it, such as 62% (31 of 50), so a figure from three rows never looks like one from 300. Download evaluation saves the figures as CSV. Download misses saves every miss with its result_id.
Changing the columns of your answers or the group column after a run updates the report without asking the model again. Checking answers against your own labels explains which cell values count and how each figure is worked out.
Keep the file as a test set
Section titled “Keep the file as a test set”A file run scores one version once. To compare versions, keep the texts and your answers as a test set on the Test tab, which matches a file's columns the same way, and run it there on any saved version. Only admins can save test sets.