Poke several holes in the sweet potato. Place in microwave on high for 3-4 minutes on each side.
While your potato is cooking, measure out your ricotta cheese. Wrap cheese in a piece of paper towel and press down firmly to remove excess moisture.
Cut potato in half and scoop out the flesh into a mixing bowl.
Add ricotta cheese, egg, salt, cayenne pepper, and a few grinds of fresh black pepper to the bowl. Stir in your all-purpose flour, ½ cup at a time, mixing between additions.
Form a ball with the dough and knead a few times with your hands. Transfer the ball of dough to a floured surface.
Divide the ball of dough into 8 equal portions. Roll out each portion into long ropes, about ½ to ¾ inch thick.
Next, cut the ropes into 1-inch pieces. Let gnocchi pieces dry for about 10 minutes.
As the gnocchi is drying, make the sauce. Add ½ cup olive oil to a small saucepan over medium heat.
Add the walnuts and garlic to the saucepan. Toast the nuts for about 5-6 minutes. Mix frequently with a spatula.
Add the sage leaves and the oregano and cook for 2 minutes longer. Remove sauce from heat and mix in the salt and a few grinds of fresh black pepper.
Add water to a pot and lightly salt it. Place over high heat. When water is boiling, add the gnocchi. Stir frequently with a slotted spoon. When gnocchi rises to the top of the water, remove from heat. Drain, using a strainer. Rise briefly with cold water and add gnocchi back to the pot.
Pour the warm sauce over the gnocchi and mix well. Top with parmesan cheese, if desired. Serve immediately. Enjoy!