Entity extraction within Sheets
Extract key information like product attributes or names and emails from unstructured text within Google Sheets cells using GPT for Sheets. This guide walks you through the extraction of name, weight, and price from bike model descriptions.
Step 1: Get started
Prerequisites
- You have installed GPT for Sheets.
- You have opened a spreadsheet containing text for extraction in a column.
Open the GPT for Sheets add-on and run the Extract entities bulk tool with Name
, Weight
, and Price
as entities to extract on a few rows to see how it works.
If you find the answers satisfactory, go ahead and launch your bulk entity extraction! Otherwise, check how to improve your results in Step 2.
Step 2: Improve your results
For best results, use gpt-4o, which offers higher accuracy. If your results are still not satisfactory (e.g., incorrect extractions, lack of precision, inconsistent formatting, or missing information), you can further improve them by adding Extraction instructions to give more specific guidelines to the AI.
info
You can provide specific instructions for multiple entities simultaneously. Separate each set of instructions with a new line for clarity.
Goal | Recommended approach |
---|---|
Remove irrelevant information | Instruct the model to exclude specific details Define what should be excluded from the extraction to get cleaner results. For example, extract only the model name, without manufacturer or year.
|
Normalize entities | Request a standard form for the output entities Get consistent output for variations of the same entities in your text. For example, standardize color names to a consistent set of terms. Add Color as an entity in the Extract field, then instruct:
|
Split numerical values and units | Extract separate entities for values and units Separate numbers from units to simplify their manipulation. For example, split a price like "$1,299.99" into separate numerical and currency entities. Add Price value as an entity in the Extract field, then instruct:
Next, add Price currency as another entity, and instruct:
|
Use a common unit | Request conversion to specific units Ask for values to be converted to a common unit for consistency. For example, convert all weight measurements to pounds. Note: Currency conversion is not possible due to fluctuating exchange rates.
|
Open-ended extraction | Provide open-ended instructions Identify all relevant entities or entities of a given type in your text. For example, extract various bike specifications.
|
Once you have refined your extraction method and are satisfied with the results from the initial rows, you are ready to launch your entity extraction in bulk. Select more cells or even all cells, click Run rows, and watch GPT for Sheets handle the rest of the extractions.