corpus_add
Add a YouTube video's transcript to a corpus by fetching, chunking, and storing embeddings. Optionally force re-embedding to replace existing data.
Instructions
Fetch a video's transcript, chunk it, and store local embeddings in an existing corpus. Use this after corpus_create; it skips an already-indexed video by default. force_reembed=true deletes and replaces that video's existing local chunks and vectors. This modifies local corpus data and may contact YouTube; returns indexing status and chunk count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | YouTube video URL or ID | |
| corpus_id | Yes | Corpus ID to add to | |
| force_reembed | No | Re-embed even if already indexed |