Feature request
When using the youtube loader. I think it would be useful to take into account the chapters if present.
- The chapter timecode could be used to know when to chunk. Any chunk inside a chapter timeframe could also contain the same "youtube_chapter_title" metadata.
- The name of the chapter could added directly inside the transcript. For example as a markdown header. This could be useful for LLM to maintain context over time.
Motivation
There are useful information present in the youtube chapter title and timecodes that could be of use to LLMs.
Summarizing transcripts would probably be of higher quality if headers are present rather than a huge wall of text.
Adding metadata is always a win.
Your contribution
Unfortunately not able to help for the time being but wanted to get the idea out there.