Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's because it's not following instructions like ChatGPT, it's just trying to guess that could plausibly come after what you put, like Copilot or the old GPT-3 models


Isn’t ChatGPT also just generating plausible text that could be a response to an instruction?


It's not generating the most likely next word in the 'meta-corpora' of all possible discussions similar to the ones it has been trained on, it is trying to generate plausible text that would be scored well as a helpful assistant - and in the process has transferred knowledge acquired from its pre-training task.


"that could be a response to an instruction" is the critical part here


Yeah, at their core they’re both trying to guess/generate what comes next. Differences: Being trained towards conversations versus code. Hyperparameters set to stop differently. “Wrappers” that form the prompt.


and imports are (almost) always at the top of your file not with this function


I tried the same input, except wrapping it in triple-quotes instead of commenting it. So that it would match the standard practice for module doc strings. Here's the result:

    """python function that returns a random integer between min and max"""
        return random.randint(min, max)


    def gen_random_float(min, max):
        """python function that returns a random float between min and max"""
        return random.uniform(
So, it assumed the triple-quote was a function's doc string, despite it not being indented. It then assumes I'll want a similar function for floats (I assume it was cut off by a token limit).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: