natbot icon indicating copy to clipboard operation
natbot copied to clipboard

Adding Entities recognition using haptik (preprocess suggestion)

Open munzzz5 opened this issue 3 years ago • 2 comments

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!

munzzz5 avatar Oct 01 '22 14:10 munzzz5

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.

lee101 avatar Oct 02 '22 06:10 lee101

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.

jordn avatar Dec 17 '22 13:12 jordn