in src/psearch/ingestion/main.py [0:0]
def _prepare_product_text(self, product: Dict[str, Any]) -> str:
"""
Prepare product text for embedding by generating enhanced content
using product details and image analysis
"""
product_data = {
"title": product.get("title"),
"brands": product.get("brands"),
"description": product.get("description"),
"categories": product.get("categories"),
"image_url": product.get("images")[0][
"uri"
], # TODO Adjust this later to process all the images in the array
"product_url": product.get("uri"),
}
return self.gemini_service.generate_product_content(product_data)