TAG · 3 ARTICLES

#context-window

  1. JAVAHow LLMs work: tokens, context windows and temperatureYou don't need the maths. You do need to know why the model forgets everything, why long chats cost more, and which temperature to use. Here is how an LLM works, explained for the Java code you will write.17 Nov 2026 · 9 min
  2. AICall a local LLM from Java with Ollama: HttpClient, a stateless request, then a chatbot with memoryPlain Java, no AI framework. We call Ollama's /api/chat with HttpClient and Jackson, prove the model remembers nothing between requests, then build a terminal chatbot that remembers, and see why the assistant role and the context window matter.15 Nov 2026 · 8 min
  3. AICall a local LLM from Python with Ollama: a stateless request, then a chatbot with memoryStep-by-step Python code that calls Ollama's /api/chat. First we prove the model remembers nothing between requests. Then we build a terminal chatbot that remembers, and see why the assistant's answers and the context window matter.15 Nov 2026 · 7 min