yaleh commited on
Commit
5f1c826
·
1 Parent(s): 21f3501

Update README with docker info.

Browse files
Files changed (1) hide show
  1. README.md +29 -0
README.md CHANGED
@@ -56,6 +56,35 @@ You can use either GPT-4 or GPT-3.5 as the Testing LLM Model, similar to when us
56
 
57
  If you have access to ChatGPT and want to save costs on GPT-4 API usage, you can also manually execute the meta-prompt by clicking "Merge Meta System Prompt." This will generate a complete prompt, including the meta-prompt and the current example, that can be used with ChatGPT. However, note that if further iterations are required, you need to manually copy the newly generated system prompt to the Current System Prompt and click "Run Current" to update the Current Output.
58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  ## Examples
60
 
61
  ### Arithmetic
 
56
 
57
  If you have access to ChatGPT and want to save costs on GPT-4 API usage, you can also manually execute the meta-prompt by clicking "Merge Meta System Prompt." This will generate a complete prompt, including the meta-prompt and the current example, that can be used with ChatGPT. However, note that if further iterations are required, you need to manually copy the newly generated system prompt to the Current System Prompt and click "Run Current" to update the Current Output.
58
 
59
+ ## Running Docker Image
60
+
61
+ To perform the demo using Docker, make sure you have Docker installed on your system, and then follow these steps:
62
+
63
+ 1. Pull the Meta Prompt Docker image by running the following command:
64
+
65
+ ```
66
+ docker pull yaleh/meta-prompt
67
+ ```
68
+
69
+ 2. Run the Docker container with the following command:
70
+
71
+ ```
72
+ docker run -d --name meta-prompt-container -p 7860:7860 -e API_KEY=YOUR_API_KEY -e OTHER_ARGS="--advanced_mode" -e OPENAI_API_BASE=https://openai.lrfz.com/v1 yaleh/meta-prompt
73
+ ```
74
+
75
+ Replace `YOUR_API_KEY` with your OpenAI API key. You can modify other environment variables if needed.
76
+ 3. You can now access the Meta Prompt demo by opening your web browser and visiting `http://localhost:7860`.
77
+
78
+ To stop and remove the Meta Prompt container, run the following commands:
79
+
80
+ ```
81
+ docker stop meta-prompt-container
82
+ docker rm meta-prompt-container
83
+ ```
84
+
85
+ Usually, simple questions (such as arithmetic operations) require around 3 iterations of optimization, while complex problems may require more than 10 iterations.
86
+ ```
87
+
88
  ## Examples
89
 
90
  ### Arithmetic