The Africa Partnership Initiative was established by the G8 in 2003 as a way to encourage dialogue between African nations and the world 's wealthiest countries .