Skip to content

Piped_Content

Dewayne VanHoozer edited this page Mar 30, 2024 · 2 revisions

Piped Content

As a command-line interface (CLI) tool AIA supports the common ability to receive input from STDIN and produce output to STDOUT. This allows it to behave as a well mannered CLI tool when composing a piped workflow on the command line.

For example suppose you had a prompt file summarize.txt in your $AIA_PROMPTS_DIR then you could do something like this:

curl $URL | aia summarize --no-output_file | less

The output from the curl command is appended to the prompt text contained in the summarize.txt file which is then fed into the back end for processing through an LLM. The response from that LLM process is then forwarded to the common pagger for viewing.

Clone this wiki locally