Rinse the red lentils in a fine-mesh strainer under cold running water for about 1 minute until the water runs mostly clear. Peel and cube the sweet potatoes into 3/4-inch pieces, dice the onion, carrots, and celery, mince the garlic, and combine the spices in a small bowl.
Heat the olive oil in a Dutch oven over medium heat. Add the onion, carrots, celery, and 1/2 teaspoon salt and cook for 6 to 8 minutes, stirring often, until the onion is translucent and the carrots begin to soften.
Push the vegetables to the sides, add the garlic to the center, and stir for 30 seconds. Add the spices and cook for 45 to 60 seconds until toasty and fragrant, adding a splash of broth if the pot looks dry.
Add the sweet potatoes, rinsed lentils, tomatoes with juices, broth, bay leaf, 1 teaspoon salt, and black pepper. Stir, scraping up browned bits, then bring to a boil, reduce to medium-low, partially cover, and simmer for 25 to 30 minutes, stirring every 8 to 10 minutes, until the sweet potatoes are fork-tender and the lentils have softened.
Turn off the heat and remove the bay leaf. Insert an immersion blender and pulse 5 or 6 times, moving it around, so only about one third of the soup is blended. Alternatively, mash a few times with a potato masher or blend 2 cups in a countertop blender and stir it back in.
Stir in the lemon juice and half of the cilantro or parsley. Taste and add the remaining 1/2 teaspoon salt, or more, until bright and balanced, thinning with hot broth or water if needed. Warm over low heat for 2 to 3 minutes if liquid was added.
Ladle into warm bowls, sprinkle with the remaining fresh cilantro or parsley, and serve hot with crusty bread or your favorite sides.