New New: Meridian, the company website and growth platform, and Feilun, the AI growth platform View products →

From a thousand negative reviews to a dozen pain cards: Feilun's pain mining pipeline

Engineering By SREYUN 7 views

User voices are valuable and noisy: the same problem shows up in dozens of phrasings, and real pain points are buried under complaints, emotion and irrelevant text. Feilun's pain mining turns those voices into a set of uniform, traceable, prioritized pain cards. Here is the pipeline step by step.

Collection: data sources out of the box

A recommended data source pack covers the main platforms at home and abroad:

  • App Store: leading apps per category, one- to three-star reviews only, uninformative short reviews filtered out, with "helpful" votes;
  • Hacker News: "I would pay for" posts showing willingness to pay, and popular Ask HN threads;
  • Heimao complaints, V2EX, Stack Exchange, GitHub, DEV: each with likes, replies, votes or views;
  • Support logs and imports: CSV, JSON or text imports, or one-click clipping of Xiaohongshu, Zhihu, Weibo and Douyin posts with the browser clipper.

Every adapter uses the same request wrapper (user agent, timeout, optional proxy) and filters (keywords and a minimum engagement threshold). A failing source never affects the others, and the task result says why it failed.

Cleaning and masking

Raw text is stripped of HTML, whitespace is normalized, it is cut to 800 characters, and anything too short is dropped. Mobile numbers, emails, ID numbers, WeChat and QQ IDs and @nicknames are masked before storage. Only masked public text is kept, never nicknames, authors or contact details.

Two layers of de-duplication: exact and near

  1. Exact: a content hash of the normalized text with a unique database constraint guarantees each voice is stored once, which is what makes the pipeline idempotent;
  2. Near: SimHash similarity above 0.9 marks a near duplicate, typically the same text reposted on several platforms or lightly reworded.

On the built-in example data, 107 voices de-duplicate at 86%; a second run stores 0, recognizes 106 as already seen and creates 0 new cards, so re-running never manufactures duplicates. After optimization, near de-duplication is 509 times faster than the first version, and the full pipeline for 5,250 voices takes about 2.8 seconds (with a mock model).

Tagging: a small model in batches

The remaining voices go to a small model in batches of eight: is it a pain point, its title, type, persona, scenario, emotional intensity, payment signal, and a quote that must be taken verbatim from the text. Posts are processed by engagement, so heavily shared, commented and saved posts come first. With a multimodal model configured, text and complaints in post images are read and appended to the text before tagging.

Semantic clustering: different words, same pain

One pain point has many phrasings: "I merge data from three back ends by hand every week", "orders from each platform have to be exported one by one and combined"... Feilun represents each voice with a vector weighted 0.8 for the title and 0.2 for the scenario, compares it with the centroids of existing cards and of new clusters in the batch, and merges at cosine similarity of 0.85 or more when the pain type matches. Existing cards only get their frequency incremented, without another model call.

Distilling the card

A large model distills each new cluster into a card. The card's quote must be a contiguous fragment of the original text, otherwise the model retries with the error; if it still fails, a rule-based card is used and the run continues. Exported card JSON contains exactly 12 fields in a fixed order:

id · title · persona · scenario · quote · source · frequency
emotion · product_hint · priority · status · created_at

Scoring and reports

A card's priority (0 to 10) combines frequency, emotional intensity and willingness to pay, and the engagement and number of platforms of its evidence are summarized alongside. Every run exports that day's card JSON and a Markdown report (sorted by priority, every card with the user's own words) and can notify a Feishu, DingTalk or WeCom group. Mining runs every Monday at 8:00 by default and can be started from the UI at any time.

Engineering constraints

  • Cost: a small model tags in batches, the large model is used only to distill new clusters and generate content, merging into existing cards never calls a model, and each run has a token cap.
  • Structured validation: model output is parsed for JSON (tolerating code fences, reasoning and surrounding text), then checked with Pydantic and business rules, and errors are fed back to the model for a retry.
  • Write locks: every model call happens in a read-only phase; cards are drafted first and written together, so no SQLite write transaction spans a network call.

After pain cards comes AI opportunity scoring; see "How Feilun scores AI opportunities". Learn more on the Feilun product page.

Related articles