Parameters
An Ollama LLM interface can have the following parameters:Usage
Here is how you setup an interface to interact with your Ollama models.1
Create a
config.yaml in the same directory your code is in.- src
- yourPythonCode.py
- yourPyNotebook.py
- config.yaml
2
Define your Ollama provider and models inside the
config.yaml file.3
Create your llm instance.
4
Optional: You can add your parameters as follows:
You are done setting up your Ollama LLM!
What’s next?
LLM.chat()
Learn how to send messages and recieve responses next!
Tool calling Agent
Learn how to build a tool calling agent using llmstudio.