Tech Stack · AI/ML

Ollama

Run open-weight LLMs and embedding models on your own machine.

What it is

Ollama downloads, manages, and serves open models (Llama, Mistral, Gemma, Qwen, nomic-embed-text, and more) locally. It exposes a REST API on http://localhost:11434, so Spring AI, Python, or curl can call a model with no API key and no per-token bill.

Install

# Linux
curl -fsSL https://ollama.com/install.sh | sh

# macOS / Windows: download the installer from ollama.com
ollama --version

Everyday commands

Command What it does
ollama pull llama3.2 Download a model
ollama run llama3.2 Chat with a model in the terminal (pulls it first if needed)
ollama list Models on disk
ollama ps Models currently loaded in memory
ollama show llama3.2 Model details: parameters, context length, template
ollama stop llama3.2 Unload a running model
ollama rm llama3.2 Delete a model
ollama serve Start the server manually (the installer usually runs it as a service)

Call the API

# Chat completion
curl http://localhost:11434/api/chat -d '{
  "model": "llama3.2",
  "messages": [{ "role": "user", "content": "Explain RAG in one sentence." }],
  "stream": false
}'

# Embeddings
curl http://localhost:11434/api/embed -d '{ "model": "nomic-embed-text", "input": "hello" }'

Gotchas

  • Model size must fit in RAM/VRAM; start with small (1B–8B) models on a laptop.
  • Set OLLAMA_HOST=0.0.0.0 only if you really want other machines to reach the server.

Key concepts

Posts using Ollama

AI/ML • 13 min read Reader level: Intermediate

What you'll learn

  • How to set up OpenCode with a free premium model through OpenRouter
  • How to find models that are really free and avoid the common API-key mistake
  • How to beat free-tier rate limits with fallbacks and a small Cloudflare Worker
  • How to add Supabase storage and deploy to Cloudflare for $0
Stop Paying for Tokens: Ship a Real AI Tool on a $0 Stack

Ship a local ticket-triage CLI on Ollama and SQLite. Schema-checked JSON, one stored decision per ticket, and no API token bill.

#ollama#llm#python#ai
AI/ML • 7 min read Reader level: Intermediate

What you'll learn

  • How a full-stack Spring Boot reimbursement app is layered and structured
  • Where AI fits into an everyday business workflow
  • How to configure and run the whole system locally with Docker Compose
  • How to explore the project structure and extend it
AI Corporate Travel Reimbursement System

The AI Corporate Travel Reimbursement System is a full-stack Spring Boot application for managing employee travel reimbursements.

#project#ai#ollama
AI/ML • 7 min read Reader level: Advanced

What you'll learn

  • How a Spring Boot app works as an MCP server for log analysis
  • How Splunk settings map into Java configuration
  • How MCP tools are registered and fetch Splunk or local logs on demand
  • The current limitations and what to improve next
Splunk Log Analysis MCP Agent with Spring Boot and Ollama

A complete guide on building and configuring a Spring Boot AI application that acts as an MCP Server for Splunk log analysis.

#spring-boot#ollama#mcp#splunk