To create a system that continuously generates, evaluates, and adds new one-liner jokes to this repository, with the ultimate goal of discovering the funniest joke in the world.
- Use a large language model (LLM) to generate new one-liner jokes.
- The jokes should be in the style of the existing jokes in
src/jokes.js. - The output should be a single string.
- Create a script that takes a new joke as input.
- The script will read
src/jokes.js. - It will parse the JavaScript array of jokes.
- It will add the new joke to the array.
- It will write the updated array back to
src/jokes.js, maintaining the existing formatting.
- Develop a rating system for the jokes.
- The rating system will be based on an LLM evaluation.
- The LLM will be prompted to rate the joke on a scale of 1 to 10 for funniness, originality, and cleverness.
- The ratings will be stored in a separate file, perhaps
jokes-ratings.json, mapping each joke to its rating.
- Create a main script that orchestrates the process.
- The script will:
- Generate a new joke.
- Integrate the joke into
src/jokes.js. - Evaluate the joke and store the rating.
- Repeat.
- The process will run until stopped manually.
- The "funniest joke in the world" is a moving target.
- We will define "funniest" as the joke with the highest rating in our system.
- The agent will continuously strive to generate a joke with a higher rating than the current best.
- User feedback mechanism for rating jokes.
- A web interface to display the jokes and their ratings.
- More sophisticated joke generation techniques.