Prompt Engineering
Prompt Engineering
Topic-1 Understanding your Gen AI Model going to use for this lab through Prompts.
Prompt:- what kind of input and output data formats you will support?
Prompt:- What Kind of GDPR & IPR norms you will follow?
----------------------------------------------------------------------------------
Topic-2 Understanding Prompt Hyperparameters.
Prompt:- Could you please suggest how effectively manage the token limits?
----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
USE CASE:-1
Generate a comprehensive report on the current market trends in the banking sector,
focusing on key factors such as growth drivers,
emerging technologies, consumer behavior patterns, and competitive landscape.
Ensure that the report includes statistical data, graphs, and insights from recent
market analyses.
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
Topic-5 Basic Prompting Techniques:- Role Playing, Explain assuming I am a kid, new
to subject etc...
Role Playing:-
An important aspect to discuss when talking about chatbot development is role-
playing prompts. Let's see what these are.
Role-playing prompts instruct the chatbot to adopt a specific role, like an actor
in a play being given a character to portray.
This means adjusting tone, vocabulary, and behavior to fit the role's requirements,
providing tailored responses instead of generic ones.
This approach ensures effective interactions, especially for domain-specific
chatbots.
Imagine we're developing a chatbot for a company offering high-tech products.
A customer asks about the technical specifications of a certain product. We've
defined three roles for the chatbot: customer support agent,
The customer support agent provides general guidance, directs customers to the
website for more details, and offers assistance.
Another Example:-
I went to the market and bought 10 apples. I gave 2 apples to the neighbored 2 to
the repairman. I then went and bought 5 more apples and ate 1. How many apples did
I remain with?
Let's think step by step.
-----------------------------------------------------------------------------------
--------------------------------------------------------------------------
Topic 8:-META-PROMPTING.
Meta Prompt:
Before providing advice on managing diabetes, consider the following questions:
1. What are the primary types of diabetes, and do the management strategies differ
between them?
2. What are the most commonly recommended lifestyle changes for diabetes
management?
3. What role do medications play in managing diabetes, and what are some common
medications used?
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-
Topic 9:- Code & Knowledge Generation:-
Generating Content:-
Summarizing
Design Q&A
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-
Sandwich Prompting:-
Prompt:
Introduction:
You are a licensed healthcare professional providing advice to a patient.
Main Task:
Advise the patient on managing Type 2 diabetes effectively.
Follow-Up Directive:
Ensure your advice includes dietary recommendations, exercise guidelines, and tips
for monitoring blood sugar levels.
-----------------------------------------------------------------------------------
--------------------------------------------------------------