PromptEngineer48 / Ollama

This repo brings numerous use cases from the Open Source Ollama
Apache License 2.0
170 stars 84 forks source link

Your script relies on environment variables. Who sets those variables? #3

Open markg85 opened 7 months ago

markg85 commented 7 months ago

Hi,

https://github.com/PromptEngineer48/Ollama/blob/main/2-ollama-privateGPT-chat-with-docs/privateGPT.py has a couple environment variables. Like MODEL. Nothing sets those variables.

So when i run ollama pull codellama (note the intential change from mistral to codellama) and then continue following your steps then your script goes bananas. Nothing tels your program that i'm now using the codellama model so it still wants to use the mistral model. Which i don't have so it fails.

seanmceligot commented 6 months ago

windows

set MODEL=mistral python privateGPT.py

bash

MODEL=mistral python privateGPT.py

or just change that one line in the python code.