How thevirtualhero/business-analyzer works
Purpose
Business-Analyzer is an LLM-assisted review-intelligence project for local businesses. It turns Google Maps-style customer reviews into sentiment, themes, and business recommendations. The repository is a compact prototype rather than a clearly separated production application.
Entry Points
• google maps review analyser.ipynb is the likely exploratory/interactive analysis entry point for loading and analyzing reviews.
• llm and code.py is the likely scripted LLM integration or automation entry point.
• README.md describes intended Streamlit/Gradio deployment, but no frontend source file is present in the tree.
Review Data Boundary
• ReviewsDetails.csv is the repository’s local review-data input.
• The intended upstream acquisition boundary is SerpAPI/Google Maps Reviews, as described in README.md; no API client or credentials file is visible.
• The CSV/notebook boundary separates raw or simulated review records from NLP and LLM analysis.
NLP and Classification Stage
The analysis layer is intended to clean review text and derive structured signals:
• Sentiment classification distinguishes positive, negative, and complaint-oriented feedback.
• Thematic categorization identifies recurring operational topics such as service speed, pricing, and staff behavior.
• This stage is represented by the workflow-oriented artifacts google maps review analyser.ipynb and llm and code.py, with the dataset in ReviewsDetails.csv.
LLM Insight Generation Stage
The core reasoning flow uses prompt-driven LLM processing to convert review-level signals into summaries and recommendations. The stated model ecosystem is Hugging Face and Langflow (README.md), likely invoked or prototyped through llm and code.py. Outputs are intended to include operational suggestions, trend-based recommendations, and competitor-related highlights.
Presentation and Delivery Boundary
The README positions Streamlit or Gradio as the user-facing deployment runtime, but the repository contains no corresponding app module. Therefore, the current visible delivery mechanism is the notebook (google maps review analyser.ipynb), while a dashboard layer remains an intended integration boundary rather than a confirmed implemented component.
Runtime and External Dependencies
Material runtimes/services named by the project are Python, notebook execution, Hugging Face models, Langflow, and SerpAPI. README.md is the only visible dependency/design declaration; there are no package manifests, deployment descriptors, Langflow exports, or frontend source files in the provided tree. Engineers should treat model selection, API ingestion, and dashboard serving as integration points needing verification inside llm and code.py and the notebook.
Main entry points: README.md Project design declaration · ReviewsDetails.csv Local review dataset · google maps review analyser.ipynb Interactive analysis · llm and code.py LLM automation
Components 12
Review Inputs
- Local review dataset
ReviewsDetails.csv
Analysis Workflow
- Interactive analysis · Current visible analysis and delivery surface.
google maps review analyser.ipynb - LLM automation · Likely scripted integration entry point.
llm and code.py - Review text cleaning
- Sentiment & theme classification · Derives sentiment, complaints, and operational themes.
- LLM insight generation · Produces summaries, recommendations, and competitor highlights.
- Business recommendations
External & Intended Delivery
- SerpAPI / Google Maps · Intended acquisition source; no client is visible.
README.md - Hugging Face models
README.md - Langflow
README.md - Streamlit / Gradio dashboard · Documented deployment target without a visible app module.
README.md - Project design declaration · Declares integrations and intended deployment.
README.md
Connections 16
- SerpAPI / Google Maps → Local review dataset: intended ingestion
- Local review dataset → Interactive analysis: loads reviews
- Local review dataset → LLM automation: processes reviews
- Interactive analysis → Review text cleaning: analyzes
- LLM automation → Review text cleaning: automates
- Review text cleaning → Sentiment & theme classification: normalized text
- Sentiment & theme classification → LLM insight generation: structured review signals
- Hugging Face models → LLM insight generation: model inference
- Langflow → LLM insight generation: prompt workflow
- LLM insight generation → Business recommendations: generates
- Business recommendations → Interactive analysis: interactive results
- Business recommendations → Streamlit / Gradio dashboard: intended presentation
- Project design declaration → SerpAPI / Google Maps: documents
- Project design declaration → Hugging Face models: documents
- Project design declaration → Langflow: documents
- Project design declaration → Streamlit / Gradio dashboard: proposes