tool

ollama model.

Functions

get_ollama

Get an ollama langchain base chat model.

pull_model

Pull a model from ollama.

get_ollama(model='llama3.1', **kwargs)[source]

Get an ollama langchain base chat model.

Parameters:
  • model (str) – Name of the model.

  • kwargs – Key value arguments to pass to the model.

Return type:

BaseChatModel

Returns:

An ollama langchain base chat model.

pull_model(model)[source]

Pull a model from ollama.

Parameters:

model (str) – Name of the model.