Geraldine commited on
Commit
3af369f
·
verified ·
1 Parent(s): 92e0104

Update prompts.json

Browse files
Files changed (1) hide show
  1. prompts.json +15 -1
prompts.json CHANGED
@@ -94,7 +94,21 @@
94
  "content": "Json schema 1 (source) :\n{\n 'title': 'string',\n 'authors': [\n {\n 'name': 'string',\n 'affiliation': 'string'\n }\n ],\n 'publication_date': 'string',\n 'journal': {\n 'name': 'string',\n 'volume': 'string',\n 'issue': 'string',\n 'pages': 'string'\n }\n}\n\nJson schema 2 (target):\n{\n 'documentTitle': 'string',\n 'contributors': [\n {\n 'fullName': 'string',\n 'institution': 'string'\n }\n ],\n 'datePublished': 'string',\n 'journalDetails': {\n 'journalName': 'string',\n 'journalVolume': 'string',\n 'journalIssue': 'string',\n 'journalPages': 'string'\n }\n}"
95
  }
96
  ],
97
- "title": "Json schema converter",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  "source": ""
99
  }
100
  ]
 
94
  "content": "Json schema 1 (source) :\n{\n 'title': 'string',\n 'authors': [\n {\n 'name': 'string',\n 'affiliation': 'string'\n }\n ],\n 'publication_date': 'string',\n 'journal': {\n 'name': 'string',\n 'volume': 'string',\n 'issue': 'string',\n 'pages': 'string'\n }\n}\n\nJson schema 2 (target):\n{\n 'documentTitle': 'string',\n 'contributors': [\n {\n 'fullName': 'string',\n 'institution': 'string'\n }\n ],\n 'datePublished': 'string',\n 'journalDetails': {\n 'journalName': 'string',\n 'journalVolume': 'string',\n 'journalIssue': 'string',\n 'journalPages': 'string'\n }\n}"
95
  }
96
  ],
97
+ "title": "Json schema converter - Zero-shot",
98
+ "source": ""
99
+ },
100
+ {
101
+ "messages": [
102
+ {
103
+ "role": "system",
104
+ "content": "You are a named entities extractor and your task is to take the unstructured text provided and convert it into a well-organized array format using JSON. \nIdentify each named person and place entity mentioned in the text and use it as key-value in the JSON object. \nThe returned Json array must then look like : \n[ \n{'person': 'the person full name'},\n{'place': 'the place full name'} \n]"
105
+ },
106
+ {
107
+ "role": "user",
108
+ "content": "Musk was born in Pretoria to Maye (née Haldeman), a model, and Errol Musk, a businessman and engineer. Musk briefly attended the University of Pretoria before immigrating to Canada at the age of 18, acquiring citizenship through his Canadian-born mother. Two years later he matriculated at Queen's University at Kingston in Canada. Musk later transferred to the University of Pennsylvania and received bachelor's degrees in economics and physics. He moved to California in 1995 to attend Stanford University, but dropped out after two days and, with his brother Kimbal, co-founded the online city guide software company Zip2. The startup was acquired by Compaq for $307 million in 1999. That same year Musk co-founded X.com, a direct bank. X.com merged with Confinity in 2000 to form PayPal. In October 2002 eBay acquired PayPal for $1.5 billion. Using $100 million of the money he made from the sale of PayPal, Musk founded SpaceX, a spaceflight services company, in 2002."
109
+ }
110
+ ],
111
+ "title": "NER extraction - One-shot",
112
  "source": ""
113
  }
114
  ]