The PromptLoop inference function takes a set of examples and generates the correct text output with AI models in Google Sheets.
The parameters, (inputs, outputs, target cell etc.) work just like any other spreadsheet formula. You can think of PromptLoop like a LOOKUP formula - but instead of matching rows it infers the relationship in your input/output table and returns the result.
This simple formula takes a set or column of Inputs and a set or column of Outputs and returns the output for an new input or Target.
=PROMPTLOOP( inputRange, outputRange, target)
If you have multiple columns if input information and want to include headers to give the model more context, you can select the header row and add (1) to the end of your function call
=PROMPTLOOP( inputRange, outputRange, target, [headers?])
=PROMPTLOOP($A$1:$D$11,$E$2:$E$11,A12:D12, 1) Notice the inputs have an extra row - only include headers for the input range
This is optional an not needed for single-column inputs in most cases.
The Inference function learns what the correct output is based on the examples you provide. This allows for a huge range of text transformation, translation, and comprehension like writing or sumamries.
The function uses language models and is therefore geared at text, instead of numbers and quantitative actions where normal spreadsheet formulas do well SUM, AVERAGE, etc.
Select example rows + Select target cell. The examples give the model instructions so the better the examples the more accurate the model outputs will be.
The target is the cell text you want to send to the model.
Set absolute reference like:
You can use the key F4 to do this quickly.
If you are interested in learning more or have questions about how your team can benefit, get in touch here!
You must activate PromptLoop in any sheet you want to use the formula in. Navigate to the Add-on menu and click "Activate" to do so. More on enabling PromptLoop
This error message indicates that the inputs and/or output examples are not correctly formatted. For Promptloop to work - you must provide pairs of inputs and outputs, usually on the same row, as examples. You can include multiple columns combined as one input or output row, but they may not contain undefined values, blank cells, or #ERRORS!.
This message occurs when the Google Account being used is not linked to an active Promptloop account. It also may indicate that payment method is needed, even if free credits still remain on the account.
This error message indicates that PromptLoop is not Activated in this sheet - Navigate to the Add-on menu and activate or Re-activate to proceed. You may have to reload the sheet and delete / re-enter the formula if this persists.
Provide a set of input and output examples for the model
Reach out to [email protected] and we will be happy to guide you through detailed set up and get started with a few examples so you can start using prompt loop for your specific needs. Or just say hello!
|Requests per minute