Interview Prep
Interview questions, roadmaps and practice sets
Tutorials
Free tutorials on 30+ topics
Blog
Career guides, skills and interview tips
Free PDFs
Notes, cheat sheets and question banks
Certificates
Free skill tests and course certificates
Tools & Whiteboard
Free tools you can use right in the browser
Practice Tests
Mock tests, MCQs and quick Q&A
Free LMS
Learn on the Uncodemy LMS
Choose the best training program according to your career.
Improve the performance of your business with our innovative Industrial Training Program.
Read More →
Our instructor-led training classes are designed to make you an expert.
Read More →
Real-life case studies are a great way to demonstrate your practical knowledge.
Read More →
Explore blogs, latest technologies and industry updates with practical examples.
Read More →Browse all available training programs and choose the right one for your career.
Read More →Know more about who we are and what we stand for.
Discover our mission to equip individuals with essential IT skills and industry expertise.
Read More →
Free tutorials, interview questions, tools and calculators to help you learn.
Explore →Learn, practice and plan your career — bilkul free.
Book a free video counselling session and pick the right course for you.
Read More →The reliable way to turn hundreds of reviews into insights is not to paste them all into a chatbot and ask for a summary. Tag each review with aspects and sentiment, count the tags, and only then ask AI to summarise the patterns, with example quotes you can check.

Asking an AI model to "summarise these 2,000 reviews" gives a fluent paragraph, but you cannot tell what it left out, how common each complaint is, or whether it invented a theme. A better approach splits the job: AI reads and labels each review, ordinary code counts the labels, and AI writes the final summary from those counts. Every claim in the summary can then be traced back to numbers and real reviews.
Sources include your own website, app store reviews, marketplace seller panels, Google Business Profile and support tickets. Export what the platform allows; respect each site's terms rather than scraping where it is forbidden. Then clean:
Define a fixed list of aspects first. A fixed list makes results countable; letting the model invent categories gives you "shipping", "delivery" and "courier" as three separate themes.
You label customer reviews. Allowed aspects: delivery, price, quality,
packaging, customer_support, app_experience, other.
For the review below, return JSON only:
{"aspects": [{"aspect": "...", "sentiment": "positive|negative|neutral",
"quote": "exact words from the review"}]}
Use only aspects that the review actually mentions.
Review: """Product is good for the price but delivery took 9 days."""
Expected output for that review:
{"aspects": [
{"aspect": "quality", "sentiment": "positive", "quote": "Product is good"},
{"aspect": "price", "sentiment": "positive", "quote": "for the price"},
{"aspect": "delivery", "sentiment": "negative", "quote": "delivery took 9 days"}
]}
The quote field matters: it forces the model to point at real text, and you can check automatically that each quote appears in the review.
Calling a model from Python with the OpenAI SDK looks like this (any provider with a JSON mode works the same way; the model name is only an example). Here prompt_template is the prompt above with the review text replaced by a {review} placeholder; str.replace is used instead of format because the prompt itself contains JSON braces:
import json
from openai import OpenAI
client = OpenAI() # reads OPENAI_API_KEY from the environment
def tag_review(text, prompt_template):
resp = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": prompt_template.replace("{review}", text)}],
response_format={"type": "json_object"},
temperature=0,
)
data = json.loads(resp.choices[0].message.content)
# keep only aspects whose quote really appears in the review
return [a for a in data.get("aspects", []) if a.get("quote", "") in text]
For thousands of reviews, batch the calls, cache results so you never pay twice for the same review, and log failures. If you cannot send data outside the company, run an open model locally instead; the prompt stays the same. For a classical, non-LLM approach, see building a sentiment analysis tool in Python.
Once every review has tags, counting is ordinary data analysis:
import pandas as pd
labels = [
{"review_id": 1, "aspect": "delivery", "sentiment": "negative"},
{"review_id": 1, "aspect": "price", "sentiment": "positive"},
{"review_id": 2, "aspect": "delivery", "sentiment": "negative"},
{"review_id": 3, "aspect": "quality", "sentiment": "positive"},
{"review_id": 4, "aspect": "delivery", "sentiment": "positive"},
{"review_id": 5, "aspect": "quality", "sentiment": "negative"},
]
df = pd.DataFrame(labels)
summary = df.groupby("aspect")["sentiment"].agg(
mentions="count",
negative=lambda s: (s == "negative").sum(),
)
summary["neg_share"] = (summary["negative"] / summary["mentions"]).round(2)
print(summary.sort_values("mentions", ascending=False))
Output:
mentions negative neg_share
aspect
delivery 3 2 0.67
quality 2 1 0.50
price 1 0 0.00
On real data, add a month column and compare periods: a sudden rise in negative delivery mentions after a courier change is exactly the kind of insight a manager can act on. If you are new to this kind of analysis, our guide to data manipulation with pandas covers groupby in detail.
Now give the model the aggregated table plus two or three real quotes per aspect, and ask for a short report:
Here is a table of review aspects with mention counts and negative share for
October, compared with September, plus example quotes. Write a 5-bullet summary
for the operations team. Every bullet must cite a number from the table.
Do not mention anything that is not in the table or the quotes.
Because the numbers come from your code, the summary cannot exaggerate how common a problem is without you noticing.
A useful review report has three parts: what changed (biggest moves in negative share), what it is about (quotes), and what to do (owner and action). A bar chart of mentions by aspect, coloured by sentiment, and a line chart of negative share over time usually say more than a long paragraph. This workflow also makes a good portfolio project; see a customer sentiment tracker in Python and NLP projects for beginners for ideas.
For a quick look at a few dozen reviews, yes. For decisions, no: you cannot see what was missed or how common each theme is. Tag, count, then summarise.
A classic sentiment model gives one score per review. An LLM can split a mixed review into aspects ("good quality, slow delivery"), which is what makes the insights actionable.
Most current LLMs can label Hindi and Hinglish text directly. Keep the aspect names in English so the counts stay consistent, and check a sample by hand.
Uncodemy's data science and AI courses include NLP projects like this, from text cleaning to LLM-based labelling.