Skip to content

feat: Discount Engine Assignment - #6

Open
Hari-23-cpu wants to merge 11 commits into
opptra:mainfrom
Hari-23-cpu:master
Open

feat: Discount Engine Assignment#6
Hari-23-cpu wants to merge 11 commits into
opptra:mainfrom
Hari-23-cpu:master

Conversation

@Hari-23-cpu

Copy link
Copy Markdown

🚀 Submission Overview

This pull request completes the core requirements for the Discount Engine Assignment. It implements a complete end-to-end flow for parsing CSV data, processing PDF promotional documents, and using natural language AI to extract complex discount rules.

✨ Key Features Implemented

  • Natural Language Processing: Integrated Groq API (llama-3.1-8b-instant) to intelligently parse conversational or unstructured promotional rules into valid, structured JSON.
  • PDF Engine Integration: Added a custom PdfUploader component to handle file uploads and extract raw promotional rules from text/documents.
  • Core Discount Logic: Updated discountEngine.js and App.jsx to seamlessly evaluate user shopping carts against the AI-generated and CSV-parsed discount data structures.

🛠️ Tech Stack & Integrations

  • React / Vite (Frontend UI)
  • Groq AI Cloud SDK (LLM Inference engine)
  • Tailwind CSS

🔗 Live Demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant