Merge pull request #45 from adriens/patch-1

doc(README) : add prerequisites
This commit is contained in:
Michael Yang
2024-05-08 13:08:37 -07:00
committed by GitHub
+18
View File
@@ -2,6 +2,24 @@
The Ollama Python library provides the easiest way to integrate Python 3.8+ projects with [Ollama](https://github.com/jmorganca/ollama).
## Prerequisites
You need to have a local ollama server running to be able to continue. To do this:
- Download: https://ollama.com/
- Run an LLM: https://ollama.com/library
- Example: `ollama run llama2`
- Example: `ollama run llama2:70b`
Then:
```sh
curl https://ollama.ai/install.sh | sh
ollama serve
```
Next you can go ahead with `ollama-python`.
## Install
```sh