To Data & Beyond

To Data & Beyond

Share this post

To Data & Beyond
To Data & Beyond
Prompt Engineering for Instruction-Tuned LLM: Iterative Prompt Development

Prompt Engineering for Instruction-Tuned LLM: Iterative Prompt Development

Youssef Hosni's avatar
Youssef Hosni
Dec 31, 2023
∙ Paid
5

Share this post

To Data & Beyond
To Data & Beyond
Prompt Engineering for Instruction-Tuned LLM: Iterative Prompt Development
2
Share

When you build applications with large language models, it is difficult to come up with a prompt that you will end up using in the final application on your first attempt. 

However as long as you have a good process to iteratively make your prompt better, then you’ll be able to come to something that works well for the task you want to achieve.

You may have heard that when training a machine learning model, it rarely works the first time. Prompting also does not usually work from the first time. In this article, we will explore the process of getting to prompts that work for your application through iterative development. 

Table of Contents:

  1. Iterative Nature of Prompt Engineering

  2. Setting Working Environment & Getting Started

  3. Overcoming Too-Long LLM Results

  4. Force the LLM to Focus on Certain Details

  5. Getting Complex Responses


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