Part 3/6:
- Prepare the Transcript:
Copy the downloaded .sbv file into your project directory.
- 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.