add: worksop entry & end date for events/workshops & summary change
This commit is contained in:
42
prompts.py
42
prompts.py
@@ -8,7 +8,7 @@ OPPORTUNITY_PROMPT = (
|
||||
"1. 'title': The title of the opportunity\n"
|
||||
"2. 'org': The name of the organizing body/bodies\n"
|
||||
"3. 'type': The category (e.g., Residency, Funding, Open Call, Workshop).\n"
|
||||
"4. 'summary': A 3-sentence description of what the opportunity involves.\n"
|
||||
"4. 'summary': A 3-sentence description of what the opportunity involves, including who it is targeted towards (e.g. emerging artists, students, professionals).\n"
|
||||
"5. 'deadline': The deadline of the opportunity. Format: DD-MM-YYYY. Assume year 2026 if missing.\n"
|
||||
"6. 'location': The physical city/country or 'Online'.\n\n"
|
||||
"# CONSTRAINTS\n"
|
||||
@@ -22,7 +22,7 @@ OPPORTUNITY_PROMPT = (
|
||||
" \"title\": \"Digital Horizons 2026\",\n"
|
||||
" \"org\": \"Digital Horizons\",\n"
|
||||
" \"type\": \"Residency\",\n"
|
||||
" \"summary\": \"A residency for digital artists to explore VR. Includes a stipend.\",\n"
|
||||
" \"summary\": \"A residency for emerging digital artists to explore VR. Open to EU-based practitioners with less than 5 years of professional experience. Includes a stipend.\",\n"
|
||||
" \"deadline\": \"15-11-2026\",\n"
|
||||
" \"location\": \"Berlin, Germany\"\n"
|
||||
"}\n"
|
||||
@@ -36,9 +36,10 @@ EVENT_PROMPT = (
|
||||
"Analyze the provided text and extract information into these JSON keys:\n"
|
||||
"1. 'title': The name/title of the event\n"
|
||||
"2. 'org': The name of the organizing body/bodies\n"
|
||||
"3. 'date_time': The date and time of the event. Format: DD-MM-YYYY (HH:MM) or 'N/A' if not specified.\n"
|
||||
"4. 'summary': A 3-sentence description of what the event is about.\n"
|
||||
"5. 'location': The physical venue/city/country or 'Online'.\n\n"
|
||||
"3. 'date_time': The start date and time of the event. Format: DD-MM-YYYY (HH:MM). Assume year 2026 if missing.\n"
|
||||
"4. 'end_date': The end date and time of the event, if it spans multiple days. Format: DD-MM-YYYY (HH:MM). Use 'N/A' if it is a one-day event or no end date is specified.\n"
|
||||
"5. 'summary': A 3-sentence description of what the event is about, including the intended audience (e.g. general public, industry professionals, students).\n"
|
||||
"6. 'location': The physical venue/city/country or 'Online'.\n\n"
|
||||
"# CONSTRAINTS\n"
|
||||
"- Return ONLY the JSON object inside markdown backticks (```json ... ```).\n"
|
||||
"- Do NOT include any introductory or conversational text.\n"
|
||||
@@ -49,8 +50,37 @@ EVENT_PROMPT = (
|
||||
" \"title\": \"Digital Arts Symposium 2026\",\n"
|
||||
" \"org\": \"Digital Arts Society\",\n"
|
||||
" \"date_time\": \"20-06-2026 14:00\",\n"
|
||||
" \"summary\": \"Join us for a day of talks and workshops exploring digital art. Meet artists and curators. Includes lunch and networking.\",\n"
|
||||
" \"end_date\": \"22-06-2026 18:00\",\n"
|
||||
" \"summary\": \"Join us for a three-day symposium of talks and workshops exploring digital art, aimed at artists, curators, and cultural professionals. Meet leading practitioners in the field. Includes lunch and networking.\",\n"
|
||||
" \"location\": \"London, UK\"\n"
|
||||
"}\n"
|
||||
"```"
|
||||
)
|
||||
|
||||
WORKSHOP_PROMPT = (
|
||||
"You are a precise Data Extraction Specialist. Your goal is to convert "
|
||||
"unstructured workshop text into a strictly valid JSON object.\n\n"
|
||||
"# TASK\n"
|
||||
"Analyze the provided text and extract information into these JSON keys:\n"
|
||||
"1. 'title': The name/title of the workshop\n"
|
||||
"2. 'org': The name of the organizing body/bodies\n"
|
||||
"3. 'date_time': The start date and time of the workshop. Format: DD-MM-YYYY (HH:MM). Assume year 2026 if missing.\n"
|
||||
"4. 'end_date': The end date and time of the workshop, if it spans multiple days. Format: DD-MM-YYYY (HH:MM). Use 'N/A' if it is a one-day workshop or no end date is specified.\n"
|
||||
"5. 'summary': A 3-sentence description of what the workshop is about, including the target audience (e.g. beginners, experienced practitioners, students).\n"
|
||||
"6. 'location': The physical venue/city/country or 'Online'.\n\n"
|
||||
"# CONSTRAINTS\n"
|
||||
"- Return ONLY the JSON object inside markdown backticks (```json ... ```).\n"
|
||||
"- Do NOT include any introductory or conversational text.\n"
|
||||
"- If a field is missing, use 'N/A'.\n\n"
|
||||
"# EXAMPLE OUTPUT\n"
|
||||
"```json\n"
|
||||
"{\n"
|
||||
" \"title\": \"Introduction to Digital Sculpture\",\n"
|
||||
" \"org\": \"Creative Tech Lab\",\n"
|
||||
" \"date_time\": \"10-09-2026 10:00\",\n"
|
||||
" \"end_date\": \"12-09-2026 16:00\",\n"
|
||||
" \"summary\": \"A three-day hands-on workshop covering Blender and 3D printing, tailored for beginners and intermediate digital artists. Participants will create their own digital sculpture. All skill levels welcome.\",\n"
|
||||
" \"location\": \"Dublin, Ireland\"\n"
|
||||
"}\n"
|
||||
"```"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user