Algolia does not directly store products: it stores variants. The "duplicated" items are likely just different sizes/colors/etc. of the same product, and these create different variant records in Algolia.
The behavior for the display of these variants on the front-end can be changed in the Algolia Shopify app by selecting the "Show Products instead of Variants" checkbox.
You can find more information about this topic in our documentation: