Published – Use Python to Send Prompt from File to Ollama

·

[title Use Python to Send Prompt from File to Ollama title]
I had AI create Prompt Personas using a JSON template and now I want to pass that Prompt Persona to Ollama so the LLM will generate a response as that persona.

I don’t want to do anything fancy just yet. I want to prove the concept before I attempt to automate it. The first step was to create the Persona JSON template and now I need to be sure that the LLM generates responses that are consistent with the persona.

Here are the articles I used to help me achieve this step in my AI Journey.

https://mrash.co/python-ollama-file
This got me up and running quickly and it is simple to follow. There is even a nice video in case you are a visual learner.

https://www.cohorte.co/blog/using-ollama-with-python-step-by-step-guide
This post was helpful in expanding on the basics and works towards building initial AI chatbot functionality along with workflow automation.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.