-
Notifications
You must be signed in to change notification settings - Fork 6
🚨 Issue: Incomplete README Generation Due to Single-Pass AI Request #101
Copy link
Copy link
Open
Labels
area: ai-logicRelated to Gemini prompts, tokens, or model responses.Related to Gemini prompts, tokens, or model responses.area: backendRelated to Next.js API routes or Octokit/GitHub API.Related to Next.js API routes or Octokit/GitHub API.area: frontendChanges specifically for the UI/Tailwind components.Changes specifically for the UI/Tailwind components.bugSomething isn't workingSomething isn't workingci/cdAutomated workflows for building, testing, and deploying code.Automated workflows for building, testing, and deploying code.documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededpriority: highMust be fixed or built ASAP. Blocks other work.Must be fixed or built ASAP. Blocks other work.typescriptType definition fixes, interfaces, or TS configuration.Type definition fixes, interfaces, or TS configuration.
Metadata
Metadata
Assignees
Labels
area: ai-logicRelated to Gemini prompts, tokens, or model responses.Related to Gemini prompts, tokens, or model responses.area: backendRelated to Next.js API routes or Octokit/GitHub API.Related to Next.js API routes or Octokit/GitHub API.area: frontendChanges specifically for the UI/Tailwind components.Changes specifically for the UI/Tailwind components.bugSomething isn't workingSomething isn't workingci/cdAutomated workflows for building, testing, and deploying code.Automated workflows for building, testing, and deploying code.documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededpriority: highMust be fixed or built ASAP. Blocks other work.Must be fixed or built ASAP. Blocks other work.typescriptType definition fixes, interfaces, or TS configuration.Type definition fixes, interfaces, or TS configuration.
🚨 Issue: Incomplete README Generation Due to Single-Pass AI Request
📌 Summary
The current README generation pipeline uses a single, large AI request to generate the entire document. This often results in truncated or incomplete outputs, especially for repositories with richer metadata or larger inferred structures.
README generation is handled in one API call
Prompt includes:
This leads to:
🔍 Observed Behavior
🎯 Expected Behavior
Complete, well-structured README generated consistently
All required sections present:
💡 Proposed Solution (Recommended)
Refactor the generation pipeline to a multi-step / section-based approach:
Step 1: Structure Planning
Generate a list of README sections:
Step 2: Section-wise Generation
Generate each section independently using smaller prompts:
Step 3: Final Assembly
Combine all generated sections into a single Markdown output.
🚀 Benefits
🛠️ Additional Improvements (Optional)
📎 Impact
This change will significantly improve:
🙋 Notes
This is a foundational improvement and aligns the project with production-grade AI generation patterns.