Microscopic dielectric function of a model semiconductor