Enhancement: Implement Placeholder Instructions to Prevent LLM Hallucination

Problem Statement

Piper currently hallucinates specific details when creating GitHub issues from minimal context. This leads to:

Example from production:

Proposed Solution

Implement placeholder instructions in the GitHub content generator prompt to explicitly mark uncertain information:

Placeholder Instructions

IMPORTANT: Always include explicit placeholders in brackets for:

These should be clearly visible and specific about what’s needed.

The human reviewing Piper’s content may choose to:

Implementation Details

  1. Update services/integrations/github/content_generator.py prompt
  2. Add placeholder pattern to LLM instructions
  3. Test with minimal context scenarios

Expected Outcome

Instead of:

Error message: "An unexpected error occurred. Please try again later."
Observed on Chrome 89, Firefox 86, Safari 14

Generate:

Error message: [SPECIFIC EXAMPLE NEEDED: exact error message displayed]
Observed on [FACT CHECK: browser versions and environments tested]

Business Value