ASCI Logo
ASCI
Programs
Practice DSA
Degrees & Careers
Pricing
Log inGet Started

Quick Navigation & Search

Search curriculum tracks, DSA problems, systems theory and tools...

generative ai-rag

Curriculum Index

Current LevelInitiate
0/ 500 XP
Gravit Certificate:
100% Required
  • 1.1 Chunk Overlap & Token Budget Preservation
•
1
2
3
4
5
6
7
8
9
10
Module 1: Document Ingestion, Chunking & Embeddings•Lesson 1

1.1 Chunk Overlap & Token Budget Preservation

### Sliding Window Chunking
Fixed-size chunking without overlap splits compound sentences and technical code blocks across chunk edges. A 10-20% overlap guarantees boundary continuity.
Python 3.11
•
Interactive Challenge
+75 XP
Challenge Objective

Compute the stride and overlap for 500-token chunking and print 'STRIDE:400_OVERLAP:100'.

solution.py
UTF-84 SpacesAuto-saved
cpython3.11:~/workspace
CPython 3.11.8 (WASM)
$python3 -u solution.py
Click "Compile & Run" (or press Ctrl + Enter) to compile AST, verify bytecode, and execute the solution.