I wanted a sweet sourdough dessert, with layers of ricotta, apples, and caramel sauce. I came up with this recipe.