What is hallucination in generative AI?
A hallucination is an output that sounds plausible but is unsupported, incorrect, or fabricated. It can occur because language models optimize…
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 1561–1572 of 3610 questions
A hallucination is an output that sounds plausible but is unsupported, incorrect, or fabricated. It can occur because language models optimize…
Temperature adjusts the sharpness of the next-token probability distribution during sampling. Lower values generally make outputs more…
A maximum output-token setting limits how much text a model can generate in a response. If the limit is too small, the response may be…
A model response API accepts input such as messages or a prompt and returns generated content plus metadata. SDKs commonly wrap authentication,…
Streaming sends generated output in small events as it becomes available instead of waiting for the complete response. It can reduce perceived…
Multimodal generative AI can accept or produce more than one modality, such as text, images, audio, or video. The model's supported modalities…
A model is the learned component that generates predictions or content, while an AI application combines a model with prompts, data access, user…
Chain-of-thought prompting encourages a model to work through a problem in steps, but asking for visible reasoning is not a guarantee of…
Decomposition prompting breaks a complex task into smaller sub-tasks, often with explicit intermediate outputs. It can make work easier to…
Role prompting frames the model as a specialist or audience, which can influence tone and emphasis. It does not grant real expertise,…
Delimiters mark boundaries between instructions and variable content, making the prompt easier for the model and maintainers to interpret. They…
Prompt injection is an attempt to manipulate a model through user input or retrieved content so it ignores intended instructions or performs an…