class documentation

class OllamaAIInterface(AIInterface):

Constructor: OllamaAIInterface(model_name)

View In Hierarchy

Concrete AI interface using Ollama.

Method __init__ Initializes the Ollama AI interface with a model name.
Method query Undocumented
Instance Variable model_name Undocumented

Inherited from AIInterface:

Method format_history Format the history list to fit the specific AIInterface used.
def __init__(self, model_name: str = ''):

Initializes the Ollama AI interface with a model name. Args: model_name (str): The name of the Ollama model to use.

def query(self, query: str, history: list[dict[str, str]] = None, metadatas: dict = None) -> AIStreamResponse:
model_name =

Undocumented