She is best known for playing Karen Hill in the 1990 film Goodfellas and Jennifer Melfi in the HBO show The Sopranos . She is known for her roles as Karen Hill in Goodfellas and Dr. Jennifer Melfi on the HBO television series , The Sopranos .