filename tweaks
This commit is contained in:
16
README.md
16
README.md
@@ -67,8 +67,8 @@ daily-journal-prompt/
|
||||
├── test_project.py # Test suite for the project
|
||||
├── requirements.txt # Python dependencies
|
||||
├── ds_prompt.txt # AI prompt template for generating journal prompts
|
||||
├── historic_prompts.json # History of previous 60 prompts (JSON format)
|
||||
├── pool_prompts.json # Pool of available prompts for selection (JSON format)
|
||||
├── prompts_historic.json # History of previous 60 prompts (JSON format)
|
||||
├── prompts_pool.json # Pool of available prompts for selection (JSON format)
|
||||
├── example.env # Example environment configuration
|
||||
├── .env # Your actual environment configuration (gitignored)
|
||||
├── settings.cfg # Configuration file for prompt settings and pool size
|
||||
@@ -83,8 +83,8 @@ daily-journal-prompt/
|
||||
- **test_project.py**: Test suite to verify project setup
|
||||
- **requirements.txt**: Python dependencies (openai, python-dotenv, rich)
|
||||
- **ds_prompt.txt**: The core prompt template that instructs the AI to generate new journal prompts
|
||||
- **historic_prompts.json**: JSON array containing the last 60 generated prompts (cyclic buffer)
|
||||
- **pool_prompts.json**: JSON array containing the pool of available prompts for selection
|
||||
- **prompts_historic.json**: JSON array containing the last 60 generated prompts (cyclic buffer)
|
||||
- **prompts_pool.json**: JSON array containing the pool of available prompts for selection
|
||||
- **example.env**: Template for your environment configuration
|
||||
- **.env**: Your actual environment variables (not tracked in git for security)
|
||||
- **settings.cfg**: Configuration file for prompt settings (length, count) and pool size
|
||||
@@ -185,19 +185,19 @@ python generate_prompts.py --help
|
||||
|
||||
1. User chooses to fill the prompt pool.
|
||||
2. The system reads the template from `ds_prompt.txt`
|
||||
3. It loads the previous 60 prompts from the fixed length cyclic buffer `historic_prompts.json`
|
||||
3. It loads the previous 60 prompts from the fixed length cyclic buffer `prompts_historic.json`
|
||||
4. The AI generates some number of new prompts, attempting to minimize repetition
|
||||
5. The new prompts are used to fill the prompt pool to the `settings.cfg` configured value.
|
||||
|
||||
### Prompt Selection Process
|
||||
|
||||
1. A `settings.cfg` configurable number of prompts are drawn from the prompt pool and displayed to the user.
|
||||
2. User selects one prompt for his/her journal writing session, which is added to the `historic_prompts.json` cyclic buffer.
|
||||
2. User selects one prompt for his/her journal writing session, which is added to the `prompts_historic.json` cyclic buffer.
|
||||
3. All prompts which were displayed are removed from the prompt pool permanently.
|
||||
|
||||
## 📝 Prompt Examples
|
||||
|
||||
The tool generates prompts like these (from `historic_prompts.json`):
|
||||
The tool generates prompts like these (from `prompts_historic.json`):
|
||||
|
||||
- **Memory-based**: "Describe a memory you have that is tied to a specific smell..."
|
||||
- **Creative Writing**: "Invent a mythological creature for a modern urban setting..."
|
||||
@@ -234,7 +234,7 @@ You can modify `ds_prompt.txt` to change the prompt generation parameters:
|
||||
|
||||
## 🔄 Maintaining Prompt History
|
||||
|
||||
The `historic_prompts.json` file maintains a rolling history of the last 60 prompts. This helps:
|
||||
The `prompts_historic.json` file maintains a rolling history of the last 60 prompts. This helps:
|
||||
|
||||
1. **Avoid repetition**: The AI references previous prompts to generate new, diverse topics
|
||||
2. **Track usage**: See what types of prompts have been generated
|
||||
|
||||
Reference in New Issue
Block a user