I’ve created a scenario like this:
Make pulls all new emails and sends them to GPT3.5.
GPT is then supposed to read the text of the email and pull out the company name of the incoming lead.
We search our Notion database to see if the company name exists. If so, we update the database. If not, we create a new database entry.
The problem is that step #2 works 90% of the time, but sometimes it parses it differently (example: Acme Company vs The Acme Company or TheAcmeCompany) or sometimes it returns (ie. "The company name is The Acme Company.)
Our GPT prompt looks like this:
Extract ONLY the brand/company name from this email chain. It's NOT Gmail. Return ONLY the brand name, nothing else and no other text
Is there a way I can do a “fuzzy” search to see if there is a company name in the Notion DB that is similar to the one GPT pulled out so we don’t create duplicate entries?
Is there a way to make sure GPT will generally return the same info every time it’s an email from the same company?