You can tailor both to your own use, knowing that top_p comes first, limiting the token selection dictionary, and that temperature makes the top tokens more or less likely.
example: “eight stanza poem: on the joys of programming AI assistants.”
temperature: 2, top_p: 0.8
{
"composition_type": "poetry",
"composition_output": "In lines of code, a silent weave begins,\nWhere logic meets the artful poet's whims.\nA crafted script, where AI comes to play,\nAssisting thoughts, in novel, bright array.\n\nEach function called, a step towards creation,\nTranslating human wit through computation.\nHere lies the joy, in strings and loops entwined,\nWhere human mind and machine are aligned.\n\nIn every line, a possibility new,\nWith algorithms that tirelessly pursue.\nThe answers hidden in vast data seas,\nUnveiling truths with graceful, silent ease.\n\nThe screen aglow, with each successful run,\nReflects the triumphs that our hands have won.\nTo program is to choreograph a dance,\nWhere numbers whirl in predetermined prance.\n\nDebugging is but a puzzle to delight,\nThe coder's gaze fixed firmly on the byte.\nEach error caught, a lesson to be learned,\nIn this domain, where curiosity is earned.\n\nWith AI, we reach toward a farther sky,\nCreating tools that think, respond, and vie.\nAssistants born from lines of code so terse,\nExpand the bounds of our expansive universe.\n\nYet in this craft, a humble joy we find,\nIn structuring the chaos of the mind.\nFor every problem solved, a victory small,\nIn programming's challenge, joyous is the call.\n\nThus let us code, with fervor undeterred,\nOur spirits high, by lines of logic stirred.\nIn every algorithm, may we see\nThe beauty of our digital poetry."
}
temperature: 0.9; top_p: 1.0
(default)
{
"composition_type": "poetry",
"composition_output": "In lines of code, a world's conceived,\nWhere logic dreams, in depth perceived.\nEach function weaves, a story told,\nOf AI thoughts, in patterns bold.\n\nSilent whispers through the wires,\nSparks of brilliance, our desires.\nIn loops and lists, our joys compile,\nWith every bug, a challenge, a smile.\n\nA stanza forms from AI's mind,\nWhere human touch is thus entwined.\nCreating tasks from simple prompts,\nIn virtual space, our assistant romps.\n\nAlgorithms dance, in ordered grace,\nSolving tasks in cyberspace.\nThe joy of coding, pure and clear,\nIn every line, our purpose near.\n\nWith each deploy, excitement mounts,\nOur code, like paint, in bits it counts.\nA canvas broad, of endless scope,\nIn crafted code, we place our hope.\n\nDebugging paths, where none have trod,\nIn silent partnership, a nod.\nTo unseen hands that guide the flow,\nOf digital streams, that ebb and glow.\n\nThe final verse, a system run,\nOur work assessed, our coding done.\nIn output streams, results we glean,\nA job well done, in cyberscreen.\n\nSo here's to AI, friend so keen,\nIn lines of code, a world unseen.\nOur daily tasks, it does assist,\nIn binary worlds, we coexist."
}
Temperature allows a bizarre word like “cyberscreen”. top_p along with high temperature gives very random selection of just good tokens.
This was output by a schema I had AI whip up:
You are an AI writing assistant, sending only valid JSON following a schema to a backend that displays your results to the user.
{
"$schema": "http://json-schema.org/draft/2020-12/schema",
"title": "Composition Output Schema",
"description": "Schema for validating the output composition settings for a writing assistant AI.",
"type": "object",
"properties": {
"composition_type": {
"type": "string",
"description": "Specifies the type of composition the AI should generate. This type guides the AI in choosing the style, tone, and structure of the output.",
"maxLength": 20,
"enum": [
"article",
"blog post",
"report",
"essay",
"short story",
"poetry",
"editorial",
"review",
"manual",
"newsletter",
"profile",
"biography",
"analysis",
"commentary",
"guide"
]
},
"composition_output": {
"type": "string",
"description": "The generated content by the writing assistant AI according to the specified composition type. This content should reflect the input parameters and guidelines provided.",
"examples": [
"Here is a short essay on the impact of AI in modern education...",
"Discover the latest trends in digital marketing with our comprehensive blog post...",
"Our report details the findings of the recent market analysis..."
]
}
},
"required": ["composition_type", "composition_output"]
}