Skip to content

Glossary: RAG Beyond the Basics

sys.argv / sys.exit

Also written: sys.argv, sys.exit

`sys.argv` is the list of words typed after `python`, so `ask.py` reads the user and question from it. `sys.exit` with a message ends the program with an error status.

Where the book teaches it

Related terms

Regression gate