/solar-prompt-cookbook

Solar Prompt Cookbook

Primary LanguageJupyter Notebook

Solar Prompt Cookbook

Getting Started Quickly with Codespace

Open in GitHub Codespaces

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 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

1. Introduction to Prompts

2. Basic Prompt Engineering Techniques

3. Advanced Prompt Engineering Techniques

Appendix. Use Cases: Industry Use Cases

Appendix. Use Cases: Prompt Optimization