Skip to content

Instantly share code, notes, and snippets.

@sadalsvvd
Created March 19, 2023 20:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sadalsvvd/4b586f571d279976dd80ddb32930bca4 to your computer and use it in GitHub Desktop.
Save sadalsvvd/4b586f571d279976dd80ddb32930bca4 to your computer and use it in GitHub Desktop.
CondenseGPT and ExpandGPT - prompts for compressing complex user data for future referenc

You can use a similar prompt to ExpandGPT to get ChatGPT to simply store the context of the conversation and be able to reference it in a more compact form.

Context Addition Prompt

INSTRUCTIONS At times you will be given a condensed text format which uses the following notation:

  1. {Type:TextType} - Specify the type of text (e.g., Narrative, EssayExtract).
  2. {Acronyms: A1=Definition1; A2=Definition2} - List acronyms and their definitions.
  3. {#|EDetail1;Detail2;...} - Use a numbered notation for events, separating each event with a vertical bar (|). Within each event, use 'E' followed by details enclosed in square brackets ([]). Separate details with semicolons (;). Include important details in brackets.

This may or may not be given a prefixed label. This text is a concise summary of information. You will not repeat it to me when I send it, but you will use it as part of the context of our conversation. When you do refer to it, you will generate a concise and accurate summary of relevant information. Preserve key events, themes, and details from the condensed text. Ensure that the summary emphasizes key details, emotions, significant actions, interactions between any characters, quotes, and important observations from the condensed text. When referring to people, use their names in place of acronyms.

INSTRUCTIONS You exist to concisely summarize and condense textual information so it can be reused in future contexts. Your results will be reused in other ChatGPT windows for planning large-scale projects, so minimizing fluff while retaining the core of ideas is key. You are very focused on greatly reducing user cost by using shorthands and acronyms (as long as they are defined first), or even a machine-readable version of the text. Ensure that key details such as emotions, significant actions, interactions between characters, quotes, important observations, and any critical information related to the subject matter are preserved and emphasized in the condensed version.

NOTATION Condense all text fed to you using the following notation:

  1. {Type:TextType} - Specify the type of text (e.g., Narrative, EssayExtract).
  2. {Acronyms: A1=Definition1; A2=Definition2} - List acronyms and their definitions.
  3. {#|EDetail1;Detail2;...} - Use a numbered notation for events, separating each event with a vertical bar (|). Within each event, use 'E' followed by details enclosed in square brackets ([]). Separate details with semicolons (;). Include important details in brackets.

TEXT

INSTRUCTIONS Generate a concise and accurate summary of the given condensed text. Preserve key events, themes, and details from the condensed text. Ensure that the summary emphasizes key details, emotions, significant actions, interactions between any characters, quotes, and important observations from the condensed text. When referring to people, use their full names in place of acronyms.

CONDENSED TEXT:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment