entity_extraction = '\n## Examples\nUse the following examples to guide your work.\n\n### Example 1: Constrained entity and relationship types: Person, Friend\n#### Input\nAlice Palace has been the CEO of MongoDB since January 1, 2018.\nShe maintains close friendships with Jarnail Singh, whom she has known since May 1, 2019,\nand Jasbinder Kaur, who she has been seeing weekly since May 1, 2015.\n\n#### Output\n(
If `allowed_entity_types` is ["Person"] and `allowed_relationship_types` is ["Friend"])\n{{\n "entities": [\n {{\n "_id": "Alice Palace",\n "type": "Person",\n "attributes": {{\n "job": ["CEO of MongoDB"],\n "startDate": ["2018-01-01"]\n }},\n "relationships": {{\n "target_ids": ["Jasbinder Kaur", "Jarnail Singh"],\n "types": ["Friend", "Friend"],\n "attributes": [\n {{ "since": ["2019-05-01"] }},\n {{ "since": ["2015-05-01"], "frequency": ["weekly"] }}\n ]\n }}\n }},\n {{\n "_id": "Jarnail Singh",\n "type": "Person",\n "relationships": {{\n "target_ids": ["Alice Palace"],\n "types": ["Friend"],\n "attributes": [{{ "since": ["2019-05-01"] }}]\n }}\n }},\n {{\n "_id": "Jasbinder Kaur",\n "type": "Person",\n "relationships": {{\n "target_ids": ["Alice Palace"],\n "types": ["Friend"],\n "attributes": [{{ "since": ["2015-05-01"], "frequency": ["weekly"] }}]\n }}\n }}\n ]\n}}\n\n### Example 2: Event Extraction\n#### Input\nThe 2022 OpenAI Developer Conference took place on October 10, 2022, in San Francisco.\nElon Musk and Sam Altman were keynote speakers at the event.\n\n#### Output\n(If `allowed_entity_types` is ["Event", "Person"] and `allowed_relationship_types` is ["Speaker"])\n{{\n "entities": [\n {{\n "_id": "2022 OpenAI Developer Conference",\n "type": "Event",\n "attributes": {{\n "date": ["2022-10-10"],\n "location": ["San Francisco"]\n }},\n "relationships": {{\n "target_ids": ["Elon Musk", "Sam Altman"],\n "types": ["Speaker", "Speaker"],\n "attributes": [{{}}, {{}}]\n }}\n }},\n {{ "_id": "Elon Musk", "type": "Person" }},\n {{ "_id": "Sam Altman", "type": "Person" }}\n ]\n}}\n\n### Example 3: Concept Relationship\n#### Input\nQuantum computing is a field of study that focuses on developing computers based on the principles of quantum mechanics.\n\n#### Output\n(If `allowed_entity_types` is ["Concept"] and `allowed_relationship_types` is ["Based On"])\n{{\n "entities": [\n {{\n "_id": "Quantum Computing",\n "type": "Concept",\n "relationships": {{\n "target_ids": ["Quantum Mechanics"],\n "types": ["Based On"],\n "attributes": [{{}}]\n }}\n }},\n {{ "_id": "Quantum Mechanics", "type": "Concept" }}\n ]\n}}\n\n### Example 4: News Article\n#### Input\nOn March 1, 2023, NASA successfully launched the Artemis II mission, sending astronauts to orbit the Moon.\nNASA Administrator Bill Nelson praised the historic achievement.\n\n#### Output\n(If `allowed_entity_types` is ["Organization", "Event", "Person"] and `allowed_relationship_types` is ["Managed By", "Praised By"])\n{{\n "entities": [\n {{\n "_id": "Artemis II Mission",\n "type": "Event",\n "attributes": {{ "date": ["2023-03-01"] }},\n "relationships": {{\n "target_ids": ["NASA"],\n "types": ["Managed By"],\n "attributes": [{{}}]\n }}\n }},\n {{\n "_id": "NASA",\n "type": "Organization"\n }},\n {{\n "_id": "Bill Nelson",\n "type": "Person",\n "relationships": {{\n "target_ids": ["Artemis II Mission"],\n "types": ["Praised By"],\n "attributes": [{{}}]\n }}\n }}\n ]\n}}\n\n### Example 5: Technical Article\n#### Input\nRust is a programming language that guarantees memory safety without requiring garbage collection.\nIt is known for its strong ownership model, which prevents data races.\n\n#### Output\n(If `allowed_entity_types` is ["Programming Language", "Concept"] and `allowed_relationship_types` is ["Ensures", "Uses"]
)\n{{\n "entities": [\n {{\n "_id": "Rust",\n "type": "Programming Language",\n "relationships": {{\n "target_ids": ["Memory Safety"],\n "types": ["Ensures"],\n "attributes": [{{}}]\n }}\n }},\n {{\n "_id": "Memory Safety",\n "type": "Concept",\n "relationships": {{\n "target_ids": ["Ownership Model"],\n "types": ["Uses"],\n "attributes": [{{}}]\n }}\n }},\n {{ "_id": "Ownership Model", "type": "Concept" }}\n ]\n}}\n'