Pythagora-io / gpt-pilot

The first real AI developer
Other
29.97k stars 2.98k forks source link

Add route files content to prompt for user instructions. #1024

Closed gperetin closed 3 months ago

gperetin commented 3 months ago

This fixes the issue where Pythagora would provide incorrect links in user testing instructions, because that's what we got from the LLM. LLM couldn't have know the correct routes because we never told it what those were, so this PR addressed that by adding the contents of the routes files into the prompt for user testing instructions.

Tested by loading 2 user databases that had the issue with incorrect links in user testing instructions, and confirming that the correct links are generated.

Went with the gpt-4o here as it was significantly more accurate on selecting files from a list.