Files
protocol-bicorder/analysis/chunk.sh
2025-10-30 10:56:21 -06:00

9 lines
781 B
Bash
Executable File

#!/bin/bash
prompt="Return csv-formatted data (with no markdown wrapper) that consists of a list of protocols discussed or referred to in the attached text. Protocols are defined extremely broadly as 'patterns of interaction,' and may be of a nontechnical nature. Protocols should be as specific as possible, such as 'Sacrament of Reconciliation' rather than 'Religious Protocols.' The first column should provide a brief descriptor of the protocol, and the second column should describe it in a substantial paragraph of 3-5 sentences, encapsulated in quotation marks to avoid breaking on commas. Be sure to paraphrase rather than quoting directly from the source text."
for file in "$@"; do
llm -m gemma3:12b -f $file "$prompt" >> output.csv
echo "Completed $file"
done