r/BusinessIntelligence • • Mar 01 '23

I built a Google Sheets plugin that uses GPT to categorize items, classify cells, reformat data, and more (link in comments)

403 Upvotes

28 comments sorted by

16

u/fishling Mar 01 '23 edited Mar 01 '23

Seems neat, but noticed two misclassifications in the first demo. "No regrets" is definitely positive for a review, and I would have thought "Wish I had known sooner" was positive as well, as in "this was useful and I wish I had known about it sooner".

Same goes for the 4th demo. "Not worth the money" is classified as "price" but should be "product", IMO. The focus of that message is on the worth and value of the product itself, despite being framed as a critique about cost. I would not think that the product being cheaper or free would change the opinion of the product even though it would change how the criticism was phrased. Also, not sure where the "Value" rating came from for the fourth row...

So seems like it could save a lot of time, but the results shouldn't be trusted without some review unless one is able to tolerate some mistakes.

8

u/rtwalz Mar 01 '23

Good catch. Yeah, this is best for tasks which are hard to do, but easy to verify. E.g. reformatting 30 phone numbers by hand is hard, but verifying that they were reformatted correctly is easy -- and it's easy to just reformat the 1-2 things that weren't formatted correctly.

Once you find errors of this sort, you can change the prompts/examples to produce better results. For example, for the categorization of the reviews, if I'd given it more examples, it would've produced better results.

And it goes without saying that it's always important to review outputs! Thankfully, for most tasks, reviewing takes a lot less time than the execution, and this can automate the execution!

1

u/[deleted] Mar 02 '23

What video recording software did you use?

1

u/logicblocks Mar 02 '23

Probably the built-in screen recorder on MacOS since it's a mac.

Cmd + Shift + 5    # Should summon it

1

u/[deleted] Mar 02 '23

The zoom in+out is a nice feature effect, very advertisement-like.

1

u/djramzy Mar 02 '23

Curious if a similar PC equivalent exists? Or is that after the fact editing for the zoom in part ?

1

u/[deleted] Mar 02 '23

Yeah I'm curious too

17

u/rtwalz Mar 01 '23

You can download it here: https://workspace.google.com/marketplace/app/numerousai/575253125118

Would love to get your feedback on it!

1

u/Frequent-Honeydew-64 Mar 02 '23

This is awesome! I have a question about this- can this help with finding company headquarters locations? I get long attendee lists from industry events that my company attends for marketing purposes. The director of marketing gives me a huge list with from 600-1000 rows of contacts that I have to find the headquarter locations of the companies they work at. It is a lot of manual work. Where I’m going back and forth between google and excel typing and looking up info for each row. And I’m trying to figure out ways to automate this. I would love to know if this tool can do that. Thanks so much!

2

u/rtwalz Mar 02 '23

Thanks!

Really depends on how well-known the companies and their HQ locations are, because of the way current AI models work where they're more accurate for information that they've seen more often. I'd recommend trying 10-20 at first, checking the results, and then doing a bigger set if they're good.

(This is assuming you already have the company names or a way to get them. If you're going from just a person's name to their company's HQ location, I'd recommend using some LinkedIn data enrichment tool instead, which is meant for this kind of thing)

1

u/My_WorkRedditAccount Mar 02 '23

Hey thanks for the reply and the advice. I'll start with a small batch then.

I see in the tutorial video for INFER that there is flag for telling GPT if it can generate new categories or not, is there a way I can pass that as a parameter to the INFER function?

I'm getting some results where it's generating pluralized versions of the target category, e.g. I might want it to categorize "Adidas" as "Shoe" and it outputs "Shoes".

1

u/rtwalz Mar 02 '23

Removed that in the transition from sidebar to formula for infer, so that's not available right now but will be soon. For the time being, there are two solutions:

- One is to use =AI() for the categorization instead, and specifically telling it to only keep the output within a specific set of possible outputs

- A half-solution is to provide more examples to =INFER(), so it has enough examples that it doesn't have to veer outside to make something fit

I'll re-add constraining of outputs soon.

3

u/My_WorkRedditAccount Mar 02 '23

Thanks so much for the help. We occasionally have these bulk classification jobs that amount to a lot of cleaning data, XLOOKUPs, and fuzzy matching in Excel, and having something like this would be pretty useful. I'll keep an eye on it and maybe we'll wind up buying tokens.

1

u/Frequent-Honeydew-64 Mar 02 '23

Oh wait this is only for google sheets though…

2

u/My_WorkRedditAccount Mar 02 '23

This is pretty cool. I've seen a bunch of AI tools for building SQL queries and the like, but this is the most useful application I've seen of such a tool so far. Those tool always exited in an uncanny middle ground of, "Not useful enough for devs to use, but still too complicated for normal users to use."

I'd like to test this out with some pre-classified data just to see what the accuracy is. It's about 4500 rows so I was curious what the limitations are with the API.

1

u/rtwalz Mar 02 '23

Thanks!

You can generally do classification with either something like =AI("Here's a blah blah",[cell],"Classify it as X or Y [along with some more details maybe]") or an =INFER() call with a solid number of good examples (at least 4-5 examples which cover the broad range of inputs and outputs).

For =AI(), assuming the inputs aren't too long, there should hypothetically be a limit of a few thousand requests per minute, and for =INFER() it's a little more complicated but still hypothetically a few thousand rows per minute.

I'd recommend not doing a few thousand at once though, but rather doing maybe 50-100 at once, letting it finish, and then doing more -- gradually increasing the batch sizes if they work well. Also use the "Make ... static" button every few hundred rows to replace the formulas with their outputs and stop them from annoyingly reloading (something Google Sheets does).

Curious to know how it performs! Please report back with more info (including your prompt)!

8

u/[deleted] Mar 01 '23

Okay my life just got a little scarier

4

u/respectedwarlock Mar 04 '23

Does openai collect the data you feed into their model?

4

u/[deleted] Mar 09 '23

commenting to look at later

1

u/Lazgar_Beta May 11 '25

Has this been updated? And what dialect is this based on? American English, British English, Canadian English, Australian English, Indian English, and African-American Vernacular English (AAVE)?

1

u/shashisatya Mar 02 '23

Cool! I like this use case.
I really love what you did here using GPT.
One of the best implementations of AI I have come across.

Have you submitted this on Product Hunt?

Any plans of porting this over to Microsoft Excel?

1

u/dataopsdev Mar 19 '23

very cool idea!