feat: wire AI inference to local ollama #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/ollama-ai"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Enables karakeep's AI layer (auto-tagging, OCR, semantic search) against the homelab's local ollama (CUDA 12.9 build on Maxwell-class GPUs).
Config-only change — the current image runs web+workers via s6-overlay in one container, so no new workloads:
OLLAMA_BASE_URL-> the k3s master node's ollama service (native ollama API;OPENAI_API_KEYdeliberately absent — it would take precedence and break ollama inference)INFERENCE_TEXT_MODEL=qwen3:8b— tagging/summarization/chatINFERENCE_IMAGE_MODEL=deepseek-ocr— OCR of image assetsEMBEDDING_TEXT_MODEL=nomic-embed-text(768-dim) + auto-indexing → semantic/hybrid search via MeilisearchINFERENCE_CONTEXT_LENGTH=4096,INFERENCE_JOB_TIMEOUT_SEC=120(local inference is slower than cloud),OLLAMA_KEEP_ALIVE=5mModels are pulled by the flake's
services.ollama.loadModels(separate .nix change).Deploy: no crow CI on this repo — merge, then
pulumi up -s devfrom the workstation. Pod restarts, s6 runs the DB migration, AI jobs start processing new saves.If tagging comes back empty: flip
INFERENCE_OUTPUT_SCHEMA=plain(qwen3 structured output via ollama may need it).