Inimitable Blog Feats Gallery About

Foundational Approaches to Keen Text Prompts

Aaron S. | 📅 Jan 30, 2023
updated Feb 21, 2023


Intro image


Introduction

     Ordinary human language is basically the newest programming language, and thoughtful prompt articulation is an increasingly useful or necessary skill for countless applications. Interactive NLP is more of an imagination & semantic logic puzzle for abstract programming approaches. Simply having the right questions on hand can be the main priority, which is apparent when finding out how much more useful distilling data from language you can provide it can be than obtaining data by other means. There's an entertainment value, but efficient prompt architecture is about cohesive, parsimonious steps to arriving at a predetermined objective.

More background information

     In most cases, vague questions result in more basic or generic results that could be obtained from a search engine. The key to the most productive approach to harnessing the power of these models involves collaborative work: iterative fine-tuning on behalf of a person who may have an intimate understanding of associated subject matters, and the AI making full use of memory + prompt-elicited knowledge & perspectives. Each revision will mold the results, diverging from what anyone else would have asked. Optimal, exploitative answers may involve tapping into vast literature without years of studying, or compounding complex & sometimes unintuitive logical approaches.

     While avoiding redundancy, providing as much context as possible will facilitate the curation of content to match what was intended. There is a landscape of contexts that interact with each other, each with associated weights, dimensions, and layers of perspectives to combine with others to potentially arrive at exponentially unique results. Variable quantities & qualities multiply with each other as the discussion takes different avenues of parameters. With such powerful models as ChatGPT, respecting the prompt sensitivity can yield results that are the difference between it declining to answer a question at all, and it giving a very creative and apt response.

Simply asking the model

     The quest to improve prompt design is made easier by asking ChatGPT, which it can provide plenty of insight on without hesitation. For many questions it can be modest, stating its limitations and providing ample disclaimers, which helps prevent trolls from finding a way to make it get taken down for everyone else. However, by skillfully & creatively rephrasing questions, many of these issues can be addressed. Ultimately, the best prompts can be increasingly lengthy and also assist with getting answers fewer people have already uncovered.

Image of ChatGPT response Image of ChatGPT response Image of ChatGPT response

Model understanding

     Reverse engineering is a resourceful method of coming up with the most relevant prompts. This can involve providing a sample of text, or an answer to a question, and requesting the most accurate prompts to result in the same writing style, logic, or any other components of a desired answer. You can also provide sample question & answer combinations, and it can attempt to find the logical, intended pattern for future use. For follow-ups you could ask: If anything I request does not make sense or is very ambiguous, ask clarifying questions. Or, alternatively: What clarifying questions would you ask regarding this prompt, to make sure you understand what is being asked?

Verifiable data

     Another useful concept is providing it information that you know is verified, and asking it to answer questions based only on that content, and to let you know if it cannot answer it with the given information. Obtaining verified, rigorous results can be one of the shortcomings of language models, thus arise options such as using shortcuts like force-feeding the data you want, or researching conclusions manually. You can also use this, or other data, to create a quiz. You can request several possible answers with only one that is correct, each labeled with sequential letters, and await an answer to provide the correct option and to ask the next one.

Useful modifiers (each is like distilling the takeaway from a 20-minute YouTube video)

The following list are convenient additions to prompts:

Answer using only questions
Provide multiple answers from distinct, defined perspectives
Include analogies, examples, evidence, & stories
List potential arguments/criticisms for each side
Explain concisely, conversationally, persuasively, etc.
Recommend improvements for various aspects
Describe in given author's style, for a particular audience
Format results in a spreadsheet, with given columns/rows
Suggest prompts to obtain particular results
"Act as a..." resource

     One example that can get very complex is regarding having it role-play. Many different customizations to the conversation can be made, such as who is which role, the kind of questions it should ask, the tone, desired outcomes, and guidelines for what it should or should not say. Data is generated as part of this process, and assessments/suggestions can be made. Anything that comes up can be elaborated on, such as explaining lines of code or other technical information. Furthermore, it can write in first-person, second-person, or third-person omniscient/limited/objective.

Sample template:

     You are a [role] with a focus on [objective]. Using [resources], from the perspective of [situation], in given [context], and keeping in mind [parameters] answer [question]. The answer should be in at least/most [number] of words. Provide [number] copies of the answer from diverse [perspectives], labeling the description of each prior to the solution. You are explaining this to [audience].



Intro image


Conclusion

     Whether you're seeking the most impressive, elaborate, detailed, efficient, entertaining, or functional results will depend on the syntax & combination of parameters used in the prompt. There should be a consistent focus on cohesive elements of functionality. Sometimes, choosing the right prompt is as simple as asking what a good prompt would be for a particular result.



Links:
ChatGPT
GPT-3 (greater availability)