Indemnification vs lacking privity

What is the difference between indemnification and lacking privity?
The question was “what legal concept protects an architect against claims made by a subcontractor?”