Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Story
How we grew from 0 to 3 million users
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

How to Build an LLM Knowledge Base with Markdown

256.4K views
•
April 5, 2026
by
Nate Herk | AI Automation
YouTube video player
How to Build an LLM Knowledge Base with Markdown

TL;DR

Andrej Karpathy demonstrates how to create a knowledge base using LLMs and markdown files, leveraging tools like Claude Code and Obsidian. This method allows for efficient organization and querying of information without complex infrastructure, making AI feel like a persistent, knowledgeable colleague. It's accessible and cost-effective, requiring only basic markdown files and a simple setup.

Transcript

What you're looking at right here is 36 of my most recent YouTube videos organized into an actual knowledge system that makes sense. And in today's video, I'm going to show you how you can set this up in 5 minutes. It's super super easy. You can see here how we have these different nodes and different patterns emerging. And as we zoom in, we can se... Read More

Key Insights

  • Karpathy's method utilizes LLMs and markdown files to create efficient knowledge bases.
  • This approach eliminates the need for complex infrastructure like vector databases.
  • Obsidian is used as an IDE to visualize and organize markdown files.
  • The LLM automatically organizes raw data into a structured wiki, allowing for easy querying.
  • Knowledge bases created this way are persistent, unlike ephemeral AI chat interactions.
  • The setup process is simple, taking roughly five minutes to establish a basic system.
  • Token efficiency is significantly improved, reducing costs by up to 95% in some cases.
  • This method is suitable for small to medium-scale projects but may not scale for large enterprises.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How to set up an LLM knowledge base with markdown?

To set up an LLM knowledge base with markdown, you need tools like Claude Code and Obsidian. First, create markdown files containing raw data. The LLM will automatically organize these into a structured wiki, allowing for efficient querying. Obsidian serves as the front end for managing and visualizing the data. This setup is simple and cost-effective, requiring only basic markdown files.

Q: What is the advantage of using Karpathy's method for knowledge bases?

Karpathy's method offers several advantages, including simplicity and cost-effectiveness. By using LLMs and markdown files, it eliminates the need for complex infrastructure like vector databases. This method allows for persistent knowledge retention and efficient querying, making AI interactions more like a knowledgeable colleague. It's particularly suitable for small to medium-scale projects.

Q: Why is token efficiency important in LLM knowledge bases?

Token efficiency is crucial because it directly impacts the cost of running LLM-based systems. By improving token efficiency, Karpathy's method significantly reduces operational costs, making it more accessible for users. This is achieved by organizing data into a structured wiki, which allows for more efficient querying and reduces the need for extensive token usage.

Q: Can Karpathy's method scale for large enterprises?

While Karpathy's method is efficient and cost-effective for small to medium-scale projects, it may not scale well for large enterprises. The system relies on markdown files and lacks the infrastructure to handle millions of documents efficiently. For large-scale applications, traditional methods like semantic search RAG might be more suitable.

Q: What tools are needed to implement Karpathy's LLM knowledge base?

Implementing Karpathy's LLM knowledge base requires tools like Claude Code and Obsidian. Claude Code handles the organization and querying of data, while Obsidian serves as the IDE for visualizing and managing markdown files. These tools provide a simple and accessible way to create and maintain knowledge bases without needing complex infrastructure.

Q: How does Karpathy's method compare to traditional semantic search RAG?

Karpathy's method differs from traditional semantic search RAG by using markdown files instead of a complex database infrastructure. This approach allows for a deeper understanding of relationships through links rather than similarity searches. It's more cost-effective and simpler to maintain but may not scale as well for large enterprise applications.

Q: What is the role of Obsidian in Karpathy's knowledge base setup?

Obsidian acts as the front end for visualizing and managing the markdown files used in Karpathy's knowledge base setup. It provides a user-friendly interface to organize and query data, making it easier to see relationships and connections within the knowledge base. Obsidian enhances the accessibility and usability of the system.

Q: Why is persistent knowledge retention important in AI interactions?

Persistent knowledge retention is important because it allows AI systems to maintain and recall information over time, unlike ephemeral chat interactions where knowledge disappears after the conversation. This makes AI systems more like a knowledgeable colleague, capable of providing informed and consistent responses based on accumulated knowledge.

Summary & Key Takeaways

  • Andrej Karpathy's method leverages LLMs and markdown files to build knowledge bases without complex infrastructure. Using tools like Claude Code and Obsidian, users can efficiently organize and query information. This method offers persistent knowledge retention, unlike traditional AI chat interactions, and is cost-effective due to improved token efficiency.

  • The setup involves creating markdown files that the LLM organizes into a structured wiki. Obsidian serves as the front end for visualizing and managing these files. This approach is accessible, requiring only basic markdown files, and is particularly useful for small to medium-scale projects.

  • Karpathy's approach is gaining traction for its simplicity and efficiency. By eliminating the need for vector databases, it offers a straightforward way to maintain and query knowledge bases. However, it may not be suitable for large-scale enterprise applications due to scalability limitations.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from Nate Herk | AI Automation 📚

I Built a Photoshop AI Agent in n8n with no code (NanoBanana) thumbnail
I Built a Photoshop AI Agent in n8n with no code (NanoBanana)
Nate Herk | AI Automation
How to Optimize Claude Code Token Usage thumbnail
How to Optimize Claude Code Token Usage
Nate Herk | AI Automation
How I'd Teach a 10 Year Old to Build AI Agents (No Code, n8n) thumbnail
How I'd Teach a 10 Year Old to Build AI Agents (No Code, n8n)
Nate Herk | AI Automation
I built this AI Agent in 2 hours (and got paid $1200) thumbnail
I built this AI Agent in 2 hours (and got paid $1200)
Nate Herk | AI Automation
This AI Agent Can Scrape and Screenshot the Web with No Code (n8n tutorial) thumbnail
This AI Agent Can Scrape and Screenshot the Web with No Code (n8n tutorial)
Nate Herk | AI Automation
How to Use Superpowers Plugin for Claude Code thumbnail
How to Use Superpowers Plugin for Claude Code
Nate Herk | AI Automation

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Our Story
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.