Basic Selection Rules and Redpoint IQ
Redpoint IQ uses Artificial Intelligence (AI) to create criteria within a basic selection rule. To use Redpoint IQ, select the Redpoint IQ button in the basic selection rule’s toolbox’s Tools tab:
![image-20240902-093541.png](../__attachments/4139949730/image-20240902-093541.png?inst-v=8d4da700-bcb2-4216-8fac-c3a9d2edf943)
The option is only available if one or more SQL database definitions at which Enable AI has been checked exist, and the current user is a member of a user group with the Selection Rule—Basic—AI functional permission.
Selecting the button displays the Redpoint IQ overlay, which is displayed on top of the rule's workspace.
The overlay contains the following:
Close: an “X” close button, shown to the top right, allows you remove the overlay from display.
Chat history: when displayed for the first time, an introductory prompt is written by Redpoint IQ:
![image-20240902-100945.png](../__attachments/4139949730/image-20240902-100945.png?inst-v=8d4da700-bcb2-4216-8fac-c3a9d2edf943)
A date and time is displayed along with each entry in the chat history. If Redpoint IQ has been used previously to build criteria within the current basic selection rule in the current RPI session, the previous chat history can optionally be shown. Chat history is updated as user prompts and responses from Redpoint IQ are entered and received respectively.
Clear chat: this button is available when at least one user prompt has been added to the chat history. Selecting it clears all entries in the chat history and redisplays the initial Redpoint IQ prompt.
User prompt: you can enter instructions to Redpoint IQ describing the type of criteria you wish to create. Once you enter text in this field, the Send message to Redpoint IQ button is available.
Send message to Redpoint IQ: this button is available when text has been entered in the user prompt.. Selecting it adds the user prompt to the chat:
![image-20240902-102255.png](../__attachments/4139949730/image-20240902-102255.png?inst-v=8d4da700-bcb2-4216-8fac-c3a9d2edf943)
Redpoint IQ then displays a 'Thinking...' message. While this is displayed, a Send Message to Model job is created (the My Jobs Window is not displayed). More information on the job can be found in the My Jobs documentation.
Redpoint IQ’s response is displayed on the job’s completion:
![image-20240902-102348.png](../__attachments/4139949730/image-20240902-102348.png?inst-v=8d4da700-bcb2-4216-8fac-c3a9d2edf943)
If Redpoint IQ is unable to build one or more criteria, a message describes why this is the case. A message appears at the bottom of the response advising you to select Build to build the criteria listed; alternatively, you can enter further user prompts to add more, or edit or remove existing, criteria.
Build latest criteria: this button is available when criteria listed in the chat. Selecting it removes the Redpoint IQ overlay from display, and displays the generated criteria in the basic selection rule. An “Are You Sure?” dialog is displayed if criteria already present in the rule.
It’s important to check that the criteria generated using Redpoint IQ are as per your expectations.