Skip to content

Commit

Permalink
Merge pull request #1868 from PolicyEngine/fix/1867-claude-refuses-el…
Browse files Browse the repository at this point in the history
…if-prompt

Reword ELI5 prompt in microsimulation ai analysis
  • Loading branch information
MaxGhenis authored Oct 14, 2024
2 parents 6854b6e + af02ed6 commit a6fb862
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: patch
changes:
changed:
- Change wording for ELI5 prompt in microsimulation ai analysis
2 changes: 1 addition & 1 deletion policyengine_api/ai_prompts/simulation.py
Original file line number Diff line number Diff line change
@@ -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.",
}
Expand Down
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@
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>=3,<4",
"flask-cors>=5,<6",
"google-cloud-logging",
"gunicorn",
"markupsafe>=2",
"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",
"sqlalchemy>=1.4,<2",
"streamlit",
"Flask-Caching==2.0.3",
"Flask-Caching>=2,<3",
],
extras_require={
"dev": [
Expand Down

0 comments on commit a6fb862

Please sign in to comment.