Skip to content

ernanhughes/ollama-notebooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Collection of python notebvoooks related to ollama

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published