Sub topic 5
Turning Answered Questions into a Knowledge Base
Assume you already know how to support learners in a course forum and can read short Python examples. This chapter focuses on turning useful answers into a searchable knowledge base. A knowledge base is an organized collection of questions, answers, and related guidance that learners can find without waiting for a new reply.
Why answered questions need editing
A forum answer usually depends on its original context. It may mention “the error above,” a specific assignment attempt, or a temporary course date. Copying that answer directly into a knowledge base can make it hard to understand later.
Before publishing an entry, remove context that will become outdated. Rewrite the answer so it stands alone. Include the course section, the learner’s goal, the exact steps, and any conditions that change the result.
A useful entry normally contains:
- A question written in the learner’s words.
- A short, searchable title.
- The answer and its reasoning.
- The course section or lesson where the issue occurs.
- Related terms learners might search for.
- A date or version number when the guidance may change.
- An owner responsible for reviewing it.
| Field | Purpose | Example |
|---|---|---|
| Title | Gives learners a searchable summary | Submit a revised assignment |
| Question | Describes the learner’s goal | How do I replace my assignment file? |
| Answer | Provides complete, tested guidance | Open the assignment, choose Resubmit, and upload the new file |
| Location | Connects the entry to course content | Module 3, Assignment 2 |
| Review date | Prevents stale guidance | 2026-12-15 |
A repeatable publishing workflow
Use the same workflow for every candidate answer.
- Select answers that are correct, likely to recur, or difficult to discover.
- Remove personal information, grades, and details that identify the learner.
- Rewrite the question as a general problem.
- Test every step in the current course environment.
- Add search terms, links, and the relevant lesson.
- Publish the entry in a category learners understand.
- Link the knowledge-base entry back into the forum when it answers a new question.
- Review entries when the platform, course, or policy changes.
Do not publish every answer. A one-time problem caused by a learner’s private account may not belong in a public knowledge base. A recurring question about submitting work probably does.
from difflib import SequenceMatcher
def similarity(a, b):
return SequenceMatcher(None, a.lower(), b.lower()).ratio()
def find_related(question, entries, threshold=0.65):
matches = [
(title, similarity(question, title))
for title in entries
if similarity(question, title) >= threshold
]
return sorted(matches, key=lambda item: item[1], reverse=True)
entries = [
"How do I submit assignment 2?",
"Where can I find the lecture slides?",
"How do I reset my course password?",
]
print(find_related("How can I submit assignment 2?", entries))This example compares a new question with existing titles. It can help a moderator find possible matches, but it does not prove that two questions have the same answer. A human should check the result before linking the entries.
Organize for retrieval
Learners may search with different words than the instructor used. Add alternate terms such as “upload,” “turn in,” and “submit” to the same entry. Use categories that match learner goals, such as assignments, access, assessments, and technical problems.
Keep one canonical answer for each recurring issue. If the same guidance appears in five forum posts, update the knowledge-base entry and link to it rather than maintaining five separate versions.
From forum answer to reusable guidance
The knowledge base should reduce repeated work without hiding important discussion. Keep the original forum conversation when it contains useful reasoning or alternative cases. Link the reusable guidance from that conversation so future learners can find both the direct answer and the fuller discussion.
Exercise
An answer says, “Click the button shown above, then submit it before Friday.” What should you change before adding it to a knowledge base?
Show answer
Replace the context-dependent wording with the button’s name, state the complete submission steps, and replace “Friday” with the applicable deadline or a link to the current deadline.