nat / natbot

Drive a browser with GPT-3
MIT License
1.89k stars 282 forks source link

Adding Entities recognition using haptik (preprocess suggestion) #4

Open munzzz5 opened 1 year ago

munzzz5 commented 1 year ago

Hello, Im amazed at this implementation of GPT-3. I would love to add an extra later to theprompt by preprocessing the text and adding entities with metalabel while passing prompt to GPT-3

An example would be: Buy [Brand] Adidas shoes from Amazon [company] India [location] under $200 [numeric]

We could achieve this using the hello haptik repository (link: https://github.com/hellohaptik/chatbot_ner)

Im not completely sure if this will help the output. What do you think?

Kudos!

lee101 commented 1 year ago

i'm just guessing but i personally dont think annotating using entity types would help in terms of gpt-3 understanding, because it wasn't trained on this NER style, unless you do specific things with the detected entities unrelated to gpt-3 e.g. handle the location in a specific way via google map search and pull out the location for it etc.

jordn commented 1 year ago

Yeah I wouldn't expect this to help either. The NER model will almost certainly be worse at understanding the words than GPT-3, so it would only add some noise and extra tokens.