TextBook Assistant RAG + LangChain
Upload a textbook, ask a study question, and verify the answer against the original pages.
Text Splitting
Split the book into searchable chunks while keeping each chunk tied to its PDF page.
Inspect vectors →Textbook
Split Result
Vector Embedding
Inspect the numbers the local search model assigns to each passage.
Chunks & vectors
Chunks in 2D
Each dot represents a sampled chunk. Select a dot to inspect its text and vector. This view shows the first two coordinates. Search ranks chunks using the full vectors.
Semantic Search
Find textbook passages ranked by keyword and semantic relevance.
Open answer and search proof →Top Matches
Question vs. Chunks
Dashed lines point to retrieved matches. The ranked list shows the search scores.
Context Generation
Ask your textbook. Each answer sentence links to its supporting quote.
Use local Nemotron for generated explanations
Your question and matched passages will be sent to Ollama on this device.
Install the model with ollama pull nemotron-3-nano:4b. Allow this website using OLLAMA_ORIGINS=https://textbook-assistant-rag-langchain.vercel.app when starting Ollama. Your browser may ask for local network access.