About
## Challenges we ran into
Here are two real ones from building this codebase — both are documented in the code and decision log:
---
### Bug 1 — The Multi-Package PYTHONPATH Trap
**What happened:**
PRISM has an unusual layout — `db/`, `ml/`, and `backend/` are three separate Python packages at the repo root, but the `Dockerfile` only `COPY`-ed from inside `backend/`. When the Workflows worker tried to import `from ml.embeddings import EmbeddingProvider`, it crashed at container start with a clean `ModuleNotFoundError` — the `ml/` directory simply wasn't on the path.
The tricky part: it worked fine in local tests (because `conftest.py` at the repo root added the paths), but silently broke inside Docker where the working directory was `/app/backend`.
**Fix:**
Two changes together: 1. Changed `dockerContext: .` (repo root, not `./backend`) in `render.yaml` so the full directory tree gets sent to the Docker build 2. Added `ENV PYTHONPATH="/app:/app/backend:${PYTHONPATH}"` in the Dockerfile so all three packages (`db`, `ml`, `backend`) are importable from any entrypoint
---
### Bug 2 — The Serious Complaint Keyword Mismatch
**What happened:**
The `serious/` module (safety/injury triage) was matching safety keywords against the *translated* English text, but the test suite was sending raw Hinglish and Hindi inputs. The keyword lexicon used English terms (`battery exploded`, `burned`, `shock`) but the test payloads had Romanized Hindi equivalents (`jal gaya`, `current laga`). The module returned `is_serious=False` on all non-English inputs — silently, with no error.
This was subtle because the module didn't crash — it just scored everything as non-serious, which is the worst kind of false negative for a safety system.
**Fix:**
Extended the safety lexicon in `serious/__init__.py` to include Romanized Hindi, Hinglish variants, and Unicode Devanagari equivalents of each safety keyword category (thermal, electrical, injury, structural). Also added a semantic fallback — if keyword match fails, it does a cosine similarity check against safety anchor embeddings using the same `multilingual-e5-small` model already loaded in the worker, so it catches paraphrases too.
---
Both bugs came from the same root cause: **assuming the happy path is English text in a single package** — which is exactly what PRISM is designed to break out of. The fixes are now enforced by tests that specifically send non-English safety inputs and cross-package imports.
## The problem it solves
**PRISM** is a cross-channel, multilingual customer review intelligence platform that diagnoses product defects — not just summarises feedback.
Most review tools tell you *what* customers said. PRISM tells you *which batch caused it, across which channels, in which languages, with what statistical confidence* — and then pushes the finding directly into your engineering and ops workflows.
It ingests reviews from any source (APIs, widgets, Chrome extension, file uploads), runs them through a 5-layer ML pipeline — cleaning, trust-scoring, feature extraction, batch attribution, and issue classification — and surfaces actionable findings: which batch or product version triggered a complaint spike, whether the issue is isolated or systemic, and what to do next. Uncertain findings are verified by sending RAG-drafted diagnostic surveys back to consented customers, closing the confidence loop automatically.
Built for Indian e-commerce, PRISM handles Hinglish, Hindi, Tamil, and 50 languages natively using a multilingual embedding model augmented with a custom vernacular sentiment lexicon. Reviews that would be dropped or mistranslated by English-only tools are first-class signals here.
The platform is multi-tenant, role-scoped (QA, Ops, Analyst, Executive, Judge), and ships findings as Jira/Linear/Slack tickets, role-specific email digests, and WeasyPrint executive PDF reports — all generated server-side with zero manual effort.
The entire pipeline runs on Render: FastAPI backend, durable Render Workflows worker for long-running and fan-out tasks, and a single Postgres instance with pgvector for rows, vectors, and rollups — no separate vector database needed.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.







