From 16241326aa6ecc6e8b730c5e107950695b606bee Mon Sep 17 00:00:00 2001 From: sfreeman422 Date: Wed, 29 Apr 2026 08:48:11 -0400 Subject: [PATCH] Improved trait prompt --- packages/backend/src/ai/ai.constants.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/backend/src/ai/ai.constants.ts b/packages/backend/src/ai/ai.constants.ts index 345aa44a..771aa066 100644 --- a/packages/backend/src/ai/ai.constants.ts +++ b/packages/backend/src/ai/ai.constants.ts @@ -192,6 +192,10 @@ Do NOT include: Requirements: - Traits must be concise, concrete, and attributable to the user. - No duplicates or near-duplicates. +- Treat semantically similar phrasings as duplicates, even if wording differs. +- If multiple candidates express the same underlying trait, keep exactly one canonical version and drop the rest. +- Canonical version should be the clearest, most specific, and most durable phrasing. +- Before finalizing, run a dedupe pass over the full list and remove any overlapping traits. - Prefer quality over quantity. If only 4 strong traits exist, return 4. Output format: