Clarity is dependent on several factors. Look into "hot break," "cold break" and the use of clarifying agents like Irish moss and gypsum. But also keep in mind that cloudiness is purely a matter of appearance and will have no relationship to the flavor of your beer. Also, clarity always appears to improve once your beer is in a bottle or glass. In the carboy you are trying to look through about 18 inches of liquid with particulate suspended in it. In a bottle or glass, you will only be looking through maybe two inches. The appearance will be better.
Finally, if clarity above all else is important, you may think about lowering your own expectations. You can make a very clear beer with good technique and great patience but even your best will not be as clear as a commercial beer.