Prompts
An introduction to prompts and how they can be configured to add value in your application.
What are prompts?
A "prompt" refers to the input given to a model to generate a response. It can be a single sentence, a paragraph, or a series of statements that provide the initial context or information for the model to generate a coherent and relevant reply. The prompt is the starting point of the conversation and influences the output generated by a model.
What is a prompt library?
A "prompt library" is a collection of predefined prompts that users can choose from when interacting with a language model like ChatGPT. These prompts are often designed to guide the end-user in formulating queries or inputs that the model is more likely to understand and respond to effectively.
The idea is to offer users a set of suggested prompts that cover a range of topics or scenarios, making it easier for them to interact with the model and get meaningful responses. This can be particularly helpful for users who may be unsure of how to structure their queries or those looking for inspiration on what types of inputs work well with the model.
The prompts in a prompt library can be diverse, covering general topics, specific questions, or even role-playing scenarios to engage the model in a more interactive and dynamic conversation. The goal is to enhance the user experience by providing a starting point for generating effective interactions with the language model.
Examples of prompts:
Below are some examples of prompts that could be utilized in different scenarios, they may be helpful in guiding the configuration of your prompts.
Professional Development
Discuss the role of mentorship in career growth.
Provide tips for balancing work and personal life for improved well-being.
Role-playing
Imagine you're an HR manager conducting a job interview.
What questions would you ask?
Pretend you're giving a motivational speech to employees during a challenging period.
Team Building
Provide strategies for fostering effective teamwork within a diverse group. Discuss the role of team-building exercises in boosting morale and productivity.
Benefits of having prompts
Prompts help guide the end-user's interactions with the Agent.
Using prompts can help improve the relevance of questions asked by end-users.
Prompts can help to encourage end-user topic exploration.
Prompts can be used to help enhance end-user experiences in the application.
How to configure prompts
Go to Manage > Knowledge open any Bank and locate the new Prompt Collections tab.
Here, a Prompt Collection can be added by giving it a name, some Prompts (separated by line) and a prompt postscript.
The prompt collection name outlines the name displayed to users in the prompts dialog above the prompts list. It is advised to use a name that provides a unifying theme or topic that connects the individual prompts within the collection.
An optional prompt postscript is attached to each prompt sent to the assistant by the user. It serves as an additional instruction to guide the assistant in constructing the responses. For example “Explain in detail and give references from the context. Use markdown and bullet points for the key points.”
How to enable prompts
Prompts can be enabled by navigating to Manage -> Agents -> Selecting the agent you wish to add prompts for -> Selecting the 'tools' tab -> toggling 'Prompt library' on.
Prompt library for end-users
End-users will see the prompt library on the left-hand side of the text box within the Agent interface. Clicking this will open the full prompt library window for them to choose from, or they can type '/' to open the prompt window. The larger headings show the specific prompt collections, while the smaller text lists display the individual prompts within each collection.
Tips when configuring Prompts in your application.
Remember your prompts should be related to content you have trained the Agent on.
Review your liveboard to see common questions your users are asking and think about how prompts can encourage their interest.
There is no need to be polite with the Agent, just get straight to the point.
Experiment with prompt types i.e. scenario-based, factual.
Last updated