YouTube¶
Overview¶
Recorded walkthroughs hold the reasoning nobody wrote down. Connect your YouTube channel to CodeCortex, choose the videos to index, and developers can ask questions about them in Enterprise Search instead of scrubbing through an hour of video.
- Captions only: CodeCortex indexes the captions of the videos you select, not the video or audio itself.
- You choose the videos: Only the videos you select from your channel are indexed.
Prerequisites¶
Step 1: Set Up CodeCortex¶
Set up CodeCortex by following the Overview guide.
Step 2: Check Your Role¶
Only workspace or product admins can connect YouTube and change indexed content.
Step 3: Check Your Videos Have Captions¶
CodeCortex indexes captions, so a video needs at least one caption track, either uploaded or automatic. Videos without captions can't be indexed and show Failed. You can check and add captions in YouTube Studio.
Connect YouTube¶
You can connect YouTube in the CodeCortex setup wizard, or later from the Integrations page.
Step 1: Sign In with Google¶
- In the setup wizard: Choose YouTube on the Select your tools screen, then select Next on the Connect YouTube step.
- From Integrations: Open Integrations in the CodeCortex sidebar, and connect YouTube.
You are taken to Google in the same tab.
Step 2: Allow Access¶
Sign in with the Google account that owns your YouTube channel, and allow CloudAEye to read your channel. You are returned to CloudAEye.
Step 3: Choose Videos¶
CodeCortex lists the uploads from your channel, including public, unlisted, and private videos. Select the videos to index.
Step 4: Start Indexing¶
- In the setup wizard: Select Next to start indexing.
- From Integrations: Select Start indexing for your first selection, or Save changes after that.
The selected videos are queued for indexing.
What Gets Indexed¶
| Item | Details |
|---|---|
| Videos | Uploads from your channel that you select |
| Content | One caption track per video, in English when available, otherwise the first available track |
| Segments | About 30 seconds each, with its timestamp |
Splitting captions into short segments lets CodeCortex use the part of a long video that answers the question, rather than the whole transcript.
Manage Indexed Videos¶
Open Integrations in the CodeCortex sidebar, and open YouTube. The page lists your videos with these columns:
| Column | Description |
|---|---|
| Published date | When the video was published. |
| Duration | The length of the video. |
| Visibility | Public, Unlisted, or Private. |
| Indexing status | Where the video is in the indexing process. See Indexing Status. |
To add or remove videos:
- Select the videos to add, and clear the videos to remove.
- Select Save changes, or select Discard changes to undo your selections.
- If you are removing videos, review the list in the Remove indexed videos? dialog, then select Remove and save changes.
Removed videos are deleted from CloudAEye's index. The original videos on YouTube are not changed.
Troubleshooting¶
| Problem | What to do |
|---|---|
| No YouTube videos found | Upload videos to the channel, or check that you signed in with the account that owns it. |
| A video shows Failed. | Check in YouTube Studio that the video has at least one caption track. |
| A video shows Reconnect and retry. | The connection expired or access was removed. Reconnect YouTube, then try again. |
| You can't select or save changes. | Only workspace or product admins can change indexed content. Ask an admin. |
| Indexing status is unavailable. | Select Retry. Your pending changes are kept. |