Artificial intelligence • Original RRTutors lesson
Capstone: Design a Responsible AI Knowledge Assistant
Apply problem framing, retrieval, evaluation, security, and monitoring to a grounded question-answering assistant.
Concept and explanation
A useful capstone is a knowledge assistant over a small, approved document set. It should retrieve relevant evidence, answer with source references, decline when evidence is inadequate, respect document permissions, and preserve a path to a human. The project is complete only when quality and safety are evaluated end to end.
How to apply it
Create an authorized document corpus, build a baseline search, add generation only where it improves results, create a test set, secure data access, and monitor reviewed outcomes.
Worked example
Use questions with known evidence, no answer, conflicting versions, restricted documents, and malicious instructions embedded in a document.
Illustrative Python example
def answer_question(question, user):
passages = retrieve_authorized(question, user)
if not passages or not evidence_is_sufficient(passages):
return {"answer": "I could not verify this from the available sources.", "sources": []}
return generate_with_citations(question, passages)
Expected result
The system requires authorized evidence and has an explicit no-answer behavior.
Limitations and cautions
Retrieval and citations reduce some risks but do not guarantee that every generated claim is supported.
Practice exercise
Write acceptance criteria, a threat model, and five evaluation cases before building the capstone.
Key takeaway: A reliable AI product is a validated, monitored, permission-aware system with accountable owners.