A prompt is an initial text or input provided by a user to instruct the [[large language model]]'s response. It serves as a way to communicate a specific task, question, or context to the model, guiding its generation of a coherent and relevant output. The prompt essentially sets the tone and subject for the model's response, allowing users to interact with the model in a more controlled manner. For example, when using a language model to write a short story, the user might provide a prompt like "Write a story about a detective solving a mysterious case." This prompt gives the model a clear direction and context for generating a story that aligns with the specified theme. [[transformer output layer]] < [[Hands-on LLMs]]/[[2 LLMs and Transformers]] > [[hallucination]]