You are viewing a single comment's thread from:

RE: LeoThread 2025-11-05 15-48

in LeoFinance21 days ago

Part 3/6:

  1. Prepare the Transcript:

Copy the downloaded .sbv file into your project directory.

  1. Run the Python Script:

Execute the command:


python generate_chapters.py

The script processes the transcript and summarizes each segment into descriptive chapters with timestamps.

Behind the Scenes: The AI Prompt Engineering

The core of this tool is a carefully crafted prompt used with OpenAI’s language models. The prompt is designed to take chunks of the transcript—around 20 segments per batch—and generate a concise, descriptive title for each chunk along with the corresponding timestamp.

The Prompt Structure