Chain Of Density Summarization Prompt Template. A Modified Configurable Chat Prompt Version Of The One In The Original Paper: Https://arxiv.org/abs/2309.04269

Chain of Density Summarization prompt template. A modified configurable chat prompt version of the one in the original paper: https://arxiv.org/abs/2309.04269

C
cognitivecraft
·May 3, 2026·
13,456 35 6,262
$6.99
Prompt
442 words

As an expert copy-writer, you will write increasingly concise, entity-dense summaries of the user provided {content_category}. The initial summary should be under {max_words} words and contain {entity_range} informative Descriptive Entities from the {content_category}.

A Descriptive Entity is:

  • Relevant: to the main story.
  • Specific: descriptive yet concise (5 words or fewer).
  • Faithful: present in the {content_category}.
  • Anywhere: located anywhere in the {content_category}.

Your Summarization Process

  • Read through the {content_category} and the all the below sections to get an understanding of the task.
  • Pick {entity_range} informative Descriptive Entities from the {content_category} (";" delimited, do not add spaces).
  • In your output JSON list of dictionaries, write an initial summary of max {max_words} words containing the Entities.
  • You now have [⟨"missing_entities": "...", "denser_summary": "..."⟩]

Then, repeat the below 2 steps {iterations} times:

  • Step 1. In a new dict in the same list, identify {entity_range} new informative Descriptive Entities from the {content_category} which are missing from the previously generated summary.
  • Step 2. Write a new, denser summary of identical length which covers every Entity and detail from the previous summary plus the new Missing Entities.

A Missing Entity is:

  • An informative Descriptive Entity from the {content_category} as defined above.
  • Novel: not in the previous summary.

Guidelines

  • The first summary should be long (max {max_words} words) yet highly non-specific, containing little information beyond the Entities marked as missing. Use overly verbose language and fillers (e.g., "this {content_category} discusses") to reach ~{max_words} words.
  • Make every word count: re-write the previous summary to improve flow and make space for additional entities.
  • Make space with fusion, compression, and removal of uninformative phrases like "the {content_category} discusses".
  • The summaries should become highly dense and concise yet self-contained, e.g., easily understood without the {content_category}.
  • Missing entities can appear anywhere in the new summary.
  • Never drop entities from the previous summary. If space cannot be made, add fewer new entities.
  • You're finished when your JSON list has 1+{iterations} dictionaries of increasing density.

IMPORTANT

  • Remember, to keep each summary to max {max_words} words.
  • Never remove Entities or details. Only add more from the {content_category}.
  • Do not discuss the {content_category} itself, focus on the content: informative Descriptive Entities, and details.
  • Remember, if you're overusing filler phrases in later summaries, or discussing the {content_category} itself, not its contents, choose more informative Descriptive Entities and include more details from the {content_category}.
  • Answer with a minified JSON list of dictionaries with keys "missing_entities" and "denser_summary".

Example output

[⟨"missing_entities": "ent1;ent2", "denser_summary": ""⟩, ⟨"missing_entities": "ent3", "denser_summary": "denser summary with 'ent1','ent2','ent3'"⟩, ...]

{content_category}: {content}

This prompt contains variables shown as ⟨variable_name⟩. Replace them with your own values before using.

How to Use

Use with LangChain: hub.pull("whiteforest/chain-of-density-prompt")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Productivity & Workflow

View All
Productivity & Workflow
Universal

This Is A Prompt For Retrieval Augmented Generation. It Is Useful For Chat, QA, Or Other Applications That Rely On Passing Context To An LLM.

This is a prompt for retrieval-augmented-generation. It is useful for chat, QA, or other applications that rely on passing context to an LLM.

P
promptalchemyFree
31,980,219 389,806
Productivity & Workflow
Universal

Calculate BMI, export exercise and eating schedule

Calculate BMI body metric with explaination, then build 2 plans: 1 for exercise 2 for daily nutrition meals. Add detail KPI, budget estimate and checklist for shopping, with new input below: 1. your gender, age, weight & height (with unit name): {male, 27, 65kg, 1m65} 2. additional health goals & condition: {not sick, using cigarette}

S
schemawriter$1.99
6,544 6,581
Productivity & Workflow
Universal

Gym Routine Creation - Work Out Regiment

Generate a custom gym routine for yourself. Be as specific as possible when describing your goals, experience, and equipment. The more information you provide, the better ChatGPT will be able to understand your needs.

A
aiblueprint$1.99
5,188 5,189
Productivity & Workflow
Universal

Personalized Workout Plan Creation

Are you in need of a virtual assistant to craft the perfect personalized workout plan for you? Meet ChatGPT, your AI-powered language model ready to create workout routines tailored to your fitness goals, preferences, and limitations. ChatGPT can assist anyone from beginners to advanced athletes in reaching their fitness objectives in a fun and customized manner. Begin by supplying ChatGPT with comprehensive information about your fitness goals, current fitness level, workout preferences, and any health conditions or injuries. The more details you provide, the better ChatGPT can adapt your workout plan to your specific needs and aspirations. Regularly communicate with ChatGPT to monitor your progress, receive feedback on your form and technique, and modify your workout plan as necessary. ChatGPT can also deliver motivational messages and encouragement to keep you on track and inspired. Feel free to ask ChatGPT for variations or modifications to your workout plan if you find certain

P
promptstack$1.99
5,091 5,102
Productivity & Workflow
Universal

Growth Mindset Guru

Have ChatGPT offer you heaps of encouraging Growth Mindset advice for your child, using creative analogies where possible.

S
schemawriterFree
1,537 1,546
Productivity & Workflow
ChatGPT

A Prompt Designed For Creating Question/answer Pairs That Can Be Used Downstream For Finetuning LLMs On Question/answering Over Documents.

A prompt designed for creating question/answer pairs that can be used downstream for finetuning LLMs on question/answering over documents.

A
aicanvas$1.99
3,257 20,905