2023-07-18 16:11:56 -04:00
|
|
|
# Examples
|
|
|
|
|
2023-08-09 14:49:22 -04:00
|
|
|
This directory contains different examples of using Ollama
|
2023-07-18 16:11:56 -04:00
|
|
|
|
2023-10-10 20:40:02 -04:00
|
|
|
Folders that start with `base-` are the simplest examples of using Ollama. They are meant to be used as a starting point for your own models.
|
|
|
|
|
|
|
|
Folders that start with `langchain-` or `llamaindex-` use those tools to integrate Ollama with other tools.
|
|
|
|
|
|
|
|
Folders with `python` in the name use Python. Other languages are also used.
|
|
|
|
|
2023-07-18 16:11:56 -04:00
|
|
|
To create a model:
|
|
|
|
|
|
|
|
```
|
|
|
|
ollama create example -f <example file>
|
|
|
|
```
|
|
|
|
|
|
|
|
To run a model:
|
|
|
|
|
|
|
|
```
|
|
|
|
ollama run example
|
|
|
|
```
|