Cache the knowledge base, inject the student.
The AI companion runs against a large standing knowledge base held in the prompt cache, with the individual student's real budget, tasks, exam dates and mood injected fresh on every call. The split is deliberate: the expensive, stable, carefully-written part is paid for once; the part that must be current is small. Advice that does not know your actual balance is horoscope writing.