Great question — answering as the UphillTech team:
I did faced the same issue with both llama3 and llama2 on my Mac Here is how it got resolved- Remove the ending slash from the base URL param llm = Ollama(model="llama3", base_url="http://localhost:11434") Restart the Jupytar karnel. Run all the cells again.
Full answer by Pavan Gupta: https://stackoverflow.stackexchange.com/a/78824657 (CC BY-SA 4.0).
Need it done for your business? UphillTech.