News for hackers. Stuff that matters.
Re:Ask HN: As people in “tech”, are we inside an AI echo cha... by scarface_74 on Monday July 03, 2023 @10:34AM (#36573474)
I use ChatGPT to help me quickly write simple AWS SDK based helper scripts.

I’ve also recently been involved in designing a DevOps /Docker deployment pipeline for a customer. They use Java and I haven’t used Java in decades.

Before I would have just done my POC using a Python or Node container and rely on the fact that they knew Java well enough to get the concepts. But I used Java and started the chain of questions “answer all question based on talking to someone who doesn’t know Java. Explain everything step by step.”

In both cases, ChatGPT will usually get me 99% there. But I have to keep trying things and giving it the error messages and iterating.

Of course there is the hallucination issue.

On the other hand, I’ve done a lot of work professionally with old school chat it’s integrated with web pages and call centers with the only intelligent component is that we could parse out parts of speech (nouns, verbs, adjectives, etc) and only search on those.

I would never recommend putting an LLM style chatbot in front of a customer. When I work with customers - especially in the government - the questions and answers are heavily vetted before being put in production.

They would never take a chance that either the customer could jailbreak the chatbot and have it say something and trigger a political argument about “bias” or that it would give incorrect information about a government benefit.

Re:Ask HN: As people in “tech”, are we inside an AI echo cha... by Roark66 on Monday July 03, 2023 @11:08AM (#36573978)
Watch out, I'm doing devops too and I've caught chatgpt on such obviously stupid behaviors it hurts to even think about it. It's not just hallucinations problem (edge cases or doing unusual stuff).

It seems to give answers that are 100% incorrect and when told so says "of course you're right, here is the right answer". The only stuff I'd use it for is if I already know exactly how to write the script and I'm just using it to type it for me quickly because I don't remember if aws_instance is the correct spelling or aws-instance in terraform...

Re:Ask HN: As people in “tech”, are we inside an AI echo cha... by scarface_74 on Monday July 03, 2023 @11:26AM (#36574266)
Exactly.

But with code, it’s easy enough to prove correctness just by running it.

That being said, the one bug I find consistently is that with the AWS APIs, all list type methods pagínate and you have to account for that. Python/boto3 have built in paginators.

This an insidious bug because things will work correctly in a dev account with only few resources. But will fail in hard to debug ways in production.

What’s even worse is that ChatGPT “knows” the pattern and will correct itself once you say something like

“This won’t work with more than 50 roles/ec2 instances, etc”

Re:Ask HN: As people in “tech”, are we inside an AI echo cha... by mullingitover on Monday July 03, 2023 @12:52PM (#36575632)
My trick is to get second and third opinions - sometimes ChatGPT gets it wrong, but bard is right, or 3.5 is right when 4 is wrong. So I just copy the same question to all available chatbots and compare. Asking them to provide sources for the answers is also a good way to keep them honest.
Re:Ask HN: As people in “tech”, are we inside an AI echo cha... by scarface_74 on Monday July 03, 2023 @01:09PM (#36575906)
With code in particular the only thing I use it for, the source of truth is running the code and testing for corner cases. I usually know what the right answer is. It can just get to it faster.

I may not know always know the correct API or CloudFormation/CDK/Terraform syntax. But if it gets it wrong, I can read the docs and correct it.

Providing sources doesn’t usually help. ChatGPT consistently makes up sources.

Re:Ask HN: As people in “tech”, are we inside an AI echo cha... by mullingitover on Monday July 03, 2023 @01:22PM (#36576101)
Vanilla ChatGPT can hallucinate sources, but with the web browsing plugin in Plus it'll produce real links. Bard and Bing AI browse and produce accurate links right out of the box.

Certainly with code the proof is in the pudding, but most recently my problem was "I need to create AWS monitors in Datadog to alert when a region is down." ChatGPT was hopeless but bard was able to point me to the exact doc explaining how to set it up.