explaingit

pankajsanger/amazon-rag-assistant

Analysis updated 2026-05-18

0PythonAudience · developerComplexity · 3/5Setup · moderate

TLDR

A Streamlit app that scrapes Amazon products and reviews, then answers plain English questions about them using RAG.

Mindmap

mindmap
  root((Amazon RAG Assistant))
    What it does
      Scrapes products and reviews
      Stores data in SQLite
      Answers questions with RAG
    Tech stack
      Python
      Selenium
      OpenAI
      Chroma
    Use cases
      Research product reviews
      Compare prices and ratings
      Learn RAG pipelines
    Audience
      Researchers
      Developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Scrape a set of Amazon product pages and store their details locally.

USE CASE 2

Ask natural-language questions about collected customer reviews, like which products score lowest.

USE CASE 3

Learn how a retrieval augmented generation pipeline is built end to end.

USE CASE 4

Rebuild a searchable index after scraping new products without restarting the app.

What is it built with?

PythonSeleniumBeautifulSoupSQLiteOpenAILangChainStreamlitChromaDB

How does it compare?

pankajsanger/amazon-rag-assistant0xallam/my-recipe0xhassaan/nn-from-scratch
Stars00
LanguagePythonPythonPython
Last pushed2022-11-22
MaintenanceDormant
Setup difficultymoderatemoderatemoderate
Complexity3/52/54/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 1h+

Requires an OpenAI API key and a manually saved Amazon login cookie file to scrape.

No license file is mentioned in the README, so usage rights are unclear.

In plain English

This project is a tool that scrapes product listings and customer reviews from Amazon, stores them in a local database, and then lets you ask plain English questions about what it collected. It answers those questions using a technique called retrieval augmented generation, where the system searches through the stored data for the most relevant pieces before asking a language model to write an answer grounded in that information, all wrapped in a simple web interface built with Streamlit. You can feed it a single product page link, upload a spreadsheet with a list of links, or run a live keyword search on Amazon. It collects two kinds of information side by side, product details like title, price, and rating, and customer reviews with their author, star rating, date, and text. Everything is saved into a local SQLite database, so scraping the same product again updates the existing entry instead of creating a duplicate. Products and reviews are each turned into their own searchable index using a vector database called Chroma, and a self query retriever lets the language model translate a question like reviews rated below three stars into the right filters automatically, rather than requiring you to write any filtering logic yourself. A rebuild index button in the app re-embeds new data at any time without needing to restart the whole program. To log into Amazon without dealing with captchas or two factor prompts, the project reuses a saved browser session stored as cookies rather than automating a real login each time. Under the hood it relies on Selenium and BeautifulSoup for browser automation, OpenAI for both the embeddings and the answering language model, and LangChain to tie the retrieval and generation steps together. The author describes this as a personal, educational project for learning how a full retrieval augmented generation system fits together end to end, and notes that anyone using it should respect Amazon's terms of service and robots.txt rules before scraping at any scale. It requires Python, Google Chrome, and an OpenAI API key to run.

Copy-paste prompts

Prompt 1
Help me add a new scraper module for a different e-commerce site to this RAG pipeline.
Prompt 2
Show me how to swap the OpenAI embeddings in this project for a local embedding model.
Prompt 3
Explain how the self-query retriever in this project turns my question into metadata filters.
Prompt 4
Walk me through setting up the Amazon cookie login so I can run this scraper myself.

Frequently asked questions

What is amazon-rag-assistant?

A Streamlit app that scrapes Amazon products and reviews, then answers plain English questions about them using RAG.

What language is amazon-rag-assistant written in?

Mainly Python. The stack also includes Python, Selenium, BeautifulSoup.

What license does amazon-rag-assistant use?

No license file is mentioned in the README, so usage rights are unclear.

How hard is amazon-rag-assistant to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is amazon-rag-assistant for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.