Neural Mastery
← Practice
#183. Corrective RAGeasy

#183. Corrective RAG

easyRAG Fundamentals⏱ 10–15 min
Libraries allowed · Pure Python earns +10 bonus XP
🎯 Mission
Implement #183. Corrective RAG to master core AI engineering concepts in RAG Fundamentals.

Task

Implement `corrective_rag` in Python. Test cases verify edge cases and functional requirements.

Function Signature

corrective_rag(*args, **kwargs)

Examples

Example 1: Basic Execution
Input: {}
Output: true
Explanation: Verifies core execution for #183. Corrective RAG.

Constraints

  • Libraries (NumPy, PyTorch, SciPy) are allowed and accepted normally.
  • Pure Python (no external libraries) earns +10 Bonus XP!
  • Must handle edge cases cleanly.
Python3Saved ✓
def corrective_rag(*args, **kwargs):
"""
RAG Fundamentals - Problem #183: Corrective RAG
Implement solution for Corrective RAG in the Neural Mastery AI Engineering curriculum.
"""
# Implement core solution logic here
pass

Case 1: Basic Execution
Input: {}
Expected: true