Documentation

Adding Content

How to add YouTube, articles, PDFs, and GitHub repos.

Supported Sources

YouTube

Transcripts via API, Whisper fallback

Articles

Web content via Trafilatura

PDFs

Local files or URLs via PyMuPDF

GitHub

README extraction via API

Examples

# YouTube video
learnlock> https://youtube.com/watch?v=...

# Web article
learnlock> https://example.com/blog/post

# GitHub repository
learnlock> https://github.com/user/repo

# Local PDF
learnlock> /path/to/document.pdf

# PDF URL
learnlock> https://arxiv.org/pdf/1234.5678.pdf

What Gets Extracted

For each source, LearnLock:

  1. Generates a topic-based title (3-7 words)
  2. Extracts 3-20 key concepts
  3. Creates a challenge question for each
  4. Pulls a source quote for context

Duplicate Detection

learnlock> https://youtube.com/watch?v=...

Already added: Neural Networks Explained
10 concepts

Limits

  • Content truncated to 8,000 characters
  • Concept names max 200 characters
  • Source quotes max 500 characters
  • 3-20 concepts per source