Stop Sequence
Quick definition
A text or token pattern used to end a model's generation when encountered.
A text or token pattern used to end a model's generation when encountered.
Stop sequences help delimit responses but can truncate text if the pattern appears unexpectedly.
Example: An API stops generating when it reaches a designated section marker.
Common use cases: API response formatting and output control.
Examples
- An API stops generating when it reaches a designated section marker.
Use cases
- API response formatting and output control.
Frequently asked questions
What is Stop Sequence?
A text or token pattern used to end a model's generation when encountered.
What should I know about Stop Sequence?
Stop sequences help delimit responses but can truncate text if the pattern appears unexpectedly.