Skip to content

Commit

Permalink
Updated pips. Updated README.
Browse files Browse the repository at this point in the history
  • Loading branch information
ale Huang committed Oct 15, 2023
1 parent 0454fa4 commit 21f3501
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ jobs:
push: true
tags: |
yaleh/meta-prompt:${{ github.sha }}
yaleh/meta-prompt:latest
${{ github.ref == 'refs/heads/main' && 'yaleh/meta-prompt:latest' || '' }}
65 changes: 65 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This project is a demonstration of the concept of Meta Prompt, which involves ge

The demo utilizes OpenAI's language models and provides a user interface for interacting with the chatbot. It allows users to input prompts, execute model calls, compare outputs, and optimize prompts based on desired criteria.

**New Update (2023/10/15):** A new working mode called `Other User Prompts` has been added. In the prompt optimization process, similar compatible prompts to the original user prompt are referenced to significantly reduce iteration cycles.

## Try it out!

[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/yaleh/meta-prompt/blob/main/meta_prompt.ipynb)
Expand Down Expand Up @@ -151,6 +153,69 @@ Year,Germany,France,United Kingdom,Italy,Spain
2019-2018,-2.56%,-2.59%,0.01%,-4.11%,0.30%
```

#### Other User Prompts

```
Here is the GDP data in billions of US dollars (USD) for these years:
1. China:
- 2010: $6,101.18 billion
- 2011: $7,572.80 billion
- 2012: $8,560.59 billion
- 2013: $9,607.23 billion
- 2014: $10,482.65 billion
2. India:
- 2010: $1,675.62 billion
- 2011: $1,823.05 billion
- 2012: $1,827.64 billion
- 2013: $1,856.72 billion
- 2014: $2,046.88 billion
3. Japan:
- 2010: $5,700.35 billion
- 2011: $6,157.47 billion
- 2012: $6,203.21 billion
- 2013: $5,155.72 billion
- 2014: $4,616.52 billion
4. South Korea:
- 2010: $1,464.26 billion
- 2011: $1,622.03 billion
- 2012: $1,624.76 billion
- 2013: $1,305.76 billion
- 2014: $1,411.25 billion
5. Indonesia:
- 2010: $706.39 billion
- 2011: $846.48 billion
- 2012: $878.47 billion
- 2013: $868.36 billion
- 2014: $891.77 billion
```

#### Prompt After 1 Interation

```
ROLE
You are an economic analyst.
TASK
Your task is to calculate the annual percentage change in GDP for each country based on the provided data.
REQUIREMENTS_AND_RESTRICTIONS
- The data will be provided in the format: "Year: $GDP in billions"
- Calculate the percentage change from year to year for each country.
- Present the results in a table format, with each row representing the change from one year to the next, and each column representing a different country.
- The table should be formatted as "Year-Year,Country1,Country2,..."
- The percentage change should be calculated as ((GDP Year 2 - GDP Year 1) / GDP Year 1) * 100
- The percentage change should be rounded to two decimal places and followed by a "%" symbol.
- If data for a year is missing for a country, leave that cell blank in the table.
```

## License

This project is licensed under the MIT License. Please see the [LICENSE](LICENSE) file for more information.
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jsonpointer==2.4
jsonschema==4.19.1
jsonschema-specifications==2023.7.1
kiwisolver==1.4.5
langchain==0.0.300
langsmith==0.0.40
langchain==0.0.312
langsmith==0.0.43
MarkupSafe==2.1.3
marshmallow==3.20.1
matplotlib==3.8.0
Expand Down Expand Up @@ -74,7 +74,7 @@ tqdm==4.66.1
typing-inspect==0.9.0
typing_extensions==4.8.0
tzdata==2023.3
urllib3==2.0.5
urllib3==2.0.6
uvicorn==0.23.2
websockets==11.0.3
yarl==1.9.2

0 comments on commit 21f3501

Please sign in to comment.