Write the best prompt that I will pass to GPT-4 as entity extraction. The prompt will…
- User
Write the best prompt that I will pass to GPT-4 as entity extraction. The prompt will have extraction schema and the input message. Think hard to solve it
- Assistant
Certainly! To ensure effective entity extraction, it's important to provide GPT-4 with a clear and concise prompt that outlines the schema (the types of entities to be extracted) and provides a well-constructed input message that contains the entities. When developing the prompt, include examples if necessary to guide the AI on what is expected. Here's how you could structure the prompt:
Prompt for GPT-4 Entity Extraction:
Extraction Schema:
- Person Names
- Organizations
- Dates
- Locations
- Monetary Values
- Percentages
Instructions for GPT-4: Please extract entities from the following message according to the categories listed in the extraction schema. For each entity extracted, list it alongside its corresponding category.