nlsh (Natural Language Shell) with GPT-3
Summary
I extend my openai-complete
script with REPL
capabilities and use it to create
parameterised nlsh
REPLs for different
Operating Systems.
I use comint
, the emacs mode for managing
REPLs and rlwrap
to manage history and allow
me to run the REPL without emacs.
I also generalise it within my prompt description format as “conversation mode” which enables me to have rolling conversations with a prompt.
So far, I have not implemented any kind of pseudo-memory system for rolling conversation. The prompt is reset every iteration.
Demo
Code
openai-complete
|
|
elisp
|
|
prompt
bash-one-liner-generator-on-os-from-natural-language.prompt
|
|
Thanks for reading!
If this article appears incomplete, it may be intentional. Try prompting for a continuation.
If this article appears incomplete, it may be intentional. Try prompting for a continuation.