max_new_tokens in text-generation pipeline limits the length of the generated answer
temperature in text-generation pipeline parameter controls the randomness of the generated text