Preheat your oven to 350F (175C) and line two baking sheets with parchment paper. In a medium bowl, whisk together the almond flour, tapioca starch, baking powder, cinnamon, and salt.
In a large bowl, beat the softened butter and granulated sugar together until fluffy, about 3 minutes. Add the egg, vanilla extract, and almond extract and beat until smooth. Gradually add the dry ingredients and stir until a dough forms, then fold in the 1/3 cup mini chocolate chips.
Scoop the dough into 1.5 tablespoon-sized balls and place them 2 inches apart on the prepared baking sheets. Bake for 11 to 13 minutes until the edges are golden and the centers are set. Let the cookies cool completely on the baking sheets, then transfer to a wire rack. The cookies must be fully cooled before adding the topping.
While the cookies cool, prepare the cannoli topping. Place the ricotta cheese in a fine-mesh strainer set over a bowl and press gently with a paper towel to remove excess moisture. This step ensures the filling is thick and not watery.
In a medium bowl, beat the strained ricotta, mascarpone, powdered sugar, and vanilla extract with an electric mixer until smooth and fluffy, about 2 minutes. Fold in the 1/4 cup mini chocolate chips.
Transfer the cannoli filling to a piping bag fitted with a large star tip. Pipe a generous swirl of filling onto the center of each cooled cookie. Sprinkle with chopped pistachios and a few extra mini chocolate chips.
Serve immediately or refrigerate for up to 2 hours before serving. The combination of the crisp almond cookie and the creamy, sweet ricotta filling tastes just like a classic cannoli.