79372949

Date: 2025-01-21 00:42:44
Score: 1.5
Natty:
Report link

Same question :ImportError: cannot import name 'Ollama' from 'langchain.llms'

Langchain has moved all llm models to their own modules. You need to install pip install -U langchain-ollama. Then you can use it without any issues.

The official page : reference

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • RegEx Blacklisted phrase (1): Same question
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: rsheng