Contracted Gaussian-type function sets to describe valence correlation are developed for the sixth-period d-block atoms Lu through Hg. A segmented contraction scheme is employed for their compactness and efficiency. Contraction coefficients and exponents are determined by minimizing the deviation from accurate natural orbitals generated from configuration interaction calculations, in which relativistic effects are incorporated through the third-order Douglas-Kroll approximation. The present basis sets yield more than 99% of atomic correlation energies predicted by accurate natural orbital sets of the same size. Relativistic model core potential calculations with the present correlating sets give the spectroscopic constants of the AuH molecule in excellent agreement with experimental results.