It is shown how many of the partial theta function identities in Ramanujan's lost notebook can be generalized to infinite families of such identities. Key in our construction is the Bailey lemma and a new generalization of the Jacobi triple product identity. By computing residues around the poles of our identities we find a surprising connection between partial theta function identities and Garrett–Ismail–Stanton-type extensions of multisum Rogers–Ramanujan identities. 2000 Mathematics Subject Classification 05A30, 33D15, 33D90.