Ricotta cheese is a soft and creamy cheese made from whey and has a slightly sweet and tangy flavor. When used in a cookie recipe, it adds moisture and richness to the dough, resulting in a tender and cake-like texture. It can also add a subtle flavor that complements other ingredients in the recipe.