promptslab / Promptify

Prompt Engineering | Prompt Versioning | Use GPT or other prompt based models to get structured output. Join our discord for Prompt-Engineering, LLMs and other latest research
https://discord.gg/m88xfYMbK6
Apache License 2.0
3.11k stars 232 forks source link

Remove unwanted paranthesis to avoid syntax error #108

Open Maheshkumar-novice opened 3 months ago

Maheshkumar-novice commented 3 months ago

To Avoid Error:

*** SyntaxError: closing parenthesis '}' does not match opening parenthesis '['

For Output:

"[{'T': 'Age', 'E': '93-year-old'}, {'T': 'Gender', 'E': 'female'}, {'T': 'Medical Condition', 'E': 'chronic right hip pain'}, {'T': 'Medical Condition', 'E': 'osteoporosis'}, {'T': 'Medical Condition', 'E': 'hypertension'}, {'T': 'Medical Condition', 'E': 'depression'}, {'T': 'Medical Condition', 'E': 'chronic atrial fibrillation'}, {'T': 'Reason for Admission', 'E': 'evaluation and management of severe nausea and vomiting and urinary tract infection'}},{'branch': 'Appropriate branch of the passage', 'group': 'Appropriate Group of the passage'}]"