# Jemoka's Knowledge Base — LLM Wiki

This is a Karpathy-style LLM wiki built from [Houjun Liu's](https://www.jemoka.com) (jemoka) personal knowledge base — 2,000+ notes spanning Stanford coursework, NLP research, and CS/math concepts.

## Architecture

```
raw/           ← original notes (immutable, never modify)
  course/      ← Stanford lecture notes, by course code
  concept/     ← standalone concept/topic notes
  paper/       ← conference paper notes
  textbook/    ← textbook notes (e.g. Axler linear algebra)
wiki/          ← synthesized pages (LLM-owned, update freely)
  courses/     ← one overview page per course
  concepts/    ← cleaned concept pages with frontmatter
  papers/      ← conference paper collections
index.md       ← content catalog
log.md         ← chronological study log
CLAUDE.md      ← this file (schema)
```

## Page Frontmatter

```yaml
---
title: "Page Title"
type: concept | course-overview | paper-collection | source-summary | comparison
source: https://www.jemoka.com/posts/...
related: [Topic A, Topic B]
confidence: high | medium | speculative
status: active | superseded | archived
source-count: N  # for overview pages
---
```

## Conventions

- **Wikilinks**: Use `[[Topic Name]]` for cross-references between wiki pages
- **Source links**: Link to raw/ for original notes, jemoka.com for live versions
- **Math**: LaTeX via `\(inline\)` and `\[display\]` or `$$display$$`
- **Naming**: Files use snake_case, titles use natural case

## Workflows

### Ingest new source
1. Add to `raw/<category>/`
2. Update relevant wiki/ pages (course overview, concept pages)
3. Update `index.md` if new category or major topic
4. Append to `log.md`

### Query
1. Read `index.md` to orient
2. Check relevant wiki/ pages
3. Dive into raw/ for full source content
4. If answer produces new insight, create/update a wiki page

### Lint
- Check for orphan concept pages (no inbound links)
- Verify course overviews match their raw/ lecture count
- Flag stale or contradicted content

## Source

Original knowledge base: https://www.jemoka.com
Author: Houjun Liu (Stanford, NLP/RL researcher)
License: CC BY-NC-SA 4.0
