Use AI - Evaluate your AI model

Before a trained AI model goes into your app, you need to know how good its answers are. Reading the training data doesn't tell you that, and writing code just to try one message takes time. With Promptrepo, you test the model in a form and see its answer right there, and you can add a good answer to the training data. When you're happy with it, you call it as an API from your app, website or workflow.

Let's start. Create your AI model and follow the steps below.

Create your model

Input with Document, Email and Text to choose from, with Text marked
  • Enter one example in the box: Please send 12 apples to Chennai by Friday
  • Click Done. AI fills in the Output on the right.
Enter Text with the example typed in the box, with the Done button marked
  • Under Editing input, click + Add input field if you need another input.
  • Click Done
Editing input on the left and the Output filled in by AI on the right, with the Done button marked
  • Under Editing output, you can select Text, Number, Enum or JSON for each output.
  • Click Done
Input on the left and Editing output on the right, with the Done button marked
  • Click Publish
Input and Output side by side, with the Publish button marked at the top
  • Enter the AI model name and click Publish Now
The AI model name box with Delivery details typed in, with the Publish Now button marked
  • When it says Model is ready!, click Proceed.
The Model is ready! message, with the Proceed button marked

Use as form

  • On your model's page, click PREVIEW
The top of the model page with EDIT, CODE and PREVIEW, with PREVIEW marked
  • Input the data or click Load example
  • Click PROCEED. Enter the data first, because PROCEED with an empty box shows an error.
The Input with a message typed in and an empty Output, with the Proceed button marked
Check the model's output. To keep a good result, click ADD TO TRAINING DATA.
The Input and the Output with Product mangoes, Quantity 5, City Madurai and Delivery by Monday, with the Add to training data button marked

Use as API

  • On your model's page, click CODE
The top of the model page with EDIT, CODE and PREVIEW, with CODE marked
  • Select cURL or Node.js
  • Click to copy the code and integrate it to test as an API. The code already has your own API key, shown here as YOUR_API_KEY, so keep it private.
The Code panel with cURL and Node.js marked and a curl command with YOUR_API_KEY in it

Summary

If you have trained a model, you need to test it before you use it. With Promptrepo, you open PREVIEW to try it in a form or CODE to call it as an API. Create your AI model and complete the steps above. If you have any questions, write to support.

Last updated: