RAG Chat YouTube
Ask questions about a YouTube video and get answers drawn from its captions, using a chat model you pick. Videos without captions are transcribed from their audio first.
Overview
RAG Chat YouTube answers questions about one YouTube video, using the chat model you pick. The app indexes the video's captions in short passages, and each question goes to the model together with the passages closest to it.
Captions are used in whatever language the video has them. If the uploader has turned captions off, the app downloads the audio and transcribes it instead.
What you can build
- Study helpers that answer questions about recorded lectures and course videos
- Lookups in long talks and interviews, such as what a speaker said about one topic
- Support bots that answer from product tutorial videos
Inputs
- A YouTube video URL, one per run.
- Your question. The default asks what the video is about.
- A chat model from the selector, or one of your own private chat models.
- Optional user and session IDs. Reusing the same pair lets a follow-up question build on earlier turns; different pairs keep end users and conversations apart.
- An optional system prompt, a seed and the sampling controls (temperature 0.7, top-p 0.90 and top-k 50 by default).
Outputs
Plain text. The sample on this page is a one-paragraph reply to the default question, about a video that condenses Google's four-hour AI course for beginners into 10 minutes.
Recommended settings
By default the transcript is cut into 256-token passages with 25 tokens of overlap, and the five closest passages go to the model. To cover more of a long video, raise the number of retrieved passages or the passage size. Context window and answer length both default to 0, which means the chosen model's own limit and an automatically set length. Quantization is on by default; turn it off to run the chat model unquantized.
Limitations
- Only what is said reaches the model. On-screen text and visuals are not read.
- A summary request still sees only the retrieved passages, so on a long video parts of the talk can be missing.
- Mistakes in auto-generated captions or noisy audio carry over into the answers.
- The app's built-in instructions also allow general chat, so a reply can mix in knowledge from outside the video.
API quick start
Run rag-chat-youtube with a single API call.
{
"prompt": "What is the YouTube video about?",
"user_id": "...",
"session_id": "...",
"selectedModel": "..."
}curl -X POST "https://api.wiro.ai/v1/Run/wiro/rag-chat-youtube" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_WIRO_API_KEY" \
--data-binary @- <<'JSON'
{
"prompt": "What is the YouTube video about?",
"user_id": "...",
"session_id": "...",
"selectedModel": "..."
}
JSONOther models you might like
Explore similar llm & chat models.



