How do I remove broken glass from a carpet?

I shattered a glass shelf into a million tiny fragments. I swept up the larger pieces and vacuumed as best as I could. How can I make sure there aren’t fragments still lodged in the carpet fibers, waiting to cut the soles of my feet next time I walk barefoot in that room?