Hilbert spaces from path integrals