โŒ›Loop

Intro

LLMs have the ability to loop based on a modifier or condition to determine the action.

How it work ?

LLMs can operate step by step. The number of loops can be defined by a specific number or can loop through the entire data.

food list = []

Add food name into food list 10 times.

A software developer could consider this ability similar to the Loop functionality in other programming languages.

Prompt example

Iterative add name of food
Iterative loop with condition
Iterative loop and stop (While loop)
Iterative loop and stop (For loop)

Last updated