To get at the debris that collects in the crevices of your carpet in areas such as the baseboard or the stairs, use ordinary packing tape.
Take the tape and place it over the crevice being sure to tuck it in as deeply as possible. Remove the tape, and remove the dirt that your vacuum can't get at! (Test on an inconspicuous area of your carpet first.)