-
Notifications
You must be signed in to change notification settings - Fork 80
Description
How can I influence the number of paragraphs being generated? Or is that totally in the hands of the LLM during the planning phase? Is it a hard requirement that planning phase is totally the responsibility of the LLM (no human influence in that phase at all), or is some human influence in that phase possible?
I certainly would want to determine the number of paragraphs and de word count of all them!
So my question is: is that possible within the code you supplied in
https://github.com/samwit/agent_tutorials/tree/main/agent_write
?
Or is this just a question adding the required number of paragraphs in the initial_prompt (in main.py)?
…
(UPDATE: From my first experiments, adding the required number of paragraphs in the initial_prompt (in main.py) indeed was enough to get that much paragraphs in the output:
test_instruction = "Write a 7000 word and 20 paragraphs piece on the HBO TV show WestWorld and its plot, characters, and themes.
Make sure to cover the tropes that relate to AI, robots, and consciousness.
Finally tackle where you think the show was going in future seasons had it not been cancelled."
Gave this output during generation:
test_instruction: Write a 7000 word and 20 paragraphs piece on the HBO TV show WestWorld and its plot, characters, and themes. Make sure to cover the tropes that relate to AI, robots, and consciousness. Finally tackle where you think the show was going in future seasons had it not been cancelled.
---PLANNING THE WRITING---
---WRITING THE DOC---
In writing_node.py: idx = 0 , step = Paragraph 1 - Main Point: Introduce the HBO TV show WestWorld, its premise, and its reception - Word Count: 400 words
In writing_node.py: idx = 1 , step = Paragraph 2 - Main Point: Provide an overview of the show's plot, including the main story arcs and key events - Word Count: 600 words
In writing_node.py: idx = 2 , step = Paragraph 3 - Main Point: Analyze the main human characters, including Dr. Ford, the Man in Black, and William, and their motivations - Word Count: 500 words
In writing_node.py: idx = 3 , step = Paragraph 4 - Main Point: Examine the main host characters, including Dolores, Maeve, and Hector, and their development throughout the series - Word Count: 500 words
In writing_node.py: idx = 4 , step = Paragraph 5 - Main Point: Discuss the theme of consciousness and its exploration in the show, including the hosts' growing self-awareness - Word Count: 400 words
In writing_node.py: idx = 5 , step = Paragraph 6 - Main Point: Explore the theme of free will and its relationship to the hosts' programming and human control - Word Count: 400 words
In writing_node.py: idx = 6 , step = Paragraph 7 - Main Point: Analyze the show's portrayal of artificial intelligence and its potential implications for human society - Word Count: 500 words
In writing_node.py: idx = 7 , step = Paragraph 8 - Main Point: Discuss the trope of the "robot uprising" and its presence in WestWorld - Word Count: 300 words
In writing_node.py: idx = 8 , step = Paragraph 9 - Main Point: Examine the show's use of the "uncanny valley" concept and its effects on the audience's perception of the hosts - Word Count: 300 words
In writing_node.py: idx = 9 , step = Paragraph 10 - Main Point: Explore the theme of humanity and what it means to be human, as presented in the show - Word Count: 400 words
In writing_node.py: idx = 10 , step = Paragraph 11 - Main Point: Discuss the show's portrayal of the ethics of artificial intelligence and robotics - Word Count: 500 words
In writing_node.py: idx = 11 , step = Paragraph 12 - Main Point: Analyze the show's use of violence and its relationship to the themes of consciousness and free will - Word Count: 400 words
In writing_node.py: idx = 12 , step = Paragraph 13 - Main Point: Examine the show's portrayal of the relationship between creators and their creations - Word Count: 400 words
In writing_node.py: idx = 13 , step = Paragraph 14 - Main Point: Discuss the theme of power dynamics and control in the show, including the relationships between humans and hosts - Word Count: 500 words
In writing_node.py: idx = 14 , step = Paragraph 15 - Main Point: Explore the show's use of symbolism and metaphor, including the maze and the bicameral mind - Word Count: 400 words
In writing_node.py: idx = 15 , step = Paragraph 16 - Main Point: Analyze the show's portrayal of the consequences of playing God and creating conscious beings - Word Count: 500 words
In writing_node.py: idx = 16 , step = Paragraph 17 - Main Point: Discuss the show's exploration of the concept of identity and its relationship to consciousness - Word Count: 400 words
In writing_node.py: idx = 17 , step = Paragraph 18 - Main Point: Examine the show's portrayal of the potential risks and benefits of emerging technologies - Word Count: 500 words
In writing_node.py: idx = 18 , step = Paragraph 19 - Main Point: Speculate on the show's intended direction for future seasons, including the potential plot developments and character arcs - Word Count: 800 words
In writing_node.py: idx = 19 , step = Paragraph 20 - Main Point: Summarize the show's key themes and ideas, and reflect on its significance and impact on the science fiction genre - Word Count: 600 words
Total word count: 9782
---SAVING THE DOC---
output['final_doc'] :
word_count
10028 !!!!!
Also according to MS WORD: 10028 words !!!!! (20 pages of text)
llm_name
llama3.1-70b-groq
SO IT ALSO BROKE THE 10000 WORD BARRIER !
ToDo:
- Is this 10028 word text coherent? No contradictions? No hallucinations? (I suppose the planning ahead of writing helps mitigate those possible issues ...)
The generated text is i the MS Word file attached.
Westworld_100028_words.docx
