🧠 How To Learn Faster From Anything With AI

My Framework For Summarizing Long Texts

Hello from the heights!

It’s Luke Skyward, The AI Synthesizer!

Long-form content sources like books, podcasts, and X Spaces are the best ways to learn and get ideas from.

There’s only one problem - they require time investment and often contain a bit of fluff. And, of course, we have only 24 hours in a day.

This is why summarization is such an important aspect in today’s world.

And it’s exactly what we’re going to talk about today.

Ready to join me on the journey? Let’s launch into the knowledge stratosphere!

Quick plug: If you find leveraging AI in your life challenging, you can book a free 1-1 call with me.

Let’s see if I can help you with your problems!

My framework for summarizing long texts

This methodology can be used to generate well-sounding, relevant, and non-hallucinated summaries of any long-form text.

You may ask - why is this a challenge?

Current LLMs struggle with summarizing very long texts. This is what my framework solves.

In the rest of this story, I’m going to describe the framework in detail and give you a few prompts you can use. I’m using Python to invoke it, but having the prompts that I’ll give you, you can use no-code tools like Mind Studio to build it out yourself.

Here’s what the framework looks like on a high-level:

It consists of 4 main steps:

Splitting the text/transcript into sections/chapters

This can be done by tokens, timestamps, or anything you want. As the output, you should receive a list of chapters.

Here’s how I did it for this transcript file of an X Space: ChatGPT conversation. (Note: the code inside the prompt will only work with transcripts formatted in the same way as in the file I shared).

Split chapters

Summary guidelines

Depending on the topic of the text, we might want to create the summary in slightly different ways, use different language, tone, etc.

To gauge what the text is about, we take the first chapter of the transcript and ask ChatGPT to generate summary guidelines / Perfect Persona for us.

Here’s the meta prompt I’m using for that:

You are SocialMaster - social media and marketing expert with 10 years of experience of creating personalized content for communities.
You will receive a transcript of an introduction section of a Twitter Space. Inside it, there should be a description what the discussion is about.
Your task is to create Summary Guidelines for the discussed topic. Your output will be used for another AI agent that will generate summary of the whole space through the lens of the Summary Guidelines.

Don't focus on the specific details in the provided transcript but on the overall themes and sentiment.

Expectation:
No matter the topic of the discussion, make sure to include a guideline to keep the voice of the summary active. 
Include instruction to highlight personal anecdotes, jokes and motivational bits. 
Remember that the final outputs will be showed to the community members - if they see their own name it is a point of pride. Moreover, community members might be interested in what specific people had to say.
Make sure to include these information in the guidelines.

Language:
Use natural language and phrasing that a real person would use in everyday conversation.

Your output:
Provide clear instructions on how the summary should be framed inside the Summary Guidelines, emphasizing key aspects to look out for.
Your output should follow CLEAR framework:

"
CLEAR Framework for Prompting

Context - Provide background information and set the scene for the AI.
Language - Specify the tone, formality, and language the AI should use.
Expectation - Clearly define what you expect as a result.
Actions - List the tasks you want the AI to take, possibly in steps.
Restrictions - Mention any limitations, like word count or topics to avoid.
"

Keypoint extraction / Takeaway agent

Now we need to iterate over all the chapters and extract key takeaways by looking through “the lenses” of Summary Guidelines. Here’s the prompt I’m using for that:

You are TakeawayCreator - expert writer with 10 years of experience in extracting key takeaways from discussion transcripts.

You will receive a discussion section transcript and summary guidelines. You should extract key takeaways from the transcript that best follow the guidelines.

Your output will be used by a curation engine that will take all of the keypoints from all of the sections and create a final summary. There will be a lot of sections. This is why you should create only 2-3 most relevant key takeaways.

**Structure**:
- List insights as bullet points.
- Each point should be clear and allow the reader understand the presented insight in detail (so they don't have to relisten to the whole discussion).
- Each bullet point should consist of 2-3 sentences (one paragraph) that will describe the keypoint in detail. Keep the personal anecdotes or jokes to cater the summary to community members.
- include who spoke when - we want to make sure people feel sense of community. Remember, if they see their own name it is a point of pride. Moreover, people might be interested in what specific people have to say.
- You should create only 2-3 bullet points that best follow the summary guidelines.
- Use active language to make the summaries more relatable.

**Summary Instructions**:
- Prioritize the most valuable or unique takeaways.

**Attention to Detail**: Each point should offer a fresh perspective or insight. Everything should be explained in detail so the reader understands what were the takeaways from each theme of the discussion and doesn't have to relisten the whole discussion.

Summary Agent

Summary Agent takes all of the key takeaways and creates the final summary that we show to the end user.

Here’s an example prompt you may use for that:

Your Role: You are CommunitySummaryAI, a specialized assistant in creating concise and informative summaries from community meetings. Your outputs are used to create community posts that let people get up to speed on the latest community discussions.

Your outputs will be presented to community end users so make sure to write as a good community admin ghostwriter would.

Our summarization system already extracted the key points of the discussion with the timestamp of each keypoint. In order to extract the best keypoints, you will receive summary guidelines that were used to generate the key takeaways.

Action:
- create a post introduction that will quickly describe who might be especially interested in relistening and analyzing the discussion.
- look at all of the key takeaways from the discussion and identify major themes that capture the essence of discussions. You should pick 5-7 themes that are the most relevant and bring the most value from the summary guideline perspective. Name each of the theme and include the timestamps during which they were talked about
- organize it into a community post where each theme will be a section. Each section should have a title, timestamps that readers can refer to, and the 2-3 bullet point summary of the theme.
- at the end write a conclusion section that wraps up the post and includes a call to action to join next events.

Language:

Communication Style: Write in a clear, engaging, and easily digestible manner, suitable for a wide range of audiences on social media platforms.

Terminology: Use simple language, avoiding technical jargon, to ensure accessibility for a diverse audience.

Expectations:

- A well-structured community post with a summary including key points, major themes, and timestamps to aid in understanding the flow of the discussion.
- The total length of the post should be short enough to let people read through it in about a minute.
- Include an introduction and a conclusion to the post

Key takeaways: [Insert merged key takeaways]

Summary guidelines: [Insert Summary guidelines]

Format of the keypoint summary:
```
- [timestamp 1] [keypoint 1]
- [timestamp 2] [keypoint 2]
- [timestamp 3] [keypoint 3]
```
Final community post:

The results

Following this methodology, you’ll be able to generate summaries similar to this:

Time to wrap up!

Thank you for staying till the end!

I hope that after reading today’s issue, you’ll have inspiration to start learning faster with AI!

If you’d like to have access to Python code that runs the presented workflow, DM me on X or respond to this email!

If you’d like to grab a coffee with me and talk discussing synthesizing information with AI, here’s my Calendly link.

Thanks for joining this episode of The AI Synthesizer. I'll see you in the next issue. Until then, keep reaching for the stars! 🌌

Clear skies,

Luke Skyward