ClariCart is an advanced, AI-powered product discovery and review analysis system. It leverages multiple scraping strategies, robust language models, and web intelligence to gather, analyze, and present product metadata and customer sentiments (primarily from platforms like Amazon).
- ClariBot (AI Assistant): A highly interactive, intelligent sidekick within the dashboard. Powered by LangChain, Groq, and Llama-3.3-70b-versatile, providing conversational interactions and real-time product data extraction.
- Multi-Strategy Scraping Engine:
- Automatically fetches product details using n8n workflows.
- Dynamically scrapes live product pages (e.g., Amazon) via Playwright using Chrome automation.
- Parses JSON-LD structured data and uses Regex + CSS selector fallbacks.
- Multi-engine search fallbacks (DuckDuckGo, Bing) for fetching rating and review counts.
- RAG & Vector Retrieval on Reviews: Uses
langchain-chroma, HuggingFace embeddings (all-MiniLM-L6-v2), and Vector Stores to perform retrieval-augmented generation (RAG) on scraped customer reviews. Automatically builds pros & cons tables based on actual reviews. - Generative UI & Chat Integration: The LangChain agent sends context-aware generative UI triggers to the dynamically rendered Next.js React frontend to actively display products.
Langchain_Models copy/- Contains the Python backend framework and database setup.api.py: FastAPI server handling web endpoints, tool definitions (search_product_reviews,discover_products,fetch_product_details), agent-based chat APIs, and the LangGraph orchestrator.review_ingestion.py: Backend script for saving product reviews natively into ChromaDB for vector retrieval.requirements.txt: Python dependencies including FastAPI, LangChain, Playwright, and Uvicorn.data/andchroma_db/: Vector database and local storage catalogs.
Langchain_Models copy/frontend/- Contains the Next.js React frontend Web App for the interactive user dashboard.
- Backend: Python 3, FastAPI, LangChain, LangGraph, Playwright, BeautifulSoup4.
- AI & LLM: Groq (Llama-3.3-70b-versatile), HuggingFace Embeddings, Chroma Vector DB.
- Frontend: Next.js, React, TailwindCSS.
- Navigate to the backend component:
cd "Langchain_Models copy"
- Create and configure your
.envfile with API keys (e.g., Groq, HuggingFace tokens). - Install the required Python packages:
pip install -r requirements.txt
- Run the FastAPI development server:
uvicorn api:app --reload --host 0.0.0.0 --port 8000
- Keep the python server running and open a new terminal.
- Navigate to the frontend UI:
cd "Langchain_Models copy/frontend"
- Install Node.js dependencies:
npm install
- Start the frontend application:
npm run dev
- Open
http://localhost:3000to interact with ClariCart.
Proprietary / All Rights Reserved.
This project and its entire source code are completely proprietary. See the LICENSE file for full details. Unauthorized copying, distribution, or reproduction of any part of this repository is strictly prohibited.