Zack Saadioui
8/27/2024
1
2
bash
curl -fsSL https://ollama.com/install.sh | sh
1
ollama list
1
.pdf
1
.txt
1
.csv
1
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 Modelfile
1
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 2024