We study the production of photons accompanied by jets in large-$Q^2$ deep
inelastic scattering. Numerical results for the cross section differential
with respect to the fraction of momentum $z_{\gamma}$ carried by a
photon inside a jet at large $z_{\gamma}, up to $ O(\alpha \alpha_s)$ in
perturbative QCD, are presented. The sensitivity to the fragmentation
contribution allows one to study the quark-to-photon fragmentation
function. Our results can be confronted with future experimental
data from HERA.