mneedham / LearnDataWithMark

Code and scripts behind the @LearnDataWithMark YouTube channel
https://learndatawithmark.com
127 stars 37 forks source link

[Content] Chain of Thought Prompting with Ollama #39

Open mneedham opened 9 months ago

mneedham commented 9 months ago

We can use Ollama's new inline Modefile with message history to make this easier

https://www.promptingguide.ai/techniques/cot https://github.com/ollama/ollama/blob/main/docs/modelfile.md

MESSAGE user Is Toronto in Canada?
MESSAGE assistant yes
MESSAGE user Is Sacramento in Canada?
MESSAGE assistant no
MESSAGE user Is Ontario in Canada?
MESSAGE assistant yes

Or maybe it would work well for few shot prompting?