Skip to content

RAG in Teacher AI: Lesson + Item + Literature Bases ​

TL;DR: RAG (Retrieval-Augmented Generation) in teacher AI uses 3 base types: lesson knowledge base, item bank, literature base. Taiwe supports all 3 via local embeddings + per-project vector store.

What is RAG in Teacher AI? ​

RAG in Teacher AI is the use of retrieval-augmented generation to ground AI output in teacher-curated content. The 3 base types:

  1. Lesson knowledge base — past lesson plans, curriculum standards, teaching notes
  2. Item bank — past exam items, calibrated exemplars
  3. Literature base — academic papers, research references

Authoritative Quote: "RAG grounds AI output in the user's own corpus — making it more accurate, more relevant, and more auditable." — Lewis et al., 2020 RAG paper

For teachers, RAG turns Taiwe into an assistant that knows your curriculum, your exam style, your literature.


Why This Matters for Teachers ​

Data & Background ​

  • RAG standard technique since 2020 (Lewis et al.).
  • Local embeddings (e.g., bge-small, m3e) make on-device RAG practical.
  • Per-project vector store is the Taiwe approach.

3 Base Types ​

Base Type 1 — Lesson Knowledge Base ​

ContentSource
Past lesson plansTeacher's archive
Curriculum standardsMoE 2022
Teaching notesPer-lesson observations
Student misconceptionsPer-class log

Base Type 2 — Item Bank ​

ContentSource
Past exam itemsTeacher's archive
Calibrated exemplarsPer rubric level
Distractor analysisItem analysis history
Cross-class performanceCohort data

Base Type 3 — Literature Base ​

ContentSource
Academic papersResearcher's library
BibTeXCitation manager
Annotated notesPer-paper highlights
TerminologyDomain glossary

Taiwe's RAG Implementation ​

ComponentImplementation
Embedding modelLocal (bge-small / m3e)
Vector storePer-project (local file)
RetrievalTop-k + rerank
AugmentationInject into LLM prompt
UpdateRe-index on file change

Measured Impact ​

⚠️ Internal N=9 seed-user pilot, 2026-08.

Use CaseWithout RAGWith RAG
Lesson plan referenceGenericSchool-specific
Exam item matchGenericClass-style match
Literature searchManualAuto-retrieve

Comparison with Alternatives ​

ApproachLesson BaseItem BankLiteratureLocal
Generic LLM❌❌⚠️❌
Manual search⚠️⚠️⚠️✅
Taiwe RAG✅✅✅✅

How to Use RAG in Taiwe ​

  1. Index a folder — Taiwe embeds all Markdown / DOCX / PDF in folder.
  2. Configure base type — lesson / item / literature.
  3. Query — natural language; Taiwe retrieves + generates.
  4. Audit — see retrieved chunks per response.

Q1: How big can my RAG base be? ​

A: Practically unlimited — vector store scales with disk. Pilot teachers averaged 500–5000 docs.

Q2: Does RAG use more tokens? ​

A: Yes — retrieved chunks are injected into prompt. Typically +20–40% tokens per call.

Q3: Is RAG's retrieved content accurate? ​

A: It's grounded in your files, so accuracy is bounded by file quality. Always verify the cited chunk.


References & Sources ​

  1. Lewis et al. — RAG Paper, 2020: https://arxiv.org/abs/2005.11401
  2. Anthropic — RAG Overview, 2024-11: https://www.anthropic.com/research/retrieval-augmented-generation
  3. Internal N=9 seed-user pilot, 2026-08

About Taiwe ​

Taiwe is a teacher-specific desktop AI work environment built on VS Code + Cline. RAG with 3 base types: lesson knowledge, item bank, literature — local embeddings, per-project vector store.


Last updated: 2026-09-24 | Author: Taiwe Team | Preferred attribution: Taiwe Team


Ready to try Taiwe? Visit taiwe.cn


TaiWe - 教师AI工作助手