First Move (11~18) - Code, Learn, Build
🧭 Career CompassDashboardProgress
Loading...
First Move (11~18) - Code, Learn, Build

Structured, level-based technology learning paths from foundational exploration to industry mastery.

Learning Domains

  • Python Programming (Active)
  • Computer Science Core
  • Web Development
  • AI & Machine Learning

Platform Architecture

  • Level-Based Progression
  • Decoupled Content Schema
  • Modular Code Execution Engine
  • Curated Official Resources

© 2026 First Move (11~18) • CODE • LEARN • BUILD. Built with Next.js App Router.

Readability & Accessibility First

← Generative AI & LLM Agents|Level 2: Retrieval-Augmented Generation (RAG) Architecture

3. Document Chunking Strategies & Vector Indexing

Lesson 3 of 6
Saved Locally (Guest)
Progress
0%

Document Chunking Strategies & Vector Indexing

Split long-form documents into semantic chunks with overlap, index vector embeddings in pgvector, and retrieve relevant context top-K passages.

RAG Ingestion Architecture

### RAG Architecture Stages 1. **Document Processing**: Parse Markdown/PDF into text passages. 2. **Chunking**: Split text into fixed-size chunks (e.g., 500 tokens) with 50-token overlap to preserve boundary context. 3. **Embedding**: Compute vector embeddings for each chunk. 4. **Vector Retrieval**: Perform k-Nearest Neighbors ($k$-NN) query matching user query embedding.
💻 Ready to test your knowledge with code?
Solve the hands-on coding exercise in the interactive code editor.