Skip to content

AustinZ21/EggHatch-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

EggHatch-AI

Python License: MIT Project Site

EggHatch-AI is an open-source AI shopping agent prototype for PC building and gaming laptop recommendations. It combines conversational intent understanding, review analysis, sentiment signals, topic modeling, and a lightweight Streamlit interface into one agentic recommendation workflow.

This is a proof-of-concept project, not a production shopping engine. The goal is to show how an AI shopping assistant can preserve conversational context, analyze product reviews, and route a user request through specialized analysis tools before synthesizing a recommendation.

EggHatch-AI is an independent research/demo project and is not affiliated with Newegg.

Demo

EggHatch-AI conversation Baseline shopping assistant comparison
EggHatch-AI conversation Baseline shopping assistant conversation

Why It Exists

Many shopping assistants answer product questions as one-off chat turns. EggHatch-AI explores a more structured pattern:

  • keep conversational state across follow-up questions
  • separate query understanding from product/review analysis
  • use sentiment and topic signals to explain recommendation quality
  • make the assistant feel like a coherent shopping guide instead of a keyword wrapper
  • demonstrate how agentic decomposition can improve consumer decision workflows

What It Does Today

  • Orchestrates a user query through a LangGraph-style master agent flow
  • Loads gaming laptop product and review data from local CSV/JSON fixtures
  • Runs review cleaning, feature extraction, and basic product filtering
  • Uses LDA topic modeling to surface review themes
  • Uses DistilBERT sentiment analysis when available, with a rule-based fallback path
  • Generates structured laptop comparison rationale for explicit comparison queries
  • Synthesizes a conversational response through a local Ollama model
  • Provides a Streamlit dashboard for trying multi-turn shopping queries

Architecture

flowchart LR
    User["User query"] --> UI["Streamlit dashboard"]
    UI --> Master["Master agent / orchestrator"]
    Master --> State["Agent state"]
    Master --> Data["Data pipeline"]
    Master --> Trend["Trend analysis"]
    Master --> Sentiment["Sentiment analysis"]
    Trend --> Compare["Comparison helper"]
    Trend --> Reviews["Review data"]
    Sentiment --> Reviews
    Data --> Products["Product fixtures"]
    Master --> LLM["Ollama / Gemma response synthesis"]
    LLM --> UI
    Compare --> UI
    Spec["Spec-driven workflow"] -. shapes planned changes .-> Master
Loading

Current POC scope:

  • Implemented: dashboard, master agent flow, agent state, data pipeline, sentiment analysis, trend/topic analysis, explainable comparison helper, local LLM integration.
  • Planned/stubbed: live product knowledge, live pricing/availability, benchmark ingestion, richer build compatibility logic.

Quick Start

1. Clone

git clone https://github.com/AustinZ21/EggHatch-AI.git
cd EggHatch-AI

2. Configure environment

cp .env.example .env

Default .env.example assumes a local Ollama server:

OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_MODEL=gemma3:12b

3. Install runtime dependencies

python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt

On macOS/Linux:

python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

4. Start Ollama

Install Ollama from ollama.com, then pull the configured model:

ollama pull gemma3:12b

5. Run the app

streamlit run dashboard_app.py

Open http://localhost:8501.

Docker

docker build -t egghatch-ai .
docker run -p 8501:8501 --env-file .env egghatch-ai

Example Queries

I want to buy a gaming laptop under $2000.
What are the reviews saying about these laptops?
Which options are better for competitive FPS games?
What matters more here: cooling, display, or GPU?
Compare the best gaming laptops under $2000 and explain the tradeoffs.

Project Structure

EggHatch-AI/
  app/
    agents/
      data_pipeline.py          # Data loading, cleaning, and filters
      trend_analysis.py         # Topic modeling and feature signals
      sentiment_analysis.py     # Sentiment classifier with fallback
      comparison.py             # Deterministic comparison rationale
      product_knowledge.py      # Planned product/benchmark agent
      pricing_availability.py   # Planned pricing agent
      build_recommendation.py   # Planned build recommendation agent
    llm_integrations.py         # Ollama client wrapper
    master_agent.py             # Agent orchestration flow
    prompts.py                  # Prompt templates
  data/                         # Local product and review fixtures
  docs/                         # GitHub Pages project site
  graphify-out/                 # Generated project graph/report artifacts
  images/                       # Demo screenshots
  specs/                        # Spec-driven feature plans
  .agents/                      # Codex skill metadata for spec workflow
  .specify/                     # Spec Kit templates and scripts
  tests/                        # Lightweight smoke tests
  dashboard_app.py              # Streamlit UI
  Dockerfile
  requirements.txt

Documentation

Limitations

EggHatch-AI is intentionally scoped as a local prototype:

  • product and review data are static fixtures
  • live pricing and availability are not implemented
  • PC compatibility and benchmark agents are planned but not implemented
  • recommendation quality depends on local data coverage
  • large NLP models may require significant memory and first-run download time
  • the current Streamlit UI is a demo interface, not a production storefront

Star History

GitHub stars

Star History Chart

If the chart preview looks stale or partially broken in GitHub's README renderer, the interactive view is here: Star History.

Contributing

Issues and pull requests are welcome. Good first contribution areas:

  • improve product/review fixtures
  • add lightweight evaluation cases
  • expand recommendation explanations
  • implement live pricing or benchmark adapters
  • improve Streamlit interaction polish

Please read CONTRIBUTING.md and CODE_OF_CONDUCT.md before contributing.

License

MIT License. See LICENSE.

About

EggHatch-AI is an open-source AI shopping agent prototype for PC building and gaming laptop recommendations. It combines conversational intent understanding, review analysis, sentiment signals, topic modeling, and a lightweight Streamlit interface into one agentic recommendation workflow.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors