Skip to content

danheean/Solar_Prompt_Guide

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello!

Upstage's Prompt Engineering Cookbook

Prompting serves as a cohesive natural language interface for human-AI interactions and has become widely adopted with the rise of large language models (LLMs). LLMs are particularly sensitive to prompt design. This cookbook aims to provide a comprehensive, step-by-step guide for crafting highly effective prompts within Solar, emphasizing practical techniques and strategies. Central to this course is the concept of a prompt engineering cookbook-a collection of structured recipes outlining best practices for prompt creation. These recipes present proven methods to optimize interactions with solar models, addressing common challenges and providing frameworks for diverse use cases.

By the end of this book, you will be able to:

  1. Build a strong foundation in basic prompt structure.
  2. Develop a thorough understanding of Solar’s capabilities and limitations.
  3. Discover solutions for overcoming common challenges to maximize prompt engineering with Solar.
  4. Create optimized prompts from scratch for a wide range of applications, from common use cases to industrial fields.

Some of you may wonder when to use prompt engineering versus fine-tuning. Here’s a quick guide on each:

Use prompt engineering when:

  • You need flexibility, fast iteration, and cost efficiency.
  • Tasks are general or the model is instruction-tuned.
  • Requirements may change often.

Use fine-tuning when:

  • Tasks are speciliazed or domain-specific.
  • Consistency, accuracy, and scalability are critical.
  • Base model lacks necessary knowledge.

Start with prompt engineering; move to fine-tuning if results are inconsistent or too complex to handle with prompts alone.


Course Structure and Content

This cookbook is designed to guide non-expert users in optimizing their interactions with Upstage’s Solar Pro Preview model.

Each chapter is structured with:

  • a lesson
  • prompt example
  • practice section

In the example section, a comparison between the results of good and bad prompts is provided.

Once you're ready to begin, head over to Getting Started-Tutorial How-To.


Table of Contents

0. Setting Up Your Environment

  • Chapter 0: Getting Started-Tutorial How-To

1. Introduction to Prompts

  • Chapter 1: Basic Prompt Structure
  • Chapter 2: Direct and Clear Prompts
  • Chapter 3: Five Focal Prompt Elements and Types

2. Basic Prompt Engineering Techniques

  • Chapter 4: Examples and Few-Shot Prompting
  • Chapter 5: Role and Style Prompting
  • Chapter 6: Structured vs. Unstructured Prompting
  • Chapter 7: Reasoning and Chain-of-Thought Prompting

3. Advanced Prompt Engineering Techniques

  • Chapter 8: Resolving Hallucinations
  • Chapter 9: Complex Prompt Chaining

Appendix. Use Cases (Industry Use Cases)

Appendix. Use Cases (Prompt Optimization)

About

Solar Prompt Guide

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%