Skip to content

Commit d97392b

Browse files
committed
Added summarization prompt(s)
First pass at the summarization prompt. Signed-off-by: JJ Asghar <[email protected]>
1 parent 892a2e6 commit d97392b

File tree

1 file changed

+47
-10
lines changed

1 file changed

+47
-10
lines changed

docs/lab-5/README.md

+47-10
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ Maybe call it "Learning Prompt Engineering" or the like, just like below.
1515

1616
Now lets try our first real prompt, copy the following into the message box:
1717
```
18-
I'm looking to explore [subject] in a [format]. Do you have any suggestions on [topics] I can cover?
18+
I'm looking to explore [subject] in a [format].
19+
Do you have any suggestions on [topics] I can cover?
1920
```
2021

2122
This is a good "brain storming idea" prompt. Fill in `[subject]`, `[format]`, and `[topics]` for liking,
2223
I'll be running:
2324
```
24-
I'm looking to explore pasta making recipes. Do you have any suggestions on recipes that are unique and challanging?
25+
I'm looking to explore pasta making recipes. Do you
26+
have any suggestions on recipes that are unique and challanging?
2527
```
2628

2729
As you can see granite-3.1 comes back with some very challenging options:
@@ -33,7 +35,8 @@ Now if you put the same question in does it give you the same? Or is it differen
3335
I'm a fan of Homemade Ravioli, so lets ask what the recipe is for that, in the message box in this _thread_ I'll write
3436
out:
3537
```
36-
I do like some homemade ravioli, what is the spinach ricotta and cheese recipe you suggest?
38+
I do like some homemade ravioli, what is the spinach
39+
ricotta and cheese recipe you suggest?
3740
```
3841

3942
![homemade ravioli](../images/anythingllm_homemade_ravioli.png)
@@ -51,21 +54,33 @@ done, but give you a "mad libs" prompt that can help just churn them out for you
5154

5255
Take the following prompt, and fill it out to your content. Have some fun with it :)
5356
```
54-
I want you to act as a customer support assistant who is [characteristic]. How would you respond to [text] as a representative of our [type] company?
57+
I want you to act as a customer support assistant who
58+
is [characteristic]. How would you respond to [text]
59+
as a representative of our [type] company?
5560
```
5661

5762
My version will be:
5863
```
59-
I want you to act as a customer support assistant who is an expert in shipping logistics. How would you respond to client who has had their freight lost as a representative of our company?
64+
I want you to act as a customer support assistant who
65+
is an expert in shipping logistics. How would you respond
66+
to client who has had their freight lost as a
67+
representative of our company?
6068
```
6169

6270
![lost freight](../images/anythingllm_lost_freight.png)
6371

6472
Oh, that's not nearly enough, or interesting right? Well it's because we haven't interated on it, we just wrote a "client" with no context, or what they may
6573
have lost. So lets see if we can fill it out more:
6674
```
67-
The freight they lost was an industrial refrigerator, from Burbank, California to Kanas City, MO. I need you to write out an apology letter, with reference to the shipping order, of #00234273 and the help line of 18003472845, with a discount code of OPPSWEDIDITAGAIN for 15% off shipping their next order.
68-
Mention that sometimes the trucks have accidents and need to be repaired and we should be able to reach out in a couple weeks.
75+
The freight they lost was an industrial refrigerator,
76+
from Burbank, California to Kanas City, MO. I need you to
77+
write out an apology letter, with reference to the
78+
shipping order, of #00234273 and the help line of 18003472845,
79+
with a discount code of OPPSWEDIDITAGAIN for 15% off
80+
shipping their next order.
81+
Mention that sometimes the trucks have accidents and
82+
need to be repaired and we should be able to reach
83+
out in a couple weeks.
6984
```
7085

7186
![better lost freight](../images/anythingllm_better_lost_freight.png)
@@ -80,19 +95,41 @@ and maybe if you are feeling adventurous you can even get a cover letter out of
8095

8196
Here's a prompt to help you getting started:
8297
```
83-
The following text is my resume for my career up until my most recent job. I am [your job now] with [number of years of experiance] considered
84-
an expert or highly skilled individual in [your core skill set]. I am looking to build a couple paragraph explanation on why someone should
85-
hire me for the next role with both my modern skill set, and my previous expertise
98+
The following text is my resume for my career up until
99+
my most recent job. I am [your job now] with
100+
[number of years of experiance] considered
101+
an expert or highly skilled individual in
102+
[your core skill set]. I am looking to build a
103+
couple paragraph explanation on why someone should
104+
hire me for the next role with both my modern
105+
skill set, and my previous expertise
86106
```
87107

88108
![](../images/anythingllm_resume.png)
89109

90110
Now for mine, it wasn't great, but it at least give me somethings to work off of. Again, this is just a start, but you can build off of this blurb and
91111
see what you can actually accomplish.
92112

113+
## Summarization Prompt
114+
115+
Something you'll discover quickly is that leveraging your local AI model to summarize long documents and/or emails can help figure out if you
116+
actually need to read the details of something. Showing the age of the author here, but remember [CliffNotes](https://en.wikipedia.org/wiki/CliffsNotes)? Yep, you have your own
117+
built in CliffNotes bot with AI.
118+
119+
Here's a prompt to help you set up your AI model to put it "head space" this was inspired from [this website](https://narrato.io/blog/get-precise-insights-with-30-chatgpt-prompts-for-summary-generation/):
120+
121+
```
122+
Generate an X-word summary of the following document,
123+
highlighting key insights, notable quotes, and the overall
124+
tone of the core point of it.
125+
Be sure to add any specific call to actions or things that
126+
need to be done by a specific date.
127+
```
128+
93129
## Zero, Single, Multi Shot prompting
94130

95131
Now that we've played with a couple different versions of prompts, lets talk about the differences between them:
132+
96133
- Zero Shot: No previous data or guidelines given before completing request.
97134
- Our "brain storming prompt" was a zero shot prompt, it just started with "do this thing." Then we built off of it, and turned it into a Single Shot prompt.
98135
- One Shot: One piece of data or guideline given before completing request.

0 commit comments

Comments
 (0)