Run prompts from files.
pip install prompt-as-method
If you have an Ollama running on the default port on your local machine:
ollama pull llama3.1 # download model
python3 -m prompt_as_method \
--prompt examples/sentiment/prompt.json \
--data examples/sentiment/data.csv
This runs the prompt template examples/sentiment/prompt.json
for each row of examples/sentiment/data.csv
with {{{text}}}
replaced by the row's value for it.
See the development notes.