Spaces:
Sleeping
Sleeping
Gaurav vashistha commited on
Commit ยท
f4ae8bb
1
Parent(s): 1a0a513
Docs: Complete README rewrite for production Glassmorphism UI and google-genai migration
Browse files
README.md
CHANGED
|
@@ -7,69 +7,159 @@ sdk: docker
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
| 11 |
|
| 12 |
-
|
| 13 |
-

|
| 14 |
-

|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
|
|
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
|
|
|
| 44 |
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
```env
|
| 50 |
-
GEMINI_API_KEY=
|
| 51 |
-
GROQ_API_KEY=
|
| 52 |
-
PINECONE_API_KEY=
|
| 53 |
-
N8N_WEBHOOK_URL=your_n8n_webhook_url
|
| 54 |
```
|
| 55 |
|
| 56 |
-
##
|
| 57 |
-
|
| 58 |
-
### 1. Installation
|
| 59 |
-
Install the required dependencies using pip:
|
| 60 |
|
| 61 |
```bash
|
| 62 |
pip install -r requirements.txt
|
| 63 |
```
|
| 64 |
|
| 65 |
-
###
|
| 66 |
-
Launch the FastAPI server:
|
| 67 |
|
| 68 |
```bash
|
| 69 |
python main.py
|
| 70 |
```
|
| 71 |
|
| 72 |
-
The
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
|
| 74 |
---
|
| 75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
+
<div align="center">
|
| 11 |
|
| 12 |
+
# ๐ MerchFlow AI
|
|
|
|
|
|
|
| 13 |
|
| 14 |
+
### Autonomous E-Commerce Catalog Intelligence
|
| 15 |
|
| 16 |
+

|
| 17 |
+

|
| 18 |
+

|
| 19 |
+

|
| 20 |
+

|
| 21 |
|
| 22 |
+
**Proprietary & Confidential โ Bhishaj Technologies**
|
| 23 |
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
*A multi-agent AI pipeline that converts raw product imagery into enterprise-grade, SEO-optimized e-commerce catalogs in seconds.*
|
| 27 |
+
|
| 28 |
+
</div>
|
| 29 |
+
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
## ๐ฏ Core Value Proposition
|
| 33 |
+
|
| 34 |
+
MerchFlow AI eliminates the manual bottleneck of product catalog creation. By orchestrating **Computer Vision**, **Retrieval-Augmented Generation (RAG)**, and **Large Language Models** in a seamless autonomous pipeline, it delivers production-ready product listings โ from a single image upload โ with zero human intervention.
|
| 35 |
+
|
| 36 |
+
---
|
| 37 |
+
|
| 38 |
+
## ๐๏ธ System Architecture
|
| 39 |
+
|
| 40 |
+
The system employs a high-performance, event-driven architecture orchestrated by **FastAPI**:
|
| 41 |
|
| 42 |
+
### ๐๏ธ Visual Analyst Agent
|
| 43 |
+
- **Function**: Zero-shot product image analysis
|
| 44 |
+
- **Process**: Extracts granular visual attributes โ dominant colors, material composition, design style, branding elements, and product classification
|
| 45 |
+
- **Engine**: `Gemini 2.5 Flash` via the unified **Google GenAI SDK** (`google-genai`)
|
| 46 |
|
| 47 |
+
### ๐ง Semantic Memory Agent
|
| 48 |
+
- **Function**: RAG-based keyword retrieval with intelligent fallback
|
| 49 |
+
- **Process**: Vectorizes visual attributes to query a high-dimensional index, retrieving historically high-converting SEO keywords and market trends. When the database has no match for a niche, the **Intelligence Fallback** system autonomously generates keywords via Gemini โ ensuring **0% empty results**
|
| 50 |
+
- **Engine**: `Pinecone Vector DB` with `gemini-embedding-001` embeddings (768 dimensions)
|
| 51 |
|
| 52 |
+
### โ๏ธ Writer Agent
|
| 53 |
+
- **Function**: High-conversion copy synthesis
|
| 54 |
+
- **Process**: Fuses visual intelligence with retrieved market data to generate persuasive, conversion-optimized titles, descriptions, and feature bullet points
|
| 55 |
+
- **Engine**: `Meta Llama 3.3 70B` (via Groq Cloud)
|
| 56 |
|
| 57 |
+
### โ๏ธ Pipeline Orchestrator
|
| 58 |
+
- **Function**: Async pipeline management & delivery
|
| 59 |
+
- **Process**: Handles non-blocking agent execution, error propagation, and API lifecycle management. Results are delivered instantly through the **Premium Glassmorphism UI**
|
| 60 |
+
- **Engine**: `FastAPI` with async/await architecture
|
| 61 |
|
| 62 |
+
---
|
| 63 |
+
|
| 64 |
+
## ๐ฅ๏ธ Production Interface
|
| 65 |
+
|
| 66 |
+
MerchFlow AI ships with a **Premium Glassmorphism UI** built for instant catalog generation:
|
| 67 |
+
|
| 68 |
+
- ๐จ Frosted-glass aesthetic with dynamic gradient backgrounds
|
| 69 |
+
- ๐ค Drag-and-drop image upload with real-time processing feedback
|
| 70 |
+
- ๐ Structured JSON output display for visual data, SEO keywords, and generated listings
|
| 71 |
+
- ๐ฑ Fully responsive design across desktop, tablet, and mobile
|
| 72 |
+
|
| 73 |
+
---
|
| 74 |
+
|
| 75 |
+
## ๐ ๏ธ Technology Stack
|
| 76 |
+
|
| 77 |
+
| Layer | Technology | Purpose |
|
| 78 |
+
|-------|-----------|---------|
|
| 79 |
+
| **Runtime** | Python 3.10+ | Core language |
|
| 80 |
+
| **Framework** | FastAPI | Async API orchestration |
|
| 81 |
+
| **AI SDK** | `google-genai` (Unified) | Vision & embedding inference |
|
| 82 |
+
| **Vision Model** | Gemini 2.5 Flash | Product image analysis |
|
| 83 |
+
| **Embeddings** | `gemini-embedding-001` | 768-dim vector generation |
|
| 84 |
+
| **Vector DB** | Pinecone (Serverless) | Semantic keyword retrieval |
|
| 85 |
+
| **LLM** | Llama 3.3 70B (Groq) | Copywriting synthesis |
|
| 86 |
+
| **UI** | Glassmorphism / Tailwind CSS | Production dashboard |
|
| 87 |
+
| **Deployment** | Docker / Hugging Face Spaces | Containerized hosting |
|
| 88 |
+
|
| 89 |
+
---
|
| 90 |
|
| 91 |
+
## ๐ System Updates & Technical Milestones
|
| 92 |
+
|
| 93 |
+
| Date | Milestone |
|
| 94 |
+
|------|-----------|
|
| 95 |
+
| **Feb 2026** | โ
Full migration from deprecated `google-generativeai` to unified `google-genai` SDK |
|
| 96 |
+
| **Feb 2026** | โ
Vision model upgraded to `Gemini 2.5 Flash` for industry-leading latency |
|
| 97 |
+
| **Feb 2026** | โ
Pinecone vector alignment to `768 dimensions` with `gemini-embedding-001` for mathematical precision |
|
| 98 |
+
| **Feb 2026** | โ
**Intelligence Fallback** system deployed โ guarantees 0% empty SEO keyword results |
|
| 99 |
+
| **Feb 2026** | โ
n8n webhook decoupled โ pipeline relies strictly on the Glassmorphism UI for delivery |
|
| 100 |
+
| **Feb 2026** | โ
Production Glassmorphism dashboard launched |
|
| 101 |
+
|
| 102 |
+
---
|
| 103 |
+
|
| 104 |
+
## ๐ Quick Start
|
| 105 |
+
|
| 106 |
+
### 1. Environment Configuration
|
| 107 |
+
|
| 108 |
+
Create a `.env` file in the project root with the following keys:
|
| 109 |
|
| 110 |
```env
|
| 111 |
+
GEMINI_API_KEY=your_google_genai_api_key
|
| 112 |
+
GROQ_API_KEY=your_groq_cloud_api_key
|
| 113 |
+
PINECONE_API_KEY=your_pinecone_api_key
|
|
|
|
| 114 |
```
|
| 115 |
|
| 116 |
+
### 2. Installation
|
|
|
|
|
|
|
|
|
|
| 117 |
|
| 118 |
```bash
|
| 119 |
pip install -r requirements.txt
|
| 120 |
```
|
| 121 |
|
| 122 |
+
### 3. Launch
|
|
|
|
| 123 |
|
| 124 |
```bash
|
| 125 |
python main.py
|
| 126 |
```
|
| 127 |
|
| 128 |
+
The production dashboard will be available at `http://localhost:7860`.
|
| 129 |
+
|
| 130 |
+
---
|
| 131 |
+
|
| 132 |
+
## ๐ Project Structure
|
| 133 |
+
|
| 134 |
+
```
|
| 135 |
+
MerchFlow-AI/
|
| 136 |
+
โโโ main.py # FastAPI orchestrator & pipeline logic
|
| 137 |
+
โโโ dashboard.html # Glassmorphism production UI
|
| 138 |
+
โโโ Dockerfile # Container deployment config
|
| 139 |
+
โโโ requirements.txt # Python dependencies
|
| 140 |
+
โโโ agents/
|
| 141 |
+
โ โโโ visual_analyst.py # Gemini 2.5 Flash vision agent
|
| 142 |
+
โ โโโ memory_agent.py # Pinecone RAG + embedding agent
|
| 143 |
+
โ โโโ writer_agent.py # Llama 3.3 copywriting agent
|
| 144 |
+
โโโ .env # Environment variables (not tracked)
|
| 145 |
+
```
|
| 146 |
+
|
| 147 |
+
---
|
| 148 |
+
|
| 149 |
+
## โ๏ธ Legal Notice
|
| 150 |
+
|
| 151 |
+
> **PROPRIETARY & CONFIDENTIAL**
|
| 152 |
+
>
|
| 153 |
+
> This software, including all source code, documentation, algorithms, and associated intellectual property, is the exclusive proprietary property of **Bhishaj Technologies (UDYAM-UP-02-0108589)**.
|
| 154 |
+
>
|
| 155 |
+
> Unauthorized copying, distribution, modification, reverse engineering, or any form of reproduction of this software โ in whole or in part โ is strictly prohibited and may result in legal action under applicable intellectual property laws.
|
| 156 |
+
>
|
| 157 |
+
> **ยฉ 2026 Bhishaj Technologies. All Rights Reserved.**
|
| 158 |
|
| 159 |
---
|
| 160 |
+
|
| 161 |
+
<div align="center">
|
| 162 |
+
|
| 163 |
+
**Built with precision by Bhishaj Technologies** ๐ฎ๐ณ
|
| 164 |
+
|
| 165 |
+
</div>
|