A quick LangChain and Ollama demo.

!pip install -q langchain langchain-ollama
from langchain_ollama import OllamaLLM
from IPython.display import display, Markdown

llm = OllamaLLM(model="gemma3:4b", temperature="0")

response = llm.invoke("What is the airspeed velocity of an unladen swallow?")
display(Markdown(response))

This is a classic question from Monty Python and the Holy Grail! The answer, as famously delivered by King Arthur, is delightfully complicated:

“What do you mean? An African or European swallow?”

The joke is that there’s no single answer. The airspeed velocity depends entirely on the type of swallow.

  • European Swallow: Roughly 11 meters per second (24 mph)

  • African Swallow: The film doesn’t give a specific number, but it’s implied to be faster.

Important Note: The scene is entirely satirical and meant to be absurd. It’s a running gag with no serious scientific basis.

You can find more detailed breakdowns of the debate surrounding this question here: https://en.wikipedia.org/wiki/Airspeed_velocity_of_an_unladen_swallow