Sub topic 5
Turning answered questions into a knowledge base
This chapter assumes you have read the earlier chapters on triage, answer quality, and templates. It also assumes you can read short Python. The code is optional, but it shows how little tooling a working knowledge base needs.
Why a knowledge base and not just a forum archive
Every answered question is a small piece of reusable work. In a forum, that work stays buried in threads. Students who search the forum find long discussions, partial answers, and replies that say "see above". A knowledge base (KB) is a curated set of entries. Each entry answers one question, is written to stand alone, and has an owner who keeps it current.
Compare the two:
| Property | Raw forum archive | Knowledge base |
|---|---|---|
| Unit of content | A thread, with replies and tangents | One question and one best answer |
| Quality control | None after posting | Reviewed and dated |
| Findability | Depends on how the asker worded it | Titles and tags chosen for searching |
| Correctness over time | Old wrong answers stay | Entries are revised or retired |
| Cost to create | Free | Editing time per entry |
The last row is the trade-off. A KB costs editing time, so you cannot promote every thread. You need rules for which answers deserve promotion and a light process for making them.
Deciding what becomes an entry
Promote an answer when at least one of these is true:
- The question has been asked, in any wording, three or more times.
- A wrong answer would cost the student a grade, a deadline, or a refund (for example, submission rules).
- The answer took you more than ten minutes to research.
- A student left the course or complained because of this issue.
Do not promote answers that depend on one student's private situation, such as an extension for a named person. Do not promote answers that will expire within weeks unless the entry carries an expiry date.
Your triage categories from the earlier chapter map well onto KB sections. Content, technical, logistical, and personal questions each behave differently:
- Technical and logistical entries are the most valuable, because they have one correct answer and recur often.
- Content entries are often better handled by improving the lecture itself (the last chapter covers this).
- Personal questions rarely belong in a public KB. Write a policy entry ("How to request an extension") rather than recording individual cases.
The workflow from thread to entry
The workflow has five steps, and each one can fail in its own way.
Step 1: Search before you write
Always search the KB before creating an entry. Duplicate entries are the most common KB failure. Two entries answer the same question, one is updated, and the other keeps giving the old answer. If an entry exists, improve it and add the new wording to its tags.
Step 2: Rewrite, do not copy
A thread answer usually depends on context: "As I said above, run that command again." Rewrite it so that someone who sees only the entry can act on it. Use the structure from the answer-quality chapter: the direct answer first, then the steps, then what to do if it does not work.
A good entry has these fields:
- Title: the question in the student's own words, not internal jargon. "Why do I get 'ModuleNotFoundError' in Lesson 3?" beats "Environment setup issues".
- Short answer: one or two sentences.
- Steps or details: numbered when order matters.
- Applies to: the course version, platform, or operating system.
- Tags and alternate phrasings: the words students actually type.
- Last reviewed: a date.
- Source thread: a link for the moderator's reference. Do not expose it to students if it contains personal details.
Step 3: Review
Have a second person read the entry, ideally a teaching assistant who was not in the thread. They check that the entry is correct, that it makes sense without the thread, and that it contains no student names, grades, or quoted work. The privacy and integrity chapter covers why that last check matters. A KB is public in a way that a private reply is not.
Step 4: Publish and link
An entry nobody sees saves no time. When you answer a repeat question, write a short personal reply and link the entry. Do not paste the link alone. Students who get a bare link feel dismissed, and they ask again. A reply like "Good question, this trips up a lot of people. The steps are in this entry, and the fix for your error is step 3" works well, and it also teaches students where to look.
Step 5: Schedule reviews
Set a review interval by volatility. Entries that mention software versions or platform screens go stale quickly, so review them every one to three months. Policy entries can go six months. After each course run, review everything.
A minimal KB in Python
You do not need special software at first. A spreadsheet, a folder of Markdown files, or the help-center feature of your platform can all hold entries. The code below shows the core ideas: a structured entry, a simple search that weights titles and tags above body text, and a check for entries that are overdue for review.
import re
from dataclasses import dataclass, field
from datetime import date, timedelta
@dataclass
class Entry:
title: str
answer: str
tags: list = field(default_factory=list)
last_reviewed: date = date(2026, 1, 1)
review_every_days: int = 90
def tokens(text):
return set(re.findall(r"[a-z0-9]+", text.lower()))
def score(entry, query_tokens):
title_hits = len(query_tokens & tokens(entry.title))
tag_hits = len(query_tokens & tokens(" ".join(entry.tags)))
body_hits = len(query_tokens & tokens(entry.answer))
return 3 * title_hits + 2 * tag_hits + body_hits
def search(entries, query, limit=3):
q = tokens(query)
ranked = sorted(entries, key=lambda e: score(e, q), reverse=True)
return [e for e in ranked if score(e, q) > 0][:limit]
def overdue(entries, today):
return [
e for e in entries
if today - e.last_reviewed > timedelta(days=e.review_every_days)
]
kb = [
Entry(
"How do I submit assignment 2?",
"Upload a single zip file on the Assignments page before the deadline.",
tags=["submit", "upload", "zip", "deadline"],
last_reviewed=date(2026, 9, 1),
),
Entry(
"Why do I get ModuleNotFoundError in Lesson 3?",
"Activate the course environment, then run the install command again.",
tags=["error", "install", "python", "environment"],
last_reviewed=date(2026, 3, 1),
),
]
for hit in search(kb, "cannot upload my zip for assignment 2"):
print("Suggest:", hit.title)
today = date(2026, 11, 28)
for e in overdue(kb, today):
print("Review needed:", e.title)Run as shown, the program suggests the submission entry first. It then flags the install entry as overdue, because it was last reviewed more than 90 days before the date used. Keyword overlap is crude. It does not know that "hand in" means "submit". That limit is the reason to store alternate phrasings in the tags. The automation chapter covers better matching.
Common errors
Writing for yourself. Entries use course-internal terms such as "the Module 4 thing". Test each title by asking whether a new student would type those words.
One giant FAQ page. Past 30 or 40 items, nobody reads a single page. Group entries by the triage categories and by course stage, such as "Before you start", "Weekly work", and "Final project".
Entries that mix several questions. If an answer begins "It depends", split it. Entries with one question each are easier to link, update, and retire.
No owner. An entry without a named owner is not reviewed. Assign every entry to a person, even if it is a rotating role.
Stale entries that look authoritative. A wrong KB entry is worse than a missing one, because students trust it over a moderator's fresh reply. Show the review date publicly, and archive entries instead of leaving them to rot.
Over-promoting. If every thread becomes an entry, the KB duplicates the forum and search quality drops. Hold to the promotion rules.
Leaking assignment answers. An entry that explains a graded task step by step can break academic integrity rules. Describe the concept and the debugging approach, and leave out the solution.
Connecting the KB to other parts of the system
The KB supports several later chapters:
- Templates: a template is the reply shell, and a KB entry is the content it links to. Keep them separate so you can update an entry without editing every template.
- Automation: duplicate detection can suggest entries when a student starts typing a question. It works only if entries are well titled and tagged.
- AI assistance: drafting tools give better results when they draw on reviewed entries, because the entries limit what the tool can claim. Treat the KB as the source of truth that a human has verified.
- Feedback loop: the most-viewed and most-linked entries show where the course is unclear. They are the best list of content to fix.
Exercises
Exercise
Your forum has a thread where a student asks how to resubmit assignment 2 after the deadline, and a TA grants a one-off extension to that student. Should this thread become a KB entry as it stands? What would you publish instead, if anything?
Show answer
Not as it stands. The extension was a private decision about one student, so the thread should not be promoted, and it may contain personal details. If the question recurs, publish a policy entry such as "How to request an extension or resubmit". It should state who to contact, what information to include, and the usual rules, with no names. Add a review date and an owner.
Exercise
In the Python example, a student searches "hand in my homework". The search returns nothing. Name two changes that would fix this without writing any new code.
Show answer
Add alternate phrasings to the entry's tags, such as "hand in", "homework", and "turn in", so the token overlap finds them. Or retitle the entry to use the students' words, for example "How do I submit (hand in) assignment 2?". Both work because the search scores title and tag matches.
Exercise
A KB entry about installing course software was published in March and not reviewed since. Students on the newest operating system report that step 2 no longer works, yet the entry's views are high. List the process failures and the fix.
Show answer
Failures: the entry had no review schedule that matched its volatility (software entries need one to three months), no clear owner, and no public review date to warn readers. Fix: update the steps and the "applies to" field, set a shorter review interval, assign an owner, show the new review date, and check the other software entries for the same problem.