Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ernanhughes/ollama-notebooks
Collection of python notebvoooks related to ollama
https://github.com/ernanhughes/ollama-notebooks
jupyter-notebook ollama python
Last synced: 1 day ago
JSON representation
Collection of python notebvoooks related to ollama
- Host: GitHub
- URL: https://github.com/ernanhughes/ollama-notebooks
- Owner: ernanhughes
- Created: 2024-08-25T07:06:42.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-13T19:48:10.000Z (16 days ago)
- Last Synced: 2025-01-13T20:39:08.301Z (16 days ago)
- Topics: jupyter-notebook, ollama, python
- Language: Jupyter Notebook
- Homepage:
- Size: 1.24 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ollama examples
Collection of Jupyter notebooks demonstrating how to use ollama.I wrote an interoductory blog post on Ollama: [Ollama: The local LLM solution](http://programmer.ie/post/ollama/)
## Install
```
cd d:\projects\ollama-notes
python -m venv ollama-env
ollama-env\Scripts\activate
pip install -r requirements.txt
```# Update context size of a model
```
ollama run llama3.2
>>> /set parameter num_ctx 131072
```Notebook | Description
---|---
[chat](/notebooks/chat.ipynb) | Demonstrates simple chatbot functionality using Ollama.
[list_models](/notebooks/list_models.ipynb) | List installed Ollama Models
[Log_file_analyzer](/notebooks/log_file_analyzer.ipynb) | Use Ollama to analyze a log file.
[pull](/pull.ipynb) | Pull a model.
[template](/notebooks/template_example.ipynb) | Shows how we can use the model to fill in a template with some text data.
[huggingface](/notebooks/huggingface.ipynb) | Pull a model from Hugging Face.
[function_calling](/notebooks/function_calling.ipynb) | Use Ollama to call a function.
[rest_api](/notebooks/rest_api.ipynb) | Use Ollama via the REST API.
[sql](/notebooks/sql.ipynb) | Use Ollama to query a SQL database.
[rag](/notebooks/rag.ipynb) | RAG example.