Starting out using LLMs can be a huge time suck. Especially if there is a time sensitive deadline involved. Here is a Prompt Engineering Guide
These fundamentals are a gems that have provided some of most amazing results, however they didn’t come easy.
A quick intro to Blooms Taxonomy which is a framework for understanding how humans learn, which can also be used to understand the capabilities of ChatGPT or other LLMs. It is structured in a hierarchy from the most basic to more complex cognitive skills and processes. This is the model inverted with Remembering at the top and Creating at the bottom.
- Creating: This involves producing new and original work. Nearly everything a language model generates is new, so they are able to create, just watch it hallucinate a story about crows and pyramids.
- Evaluating: This involves justifying a decision or action. While language models can justify themselves, they might not always be correct.
- Analyzing: This is defined as drawing connections among ideas. LLMs are able to analyze information, and you can test this by asking a language model to do a rhetorical analysis.
- Applying: This involves using information in new situations. Language models can apply information functionally because they are definitely useful in this context.
- Understanding: This is defined as explaining ideas and concepts and connecting words to their meanings. ChatGPT and other models like Perplexity can accomplish this with ease.
- Remembering: This involves recalling facts and basic concepts. Language models can easily regurgitate information even from prior conversations that you have had.
The three fundamental operations in prompt engineering are reductive, transformational, and generative. These operations are defined by the relationship between the input and output sizes and meanings.
Here's a breakdown of each type:
- Generative Operations
- These operations involve a smaller input and a larger output.
- They are used to expand on ideas and create new content.
- Examples include:
- Drafting: Creating a document based on instructions, such as a code file, fiction, or a legal document.
- Planning: Developing plans based on given parameters, including brainstorming objectives and missions.
- Brainstorming: Generating ideas and listing possibilities using imagination.
- Hypothesizing: Creating hypotheses.
- Amplification: Expanding on a topic to fully unpack it.
- Reductive Operations
-
- These operations involve a larger input than output.
- They are used to condense, distill, or extract key information from a larger text.
- Examples include:
-
- Summarization: Condensing information into fewer words using formats like lists, nodes, and executive summaries.
- Distillation: Purifying the core principle or fact by removing noise.
- Extraction: Pulling out specific information like answers to questions, named entities, dates, and numbers.
- Characterization: Identifying the nature of text or a topic within the text.
- Analysis: Performing a structural or rhetorical analysis of text.
- Evaluation: Measuring, grading, or judging content, potentially using rubrics or moral frameworks.
- Critiquing: Providing critical feedback and recommendations for improvement.
- Transformational Operations
-
- These operations involve an input and output of roughly the same size and meaning.
- They are used to change the presentation, structure, or language of the text without significantly altering its core content.
- Examples include:
-
- Reformatting: Changing the presentation of the text, such as converting prose to bullet points, rewriting prose as a screenplay, or translating from XML to JSON.
- Refactoring: Rewriting text or code to achieve the same result but in a better or different way.
- Language Change: Translating between natural languages English to Italian or coding languages Python to Rust etc.
- Restructuring: Changing the order of text, removing or adding sections, and optimizing for logical flow or other priorities.
- Modification: Rewriting text to achieve a slightly different intention, such as changing the tone, formality, diplomacy, or style.
- Clarification: Rewriting to make the text clearer and more articulate.
Using these key words can make a difference when the objective is to get optimized results. Time is the true currency of life and I have found that combining these keywords along with giving the LLM clear instructions and context is like having a genie in a bottle. Hope this helps someone