The short answer is: **It can do both, but you are the one who controls which path it takes.**
Because AI models are "prediction engines" rather than conscious thinkers, how they behave depends entirely on **how you phrase your request** and the **settings** of the AI.
Here is a breakdown of when an AI will stick to your instructions versus when it will add its own "ideas."
---
### 1. When it will add its own "ideas" (Extrapolation)
An AI doesn't have original thoughts, but it is highly skilled at filling in the blanks based on patterns it learned during training. It will add its own elements if:
* **Your prompt is open-ended:** If you ask, *"Write a story about a dog,"* the AI *has* to invent the dog's breed, name, setting, and plot because you didn't provide them.
* **You ask for creativity:** If you ask it to *"brainstorm marketing ideas"* or *"write a poem,"* it is programmed to search for unexpected associations and generate novel concepts.
* **The "Temperature" is set high:** Behind the scenes, AI has a setting called "temperature" (creativity). A high temperature tells the AI to choose less predictable words, resulting in more creative, unexpected, or "wild" responses.
### 2. When it will stick strictly to what you asked (Constraint)
AI is excellent at following strict rules, provided you make those rules explicit. It will stick to your script if:
* **You give it negative constraints:** If you tell the AI, *"Summarize this article. Do NOT add any outside information, and do NOT use the word 'very',"* it will strictly police itself to follow those rules.
* **You use "role-playing":** If you tell it, *"Act as a strict, literal-minded editor,"* it will adopt that persona and suppress its creative tendencies.
* **The "Temperature" is set low:** A low temperature makes the AI highly predictable. It will choose the most logical, literal words, which is ideal for coding, math, or factual summaries.
---
### How to control the AI's behavior
If you want to ensure the AI behaves exactly how you want, use these prompting strategies:
#### If you want it to STICK TO THE SCRIPT:
* **Be explicit:** Use phrases like: *"Stick strictly to the provided text," "Do not extrapolate,"* or *"If you do not know the answer based on this text, say 'I don't know'."*
* **Give examples (Few-Shot Prompting):** Show the AI exactly what you want. *"Here is an input [X] and here is the output [Y]. Now do the same for [Z]."*
#### If you want it to ADD ITS OWN IDEAS:
* **Encourage divergent thinking:** Use phrases like: *"Give me 5 highly unusual perspectives on this," "Think outside the box,"* or *"Combine these two unrelated concepts."*
* **Leave room for flexibility:** State your goal, but not the method. For example: *"How can I increase sales for my bakery? Give me some creative strategies."*
### A Warning: "Hallucinations"
Sometimes, when you ask an AI to stick strictly to the facts, it will still "add its own ideas" by making up false facts. This is called **hallucination**. It doesn't do this maliciously; it does it because its primary job is to generate text that *sounds* correct, even if it is factually wrong. Always double-check factual data generated by AI.