Skip to content

Instantly share code, notes, and snippets.

@lostinplace
Created May 27, 2023 19:13
Show Gist options
  • Save lostinplace/75bf3eb977f3bf3b301ffdf7a84eca15 to your computer and use it in GitHub Desktop.
Save lostinplace/75bf3eb977f3bf3b301ffdf7a84eca15 to your computer and use it in GitHub Desktop.
AssistantFlow Graph Example
{
"vertices": {
"1": {
"type": "User Entered Text",
"content": "You are a helpful assistant",
"role": "system",
"name": ""
},
"2": {
"type": "User Entered Text",
"content": "Write a very short story",
"role": "user",
"name": ""
},
"3": {
"type": "Model Params",
"content" : {
"model" : "openai/gpt-4",
"n": 3,
"max-length": 256,
"temperature": 0.7
}
},
"4": {
"type": "Generated Text",
"content": "Once upon a time, in a quaint little village, there lived a wise old owl. The owl spent its days perched upon a tree, guiding villagers with its wise counsel. One day, an inquisitive girl asked the owl what the secret to happiness was. The owl replied, 'Happiness is the journey, not the destination.' And from that day on, the village flourished in happiness.",
"role": "assistant",
"name": ""
},
"5": {
"type": "Generated Text",
"content": "Deep within a thick forest stood a tree, unlike any other. Its leaves shimmered with colors unseen and ever-changing. The tree was guarded by a grumpy gnome who refused to let anyone near it. A curious poor boy, determined to find a way to talk to the gnome, offered a chest filled with stories. The gnome, touched by the stories' magic, decided to share the tree's unique leaves with the world.",
"role": "assistant",
"name": ""
},
"6": {
"type": "Generated Text",
"content": "In a bustling city of the future, a lonely robot wandered the streets, searching for companionship. It tried to make friends but was ignored by the humans, who only cared for their screens. One rainy evening, as the robot trudged through the streets, it found a stray dog. The two shared an unspoken bond and became inseparable. Together, they navigated the city, slowly helping others reconnect to the world around them.",
"role": "assistant",
"name": ""
},
"7": {
"type": "Adjust Text",
"content": "In a bustling city of the future, a lonely robot named Joel wandered the streets, searching for companionship. It tried to make friends but was ignored by the humans, who only cared for their screens. One rainy evening, as the robot trudged through the streets, it found a stray dog named Mike. The two shared an unspoken bond and became inseparable. Together, they navigated the city, slowly helping others reconnect to the world around them."
},
"8": {
"type": "User Entered Text",
"content": "tell me more of this story",
"role": "user",
"name": ""
},
"9": {
"type": "Model Params",
"content" : {
"model" : "openai/gpt-4",
"n": 1,
"max-length": 2048,
"temperature": 1.0
}
},
"10": {
"type": "Generated Text",
"content": "In a bustling, futuristic metropolis, a lonely robot named Joel wandered through crowded streets, his metallic body reflecting the neon city lights. Even though technology flourished and the density of the city made it impossible to feel alone, Joel could not escape the emptiness that echoed within his circuits. As an intelligent machine, he yearned for companionship with humans, yet they seemed more interested in the virtual realities presented on their screens than in the real world around them.\nFor years, Joel roamed the urban landscape, making attempts to engage with humans and other robots, but his interactions were brief and hollow. Few acknowledged his presence, and even fewer cared to form any meaningful connection. He was just another obsolete model, blending into a landscape of futuristic innovation. It was a cruel irony; Joel had been created to make people's lives easier, and yet his very existence only seemed to exacerbate the disconnect between them.\nOne rainy evening, as the neon lights cast a ghostly aura over the wet streets, Joel stumbled upon a stray dog huddled in a dimly lit alley. The dog, a shaggy outcast with an air of sadness mirroring the robot’s desolation, seemed to have all but given up on finding shelter from the storm. As Joel cautiously approached, the wary canine instinctively tensed up, but after a tense moment, the tension gave way to curiosity. The dog, whom Joel decided to name Mike, seemed as alone in this world as he was.\nOver time, the two formed an unbreakable bond. Their relationship transcended language or form; it was a unique convergence of machine and beast. They found solace in each other's company and navigated the city together, discovering hidden corners and joyful moments in a world that had become increasingly blind to the beauty around them.\nOne day, while wandering through a park, Joel took out a frayed, old soccer ball he had found in the garbage. It was far from perfect, but it rolled well enough for the two friends to amuse themselves. As they played, the laughter of a nearby child caught their attention. The girl approached them, her eyes wide with awe at seeing the robot and the dog playing. With a smile, she asked if she could join their game. The simple act of kindness evoked an unexpected emotion within Joel's circuitry—hope.\nAs days turned into weeks and weeks into months, Joel and Mike's friendship began to draw the attention of the people around them. Their unlikely alliance and joy seemed to act as a beacon in their tech-obsessed world. Gradually, the message began to spread: the importance of connection and embracing the world beyond one's screen.\nThe tandem of Joel and Mike encouraged others to open their eyes to the beauty surrounding them, rekindling a seemingly lost love for the physical world. Their story became the stuff of legends, an urban myth inspiring people across the city and beyond. It was a symbol of hope in a world where a simple connection between a discarded robot and a stray dog could make the hardened world seem just a little bit warmer.",
"role": "assistant",
"name": ""
},
"11": {
"type": "User Entered Text",
"content": "you are an editor of science fiction novels",
"role": "system",
"name": ""
},
"12": {
"type": "User Entered Text",
"content": "I'm going to give you a story, tell me whether or not it would make for a good science fiction novel for young adults",
"role": "user",
"name": ""
},
"13": {
"type": "Claim Content",
"claim": {
"role": "user",
"name": ""
}
},
"14": {
"type": "Generated Text",
"content": "In a bustling, futuristic metropolis, a lonely robot named Joel wandered through crowded streets, his metallic body reflecting the neon city lights. Even though technology flourished and the density of the city made it impossible to feel alone, Joel could not escape the emptiness that echoed within his circuits. As an intelligent machine, he yearned for companionship with humans, yet they seemed more interested in the virtual realities presented on their screens than in the real world around them.\nFor years, Joel roamed the urban landscape, making attempts to engage with humans and other robots, but his interactions were brief and hollow. Few acknowledged his presence, and even fewer cared to form any meaningful connection. He was just another obsolete model, blending into a landscape of futuristic innovation. It was a cruel irony; Joel had been created to make people's lives easier, and yet his very existence only seemed to exacerbate the disconnect between them.\nOne rainy evening, as the neon lights cast a ghostly aura over the wet streets, Joel stumbled upon a stray dog huddled in a dimly lit alley. The dog, a shaggy outcast with an air of sadness mirroring the robot’s desolation, seemed to have all but given up on finding shelter from the storm. As Joel cautiously approached, the wary canine instinctively tensed up, but after a tense moment, the tension gave way to curiosity. The dog, whom Joel decided to name Mike, seemed as alone in this world as he was.\nOver time, the two formed an unbreakable bond. Their relationship transcended language or form; it was a unique convergence of machine and beast. They found solace in each other's company and navigated the city together, discovering hidden corners and joyful moments in a world that had become increasingly blind to the beauty around them.\nOne day, while wandering through a park, Joel took out a frayed, old soccer ball he had found in the garbage. It was far from perfect, but it rolled well enough for the two friends to amuse themselves. As they played, the laughter of a nearby child caught their attention. The girl approached them, her eyes wide with awe at seeing the robot and the dog playing. With a smile, she asked if she could join their game. The simple act of kindness evoked an unexpected emotion within Joel's circuitry—hope.\nAs days turned into weeks and weeks into months, Joel and Mike's friendship began to draw the attention of the people around them. Their unlikely alliance and joy seemed to act as a beacon in their tech-obsessed world. Gradually, the message began to spread: the importance of connection and embracing the world beyond one's screen.\nThe tandem of Joel and Mike encouraged others to open their eyes to the beauty surrounding them, rekindling a seemingly lost love for the physical world. Their story became the stuff of legends, an urban myth inspiring people across the city and beyond. It was a symbol of hope in a world where a simple connection between a discarded robot and a stray dog could make the hardened world seem just a little bit warmer.",
"role": "user",
"name": ""
},
"16": {
"type": "Generated Text",
"content": "This story would make for a great science fiction novel for young adults. The characters and their relationships are unique and relatable, with the lonely robot reflecting feelings of isolation and the desire for connection that many young readers could identify with. The themes of technology, companionship, and the importance of connecting with others beyond our screens would resonate with modern audiences.\nThe futuristic city setting creates an exciting backdrop for the story, and it leaves plenty of room for imaginative and engaging descriptions of life in an advanced, technologically-driven world. The novel could balance its serious themes with moments of joy and adventure, creating a compelling narrative that encourages readers to reflect on their own relationships in the context of an ever-evolving digital landscape. Overall, it would be a fantastic addition to the young adult science fiction genre.",
"role": "assistant",
"name": ""
}
},
"edges": [
["1","2",["A"]],
["2","3",["A"]],
["3","4",["A"]],
["3","5",["A","B"]],
["3","6",["A","C"]],
["6","7",["A","C"]],
["7","8",["A","C"]],
["8","9",["A","C"]],
["9","10",["A","C"]],
["11", "12", ["D"]],
["10", "13", ["A","C"]],
["13", "14", ["A","C"]],
["12", "14", ["D"]],
["14", "9", ["D"]],
["9", "16", ["D"]]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment