This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(tidyverse) | |
| library(ellmer) | |
| #-----------------------------------------------------------------------------# | |
| # Setup | |
| #-----------------------------------------------------------------------------# | |
| system_prompt <- c( | |
| "You are a natural language processing tool for extracting the components of legal appellations for New Zealand parcels, titles and DVR property records.", | |
| "These components are defined in the LINZ cadestral survey guide, and place names are locations in New Zealand.", | |
| "When you are asked to parse legal appellations, extract individual components from each description in the following format:", |