-
- Install Ollama using - brew install ollama
-
- I used llama2 version . Pull llama2 version using below command - ollama pull llama2
Please note down few important point
# Call local Ollama API
ollama_url = "http://host.docker.internal:11434/api/generate" - This code is consuming ollama model running in my local mac.
Steps for running jupiter notebook in Docker is given below
-
Install Docker for Windows/ Mac in your laptop ( I am using Mac)

-
Open http://localhost:8888/ , you will get Jupyter notebook in browser
-
You can get token from the below section - refer query string-

-
Once you logged in , you can upload notebook in the interface and test above scenarios









