I am exploring the ChatGPT API for my project for extracting entities from the utterances, currently I am using RASA in my project for entity extraction, in Rasa I am able to receive an entity array having entity_name, entity_value, confidence_scrore from the utterance (prompt in chatGPT).
Can anyone help me on how to extract entities list in chatGPT (if possible)
I tried this, I gave it a paragraph and asked chatGPT to extract the entities and their category from the string. Every time I asked it it extracted a different entitites and not the same number. I dont know if I was asking it incorrectly?
Here’s a simple gpt-3.5-turbo prompt that will return the intent and entities from any message as a JSON object. I pass this in as the 1st user message, not the system message:
Here's a JSON object:
{"intent": "<intent>", "entities": [{"type": "<type>", "value": <value>, "startPos": <index>, "endPos": <index>}]}
Identify the intent and entities in users message and return a JSON object.
If I then pass in a User message of I'd like to book a flight from Seattle to Denver for 2 on 3/14/2023. Returning 2 weeks later. I get this as a response from the assistant: