Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.2 KB

README.md

File metadata and controls

36 lines (27 loc) · 1.2 KB

Ollama examples

Collection of Jupyter notebooks demonstrating how to use ollama.

I wrote an interoductory blog post on Ollama: Ollama: The local LLM solution

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 Demonstrates simple chatbot functionality using Ollama.
list_models List installed Ollama Models
Log_file_analyzer Use Ollama to analyze a log file.
pull Pull a model.
template Shows how we can use the model to fill in a template with some text data.
huggingface Pull a model from Hugging Face.
function_calling Use Ollama to call a function.
rest_api Use Ollama via the REST API.
sql Use Ollama to query a SQL database.
rag RAG example.