Collection of Jupyter notebooks demonstrating how to use ollama.
I wrote an interoductory blog post on Ollama: Ollama: The local LLM solution
cd d:\projects\ollama-notes
python -m venv ollama-env
ollama-env\Scripts\activate
pip install -r requirements.txt
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. |