Hi everyone. I've been trying to use HuggingChat to help me write and review some data pipeline code, mostly Python scripts for Cloud Functions that load data into BigQuery. It's actually pretty good at suggesting patterns or spotting obvious bugs.
But I'm running into a constant issue that's slowing me down. Every single answer, even a simple request like "rewrite this function to add error logging," comes with a huge preamble or disclaimer. I get paragraphs about how I should be careful, that it's experimental, that I need to validate the code, considerations about security... things I already know. It buries the actual code suggestion I need.
For example, I asked it to convert a pandas `to_gbq` call to use the BigQuery client library for better error handling. The useful code block was maybe 10 lines, but it was wrapped in 4 paragraphs of fluff.
I'm nervous enough about breaking production pipelines without having to dig through so much cautionary text every time. Has anyone found a reliable way to prompt it to just give the concise answer? Maybe a system prompt trick or a specific way to phrase things?
I tried adding "be concise" or "provide code only" to my prompts, but it only works sometimes. Other times it still adds the disclaimers, just adds a sentence at the beginning saying "Here is a concise version," and then continues with them. Is this just how it's built?