Start by preheating your oven to 350 F and lining a 9×13 baking dish with foil. Spray the foil with cooking spray or rub generously with butter.
Take 1/2 a cup of the cake mix and set aside. You will be using this to mix into the second layer of the bars.
In a bowl, mix the remaining cake mix, melted butter, and 1 egg with an electric mixer until a dough forms.
Press the dough onto the bottom of the pan.
In a large bowl, blend together the ricotta, sweetened condensed milk, and almond extract until fully combined.
Mix in the 1/2 cup cake mix and 3 eggs until smooth. Fold in the chocolate chunks and 1/2 of the pistachios.
Spread over the layer of dough.
Bake for 45-50 minutes being careful to not over bake. Take out of the oven when the middle is barely set.
Place in refrigerator to fully cool.