To Data & Beyond

To Data & Beyond

Share this post

To Data & Beyond
To Data & Beyond
Prompt Engineering Best Practices: Text Expansion

Prompt Engineering Best Practices: Text Expansion

Prompt Engineering for Instruction Tuned LLMs

Youssef Hosni's avatar
Youssef Hosni
Feb 19, 2024
∙ Paid
4

Share this post

To Data & Beyond
To Data & Beyond
Prompt Engineering Best Practices: Text Expansion
1
Share

Text expansion is the task of taking a shorter piece of text, such as a set of instructions or a list of topics, and having the large language model generate a longer piece of text, such as an email or an essay about some topic.

There are some great uses of this, such as if you use a large language model as a brainstorming partner. However there are also some problematic use cases of this, such as if someone were to use it, they generate a large amount of spam. 

In this article, we’ll go through an example of how you can use a language model to generate a personalized email based on some information. The email is self-proclaimed to be from an AI bot which is very important.

 We’re also going to use another one of the model’s input parameters called “temperature” which allows you to vary the kind of degree of exploration and variety in the kind of model’s responses. So let’s get into it!


My E-book: Data Science Portfolio for Success Is Out!

Youssef Hosni
·
September 15, 2023
My E-book: Data Science Portfolio for Success Is Out!

I recently published my first e-book Data Science Portfolio for Success which is a practical guide on how to build your data science portfolio. The book covers the following topics: The Importance of Having a Portfolio as a Data Scientist How to Build a Data Science Portfolio That Will Land You a Job?

Read full story

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 Youssef Hosni
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share