diff --git a/backend/src/Vocabulary/TextStack.Vocabulary/DistractorGenerator.cs b/backend/src/Vocabulary/TextStack.Vocabulary/DistractorGenerator.cs index 739b62d7..c67eb8f0 100644 --- a/backend/src/Vocabulary/TextStack.Vocabulary/DistractorGenerator.cs +++ b/backend/src/Vocabulary/TextStack.Vocabulary/DistractorGenerator.cs @@ -49,6 +49,7 @@ private static (string System, string User) BuildPrompt( parts.Add("- Similar difficulty level"); parts.Add("- NOT synonyms"); parts.Add("- Could plausibly confuse a learner"); + parts.Add("- SINGLE WORD ONLY — no spaces, no multi-word phrases (use \"linearizability\" not \"strong consistency\"; \"sharding\" not \"data partitioning\"). Hyphens are fine."); parts.Add(""); parts.Add("Task 2 - Hint: Write ONE short sentence (under 15 words) describing what this word means."); parts.Add($"Do NOT use the word \"{word}\" or direct synonyms in the hint."); diff --git a/docker-compose.yml b/docker-compose.yml index 7abbaf79..51d54bb1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -145,7 +145,7 @@ services: - "127.0.0.1:81:81" # Only localhost - not exposed to internet restart: always healthcheck: - test: ["CMD-SHELL", "wget -qO- http://localhost:81/ > /dev/null || exit 1"] + test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:81/ > /dev/null || exit 1"] interval: 30s timeout: 5s retries: 3