def ollama_llm(question, context):
        """Generates a response to a question using the Ollama Llama3 model.

    This function takes a question and its context, formats them into a prompt, 
    and invokes the Ollama Llama3 model to generate a response.

    Args:
        question (str): The question to be answered by the model.
        context (str): The context or additional information related to the question.

    Returns:
        str: The response generated by the Ollama Llama3 model, stripped of leading and trailing whitespace."""
        formatted_prompt = f"Question: {question}\n\nContext: {context}"
        response = ollama.invoke([('human', formatted_prompt)])
        return response.content.strip()
Generates a response to a question using the Ollama Llama3 model.

    This function takes a question and its context, formats them into a prompt, 
    and invokes the Ollama Llama3 model to generate a response.

    Args:
        question (str): The question to be answered by the model.
        context (str): The context or additional information related to the question.

    Returns:
        str: The response generated by the Ollama Llama3 model, stripped of leading and trailing whitespace.
rag_tutorials/llama3.1_local_rag/llama3.1_local_rag.py