From 644d584fc13f483415dcbf48895f1bbd2843a0a9 Mon Sep 17 00:00:00 2001 From: tawandamoyo Date: Fri, 11 Oct 2024 18:03:10 +0200 Subject: [PATCH 1/3] Reword eli5 prompt in microsimulation ai analysis --- changelog_entry.yaml | 4 ++++ policyengine_api/ai_prompts/simulation.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog_entry.yaml b/changelog_entry.yaml index e69de29b..7ea18c83 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -0,0 +1,4 @@ +- bump: patch + changes: + changed: + - Change wording for ELI5 prompt in microsimulation ai analysis \ No newline at end of file diff --git a/policyengine_api/ai_prompts/simulation.py b/policyengine_api/ai_prompts/simulation.py index d381be51..fd9562b5 100644 --- a/policyengine_api/ai_prompts/simulation.py +++ b/policyengine_api/ai_prompts/simulation.py @@ -1,7 +1,7 @@ import json audience_descriptions = { - "ELI5": "Write this for a five-year-old who doesn't know anything about economics or policy. Explain fundamental concepts like taxes, poverty rates, and inequality as needed.", + "ELI5": "Write this for a layperson who doesn't know much about economics or policy. Explain fundamental concepts like taxes, poverty rates, and inequality as needed.", "Normal": "Write this for a policy analyst who knows a bit about economics and policy.", "Wonk": "Write this for a policy analyst who knows a lot about economics and policy. Use acronyms and jargon if it makes the content more concise and informative.", } From 30a94dd0a9523f36c4991ced87d1bb62a0898fc7 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 14 Oct 2024 16:41:04 -0400 Subject: [PATCH 2/3] relax more pins --- setup.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 41bcc3ad..b953e94c 100644 --- a/setup.py +++ b/setup.py @@ -10,14 +10,14 @@ packages=find_packages(), install_requires=[ "anthropic", - "click>=8", + "click>=8,<9", "cloud-sql-python-connector", "faiss-cpu<1.8.0", - "flask>=1", - "flask-cors>=3", + "flask>=1,<2", + "flask-cors>=3,<4", "google-cloud-logging", "gunicorn", - "markupsafe>=2", + "markupsafe>=2,<3", "openai", "policyengine_canada==0.96.1", "policyengine-ng==0.5.1", @@ -29,7 +29,7 @@ "rq", "sqlalchemy>=1.4,<2", "streamlit", - "Flask-Caching==2.0.3", + "Flask-Caching>=2,<3", ], extras_require={ "dev": [ From af02ed68fb7644dc1817dab9af5b3663a6115bf5 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 14 Oct 2024 16:49:30 -0400 Subject: [PATCH 3/3] update pins --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index b953e94c..426b480e 100644 --- a/setup.py +++ b/setup.py @@ -13,17 +13,17 @@ "click>=8,<9", "cloud-sql-python-connector", "faiss-cpu<1.8.0", - "flask>=1,<2", - "flask-cors>=3,<4", + "flask>=3,<4", + "flask-cors>=5,<6", "google-cloud-logging", "gunicorn", - "markupsafe>=2,<3", + "markupsafe>=3,<4", "openai", "policyengine_canada==0.96.1", "policyengine-ng==0.5.1", "policyengine-il==0.1.0", "policyengine_uk==2.1.1", - "policyengine_us==1.117.0", + "policyengine_us==1.118.0", "pymysql", "redis", "rq",