3 ms·
Any time you ask ChatGPT a technical question on something you're not familiar with it should be three parts: - What are the considerations? - Implement it wi
by BoorishBears 3y ago
Any time you ask ChatGPT a technical question on something you're not familiar with it should be three parts:
- What are the considerations?
- Implement it with the considerations
- Did we forget anything?
It understands the need for a proxy from step 1:
https://chat.openai.com/share/7ca37130-a771-457c-8742-a5f941973fb8 https://chat.openai.com/share/7ca37130-a771-457c-8742-a5f941...
- re5i5tor 3y agoYes! Excellent approach, capturing.
- re5i5tor 3y agoI do short quote-posts on my blog and wrote this one up.
- scarface_74 3y agoThat technique didn’t work when I asked it to create a Python script to return all IAM roles with a certain set of policies attached. It still missed using a paginator to handle the list_roles call returning more than 50 roles. Once I pointed it out, it did add pagination support.
- BoorishBears 3y agoI try not to cheat and hint at specific issues (since that relies on prior knowledge) I'd be surprised if even after the last prompt it wouldn't notice that. Saying "Did we miss anything" leaves it open it to re-evaluate both the implementation and the original considerations Edit: There's some non-determinism involved, but GPT-4 caught the pagination from planning stage here: https://chat.openai.com/share/3c356d4f-15d4-4f6e-bd29-af6a0b0095fd https://chat.openai.com/share/3c356d4f-15d4-4f6e-bd29-af6a0b...
- scarface_74 3y agoFunny enough, even in my original question, it put pagination as a consideration. But it still didn’t include it.