Text Generation Parameters

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Using Parameters for Test Generation

Parameters allow you to adjust how the text is generated in various ways. The main parameters that are available include:

Demystifying Top-K, Top-P and Temperature

Imagine you’re browsing an online store with hundreds of items. Top-K filtering narrows your choices to, say, the top 5 highest-rated products where Top-K equals 5.  This ensures you focus on the better options without being overwhelmed.

See forum comments
Download course materials from Github
Previous: Demo: Text Generation with Gemini API Next: Demo: Using Parameters