Zack Saadioui
8/27/2024
1
2
bash
curl -fsSL https://ollama.com/install.sh | sh1
ollama list1
.pdf1
.txt1
.csv1
2
3
4
5
# Set the base model
FROM llama3.1
# Configuration for reading lists
SYSTEM "Customize to create tailored reading suggestions based on user input."
PARAMETER user_preference "<your interests here>"1
2
bash
ollama create my-reading-list -f Modelfile1
2
3
4
5
6
7
8
python
response = ollama.chat(
    model='my-reading-list',
    messages=[
        { 'role': 'user', 'content': 'I enjoy reading thrillers and historical fiction.' }
    ]
)
print(response['message']['content'])Copyright © Arsturn 2025