Using LLMs to Extract Data from Text

One application of generative AI tools is to extract information from plain text. This example code shows using python, AWS, and Anthropic models to classify elements of crime in police narratives.