You can use these types of materials to extract energy from any energy gradient.
In the particular case of solar panels, in order to have a workable thermal gradient, you need to have some sort of conductive path from the solar panel to the cold reservoir (assume the ground under it) - that's extra cost there. Then once you have the TEG running, what you're actually doing is adding an impediment to heat flowing from the solar panel to the cold spot, likely causing the solar panel to be a bit warmer (thus decreasing its efficiency). The increase in energy production per given investment is almost always going to be lower than just getting more solar panels.
You see this is most bulk energy production contexts. It's rare for these energy scavenging techniques to make economic sense. Where you start seeing them make sense is when you have other constraints come into play. You can see this with other aspects of solar generation like solar tracking.
In the particular case of solar panels, in order to have a workable thermal gradient, you need to have some sort of conductive path from the solar panel to the cold reservoir (assume the ground under it) - that's extra cost there. Then once you have the TEG running, what you're actually doing is adding an impediment to heat flowing from the solar panel to the cold spot, likely causing the solar panel to be a bit warmer (thus decreasing its efficiency). The increase in energy production per given investment is almost always going to be lower than just getting more solar panels.
You see this is most bulk energy production contexts. It's rare for these energy scavenging techniques to make economic sense. Where you start seeing them make sense is when you have other constraints come into play. You can see this with other aspects of solar generation like solar tracking.