HS recommendation from image

This marks my second venture into the realm of Harmonic code classification for products. In my initial project, I employed the BERT pre-trained model, fine-tuning it with proprietary data to create an effective classification model. However, the winds of change have led me to my latest project, where I harnessed the capabilities of Google Gemini, the forefront of AI innovation.

Google Gemini: Redefining the AI Landscape

The emergence of Google Gemini represents a paradigm shift in the era of AI. Unlike its predecessors, this model stands out for its unique ability to seamlessly integrate both textual and visual information. This means that whether you provide a commercial description or a picture of the product, Google Gemini has the prowess to decipher and recommend the most fitting Harmonic code.

Technical Insights into Model Architecture

From a technical standpoint, I leveraged two key components of the Gemini suite – Gemini-Pro-Vision for image analysis and Gemini-Pro for text processing. The synergy between these components allows for a holistic approach to Harmonic code classification. The secret sauce lies not only in the model architecture but also in the meticulous engineering of prompts, ensuring consistent and reliable results with every query.

Threefold Output for Comprehensive Insights

This dynamic model delivers results in three distinct parts, each contributing to a comprehensive understanding of the product:

Recommended HS Code and Rationale: The primary output is the suggested Harmonic code along with a detailed explanation of the reasoning behind it. This ensures transparency and builds confidence in the accuracy of the classification.

Description of the Image: For queries involving product images, Google Gemini provides a detailed description. This not only aids in verification but also serves as an additional layer of information for users.

Other Possible HS Codes: Acknowledging the nuances of product classification, the model goes beyond a singular recommendation. It provides alternative Harmonic codes, allowing users to explore different categorization possibilities.

Ensuring Consistency with Prompt Engineering

An often-overlooked but crucial aspect of this model is prompt engineering. Through meticulous crafting of prompts, I have ensured that the structure remains consistent, guaranteeing reliable outcomes each time the model is engaged.

A quick demo and further details have been presented in the following video:

Mohan Kumar Pudasaini
Mohan Kumar Pudasaini
Data Analyst||Risk Analyst

Passionate about utilizing data to uncover valuable insights and drive actionable outcomes.

Related