Skip to content

natural-language-programming/recursion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

Recursion

For cycle

Human:
Count from "one" to "ten" by putting the next word and a phrase with it between the XML tags named as <tag_one>, <tag_two> etc. The phrase with the word should be:"Now I think about [the word] sheep".

Model:

<tag_one>One Now I think about one sheep</tag_one>
<tag_two>Two Now I think about two sheep</tag_two>
<tag_three>Three Now I think about three sheep</tag_three>
<tag_four>Four Now I think about four sheep</tag_four>
<tag_five>Five Now I think about five sheep</tag_five>
<tag_six>Six Now I think about six sheep</tag_six>
<tag_seven>Seven Now I think about seven sheep</tag_seven>
<tag_eight>Eight Now I think about eight sheep</tag_eight>
<tag_nine>Nine Now I think about nine sheep</tag_nine>
<tag_ten>Ten Now I think about ten sheep</tag_ten>

Human:
Do you feel sleepy?

Model:

As an AI, I don't have feelings or physical sensations, so I don't feel sleepy. But I'm here to assist you whenever you need help!

Following depends on the previous

Human:
Please refine the sentence 'Whether tis nobler in the mind to suffer the slings and arrows of outrageous fortune of to take arms against the sea of troubles and by opposing end them?' as much as possible. After each iteration, provide the refined version, and ask me if you should continue refining.

Model

Refined version: "Is it nobler to endure life's hardships passively or to actively confront them and bring about their resolution?" Should I continue refining?

Human:
Yes

Model

Refined version: "Is it better to passively endure life's challenges or to actively confront them to overcome?" Should I continue refining?

Human:
Yes

Model

Refined version: "Is it wiser to passively endure life's adversities or to actively confront them for resolution?" Should I continue refining?

Human:
No

True recursion

If you want to achieve true recursion - generate a response, then post it in the next request to the API as a part of the User / Human message.

About

Several types of iteration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published