#Oh nice we should connect

23 messages · Page 1 of 1 (latest)

flint raven
#

Threading this to be kind to the channel. Reading up now 👀

late wolf
#

Yes! I’m use to slack

#

This would trigger a similar service but hyper focused for example a credit app which is really long!

flint raven
#

\o/ cheers then, this is a great prompt and you've clearly got your head in the right place with this so far. I have not seen the approach of including the message contents in the JSON before. My only concern there would be that it may cause GPT to hallucinate.

Adding a little bit of a guard rail can help prevent this:

Please analyze the following customer message and identify if the contents contain specific customer information that can help us populate the MESSAGE ANALYSIS REPORT for [Customer First Name] [Customer Last Name].

Report Requirements: Please respond using the exact same JSON format as the MESSAGE_ANALYSIS_REPORT so our server can reliably parse it. Do not add any additional insight or comments. Use ONLY the contents of the message to complete the report. Assume only information in the message content is valid.

{
  "MESSAGE_ANALYSIS_REPORT": {
    "Vehicle_Updating": {
      "[Vehicle_1_Year_Make_Model_Trim]": "Y_or_N",
      "[Vehicle_2_Year_Make_Model_Trim]": "Y_or_N"
    },
    "Vehicle_of_Interest": {
      "Active_Deals": {
        "Deal_1": "[Vehicle_1_Year_Make_Model_Trim]",
        "Deal_2": "[Vehicle_2_Year_Make_Model_Trim]"
      },
      "Relevance": "Y_or_N"
    },
    "Trade_Ins": "Y_or_N",
    "Payment_Method": "Y_or_N",
    "Credit_Application": "Y_or_N",
    "Documents": {
      "Drivers_License": "Y_or_N",
      "Auto_Insurance": "Y_or_N",
      "Proof_of_Residence": "Y_or_N",
      "Proof_of_Income": "Y_or_N",
      "Reference": "Y_or_N"
    }
  }
}
### Message for analysis
{
  "MESSAGE_CONTENTS_FOR_ANALYSIS": {
    "type": "[EMAIL_or_SMS]",
    "role": "CUSTOMER",
    "actor_name": "[Customer First Name] [Customer Last Name]",
    "time": "[Time]",
    "date": "[Date]",
    "subject": "[Subject]",
    "body": "[Customer_Message]"
  }
}

If using the Chat endpoint instead of Completions, I would split the ### Message for analysis section out of the system instructions and instead place it as the first user message, allowing the assistant to respond to it.

#

tl;dr on the above is that it helps loads to just add some sort of natural signifier of where the output stops and where the input starts.

#

You might be able to simplify a bunch of the prompt as well, but I don't want to just monologue at you or tell you how you should best build it.
Happy to answer any questions you have though if I can!

late wolf
#

Oh ya that’s a great idea to split it. Is that the main lever that would help it not hallucinate?no please would love to hear your feedback! I’m entertaining a toddler while trying to do this 😂

#

Ya I’d love make it shorter. A lot of this is informed by our current API. btw what company do you work for?

flint raven
#

I am not sure there's any de-facto resource out there on it but "anti-hallucination techniques for LLMs" on a search will get you far.

flint raven
#

I miss it tbh, even though car dealers are a PITA to deal with sometimes.

#

(and manufacturers...)

#

Who are you with if you don't mind sharing?

late wolf
#

Ya the industry has been super neglected by tech which is fun for me.

#

I work at space.auto

flint raven
#

You got that right. There's so much demand for development in that space from many angles.

late wolf
#

I know all those companies well- where do you work I’m interested! Btw I’m hiring this month 😬

flint raven
#

Right now I'm on a short contract with SambaSafety 🙂 doing driver risk assessment and analysis for insurance purposes, safety monitoring and that kind of thing.

#

Hiring eh, need any senior engineers / architects?

late wolf
#

I do!

flint raven
#

Well shoot, let me hit you up in DMs real quick!