Skip to content

Instantly share code, notes, and snippets.

@jimwhite
Created June 4, 2023 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimwhite/9754deda9e3280478c8d8c2d88ec4811 to your computer and use it in GitHub Desktop.
Save jimwhite/9754deda9e3280478c8d8c2d88ec4811 to your computer and use it in GitHub Desktop.
A demo run of SkillDB: https://github.com/hadon/skilldb
skilldb % python skilldb.py
No embedding_function provided, using default embedding function: DefaultEmbeddingFunction https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2
hhh: agent_executor.run...
> Entering new AgentExecutor chain...
hhh: SkilledAgent...
{
"tasks": [
{
"skill": {
"instruction": "The user creates vlog videos for publication on youtube. Our job is to select several possible topics for her next video.",
"domain": "",
"score": ""
},
"parameters": [],
"results": []
},
{
"skill": {
"instruction": "Please select about 20 topics related to the topics below.",
"domain": "selecting topics for creative works",
"score": "this technique has been tried 151 times, and helped 21 times"
},
"parameters": [
{
"name": "the existing topics",
"value": " \"my new BMW - the good and the bad\", \"hairstyles of the rich and famous\", \"a cat's life\"."
}
],
"results": [
{
"name": "the related topics",
"value": " \"known defects with Tesla autiopilot\", \"EV's everywhere except America\", \"Biden's infrastructure package and US highways\", \"no fault auto insurance\", \"hair style disasters\", \"car styles of the next century\", \"these cats are dressed in style\", \"when a cat meets a lion\", \"what's wrong with volkwagen\", \"why not to be famous\", \"the cat in the hat is canceled again\", \"does a BMW cost more in maintanence?\", \"glamour in a post-pandemic world\", \"how much should you be investung in your hair?\", \"all the cats cast in Keanu\"."
}
]
}
]
}
hhh: skill_finder_prompt:
We are working together on the job described below. Our progress so far is described by the list of tasks below. The first task describes the overall job. Each successive task describes a technique we have chosen to follow and our results so far. The last task is our most recent technique.
1. the overall job description:
The user creates vlog videos for publication on youtube. Our job is to select several possible topics for her next video.
2. a previous task:
Please select about 20 topics related to the topics below.
2.1. the existing topics:
"my new BMW - the good and the bad", "hairstyles of the rich and famous", "a cat's life".
2.2. the related topics:
"known defects with Tesla autiopilot", "EV's everywhere except America", "Biden's infrastructure package and US highways", "no fault auto insurance", "hair style disasters", "car styles of the next century", "these cats are dressed in style", "when a cat meets a lion", "what's wrong with volkwagen", "why not to be famous", "the cat in the hat is canceled again", "does a BMW cost more in maintanence?", "glamour in a post-pandemic world", "how much should you be investung in your hair?", "all the cats cast in Keanu".
Now let's choose another technique technique to try. To help guide us, we have a list of techniques that have been tried before on similar jobs. We can choose one of those techniques or suggest a completely new technique to try.
Below is our list of known techniques. Each technique includes the instructions for how to perform it, and a summary of our previous experience with it.
1. technique instructions:
Please filter the list of topics below according to recent public engagement. consider using a search engine to ascertain the level of public engagement in each.
suggested uses:
selecting topics for creative works
observed performance:
this technique has been tried 4 times, and helped 0 times
2. technique instructions:
Please filter the list of topics below according to the users interests. Some of the users main interests are also listed below.
suggested uses:
selecting topics for creative works
observed performance:
this technique has been tried 43 times, and helped 2 times
3. technique instructions:
Please select about 20 topics related to the topics below.
suggested uses:
selecting topics for creative works
observed performance:
this technique has been tried 151 times, and helped 21 times
4. technique instructions:
Try symmetry reductions.
suggested uses:
exact analytical solutions of nonlinear partial differential equation.
observed performance:
this technique has been tried 0 times.
That's all. Please indicate what technique we should try next.
hhh: skill_finder_reply:
Based on the previous techniques we have tried and their observed performance, I would suggest trying the technique "Please select about 20 topics related to the topics below" again. This technique has been tried 151 times previously and helped 21 times, which is the highest success rate of the options provided.
The technique instructions are:
Please select about 20 topics related to the topics below.
So to proceed, I would select about 20 additional topics related to the existing topics the user has covered in their previous videos:
"my new BMW - the good and the bad",
"hairstyles of the rich and famous",
"a cat's life":
New related topics:
1. Other luxury car reviews (e.g. Mercedes, Audi)
2. Celeb fashion and style (e.g. red carpet looks, designer brands)
3. More stories from the life of her cat (e.g. vet visits, new toys)
4. Car care and maintenance tips
5. Latest hairstyle trends
6. Other pet stories (e.g. meeting new animals, funny pet moments)
7. Dream luxury homes and lifestyles
8. New movies
> Finished chain.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment