How vinodrajakondala/retail-product-predictions works
Project type and purpose
• This is a data‑science/demo project implementing a retail recommendation engine using the PySpark ALS (Alternative Least Squares) collaborative‑filtering model.
• It showcases how to ingest catalog and user‑rating data into Azure Cosmos DB (both NoSQL and MongoDB APIs), train an ALS model on a Spark cluster, then serve product recommendations (including vector search) back from Cosmos DB.
File structure
• Top‑level directories:
• AzureCosmosDBForMongoDB/
– Notebooks to set up a Cosmos DB MongoDB‑API account, ingest data, train ALS, run recommendations.
• AzureCosmosDBForNoSQL/
– Parallel notebooks for the Cosmos DB NoSQL‑API variant (vector search demos).
• data/
• catalog/catalog.json (+ embeddings variant)
• ratings/rawRatings.json, actualRatings.json
• example.env: holds connection strings/keys for Cosmos DB accounts.
• Other files: README, LICENSE, CODE_OF_CONDUCT, etc.
README for additional insights
• Confirms emphasis on:
• Azure Cosmos DB for NoSQL vector search
• vCore‑based Cosmos DB for MongoDB vector search
• Usage of PySpark and the ALS algorithm for collaborative filtering
Key takeaways
• Be exhaustive: include both Cosmos DB APIs, ETL, ML compute, and client role.
• Both batch and interactive (notebook) interactions.
• Where vector search vs ALS scoring is used.