commit 6a903a111c76d8bfaae98078c24f39d03fc26a69 from: leoshimo <56844000+leoshimo@users.noreply.github.com> date: Fri Dec 1 22:04:44 2023 UTC chore: Revise README.md examples commit - ba7edb6a21eb4bdaa5da915387175e47ae7875e1 commit + 6a903a111c76d8bfaae98078c24f39d03fc26a69 blob - e63b74f42ac5fdffb4ace0e0cf271f79f9b5b9c9 blob + ebeeb68221f5b006c060e969f691e8a4b3e3d4f8 --- README.md +++ README.md @@ -65,14 +65,14 @@ $ cogni input.txt 50 + 50 equals 100. -# Via flags: +# Via flags # -s, --system Sets system prompt (Always first) # -a, --assistant Appends assistant message # -u, --user Appends user message $ cogni --system "Solve the following math problem" --user "50 + 50" 50 + 50 equals 100. -# Few-shot prompting with multiple messages +# Via repetitions of same flags. Useful for few-shot prompting $ cogni --system "Solve the following math problem" \ -u "1 + 1" \ -a "2" \ @@ -81,7 +81,7 @@ $ cogni --system "Solve the following math problem" \ -u "50 + 50" 100 -# Via flags AND stdin - flag messages come before stdin / file +# Via both flags and stdin. Flag messages come before stdin / file $ echo "50 + 50" | cogni --system "Solve the following math problem" \ -u "1 + 1" \ -a "2" \