What is would be my "relationship" with a recommender whose class I was a TA for?
How about "student and later assistant"? I think it would be well understood. Make it teaching assistant if you want five words instead of four. 

Or if you want to turn it to reference them instead of yourself: "professor, later TA supervisor".