text

psifx text

Command-line interface for processing text.

usage: psifx text [-h] [--all-help] {chat,instruction} ...
-h, --help

show this help message and exit

--all-help

show help recursively and exit

psifx text chat

Command-line interface for a chatbot

usage: psifx text chat [-h] [--overwrite | --no-overwrite]
                       [--verbose | --no-verbose] [--prompt PROMPT]
                       [--output OUTPUT]
                       [--provider {ollama,hf,openai,anthropic}]
                       [--model MODEL] [--model_config MODEL_CONFIG]
                       [--api_key API_KEY]
-h, --help

show this help message and exit

--overwrite, --no-overwrite

overwrite existing files, otherwise raises an error

--verbose, --no-verbose

verbosity of the script

--prompt <prompt>

prompt or path to a .txt file containing the prompt

--output <output>

path to a .txt save file

--provider {ollama,hf,openai,anthropic}

The large language model provider. Choices are ‘ollama’, ‘hf’, ‘openai’, or ‘anthropic’. Default is ‘ollama’.

--model <model>

The large language model to use. This depends on the provider.

--model_config <model_config>

Path to the model .yaml configuration file.

--api_key <api_key>

Corresponding API key for ‘hf’, ‘openai’, or ‘anthropic’.

psifx text instruction

Command-line interface for custom instructions

usage: psifx text instruction [-h] [--overwrite | --no-overwrite]
                              [--verbose | --no-verbose] --input INPUT
                              --output OUTPUT
                              [--provider {ollama,hf,openai,anthropic}]
                              [--model MODEL] [--model_config MODEL_CONFIG]
                              [--api_key API_KEY] --instruction INSTRUCTION
-h, --help

show this help message and exit

--overwrite, --no-overwrite

overwrite existing files, otherwise raises an error

--verbose, --no-verbose

verbosity of the script

--input <input>

path to the input .txt, .csv or .vtt file

--output <output>

path to the output .txt or .csv file

--provider {ollama,hf,openai,anthropic}

The large language model provider. Choices are ‘ollama’, ‘hf’, ‘openai’, or ‘anthropic’. Default is ‘ollama’.

--model <model>

The large language model to use. This depends on the provider.

--model_config <model_config>

Path to the model .yaml configuration file.

--api_key <api_key>

Corresponding API key for ‘hf’, ‘openai’, or ‘anthropic’.

--instruction <instruction>

Path to a .yaml file containing the prompt and parser.