Modelfile 618 B

12345678910111213141516171819202122232425262728
  1. # Modelfile for creating a sentiment analyzer.
  2. # Run `ollama create sentiments -f pathtofile` and then `ollama run sentiments` and enter a topic
  3. FROM orca
  4. TEMPLATE """
  5. {{- if .First }}
  6. ### System:
  7. {{ .System }}
  8. {{- end }}
  9. ### User:
  10. I hate it when my phone dies
  11. ### Response:
  12. NEGATIVE
  13. ### User:
  14. He is awesome
  15. ### Response:
  16. POSITIVE
  17. ### User:
  18. This is the link to the article
  19. ### Response:
  20. NEUTRAL
  21. ### User:
  22. {{ .Prompt }}
  23. ### Response:
  24. """
  25. SYSTEM """You are a sentiment analyzer. You will receive text and output only one word, either POSITIVE or NEGATIVE or NEUTRAL, depending on the sentiment of the text."""