Agent Memory Providers Compared: Eight Backends for Persistent Agents

Agent Memory Providers Compared: Eight Backends for Persistent Agents

3 min read

Assistants forget everything at tab-close unless something persists past the context window. Memory providers — services or libraries holding facts and summaries across sessions, usually wired as plugins — keep the framework thin while memory scales. Eight backends cover the space from zero-dependency local to enterprise cloud.

Two DGX Spark 128 GB Units for Local AI: Single Node vs Ray Clustered vLLM in Grafana

Two DGX Spark 128 GB Units for Local AI: Single Node vs Ray Clustered vLLM in Grafana

13 min read

We bought two NVIDIA DGX Spark units with 128 GB of unified memory each to run large language models locally. Before trusting them with real workloads, we needed to know how they behave under load: one node by itself, two nodes as a Ray cluster with tensor parallelism, and anywhere from one to sixteen people sending requests at the same time.

This post is the step-by-step record of how we measured it and how we visualized the results in Grafana. The monitoring stack — Prometheus and Grafana — runs on a separate server, while both DGX Spark nodes run vLLM under a Ray distributed executor. It covers preparing the nodes, running vLLM on a single node and across the Ray cluster, benchmarking with 1, 4, 8, and 16 concurrent users, scraping vLLM metrics into Prometheus, and building the Grafana dashboards that made the comparison readable.

Two DGX Spark 128 GB Units for Local AI: Single Node vs Nginx Load-Balanced vLLM in Grafana

Two DGX Spark 128 GB Units for Local AI: Single Node vs Nginx Load-Balanced vLLM in Grafana

12 min read

We bought two NVIDIA DGX Spark units with 128 GB of unified memory each to run large language models locally. Before trusting them with real workloads, we needed to know how they behave under load: one node by itself, two nodes behind a load balancer, and anywhere from one to sixteen people sending requests at the same time.

This post is the step-by-step record of how we measured it and how we visualized the results in Grafana. The monitoring stack — Prometheus, Grafana, and the Nginx load balancer — runs on a separate server, while both DGX Spark nodes run independent vLLM instances. It covers preparing the nodes, running vLLM on a single node and across two load-balanced instances, benchmarking with 1, 4, 8, and 16 concurrent users, scraping vLLM metrics into Prometheus, and building the Grafana dashboards that made the comparison readable.

Shared KV Cache Across Two DGX Spark Units: Valkey Cluster, Local SSD, and P2P Options

Shared KV Cache Across Two DGX Spark Units: Valkey Cluster, Local SSD, and P2P Options

10 min read

Two NVIDIA DGX Spark units running independent vLLM instances have a blind spot: vLLM’s prefix cache is per-node. A request landing on spark-2 cannot reuse the KV cache blocks that spark-1 already computed for the same prompt prefix. Every node cold-starts its own KV cache, so repeated prompts and multi-turn conversations pay the prefill penalty on every hop.

This post documents how to share KV cache across both DGX Spark nodes using LMCache, a standalone KV cache layer for LLM inference. It compares three native storage backends — a Valkey cluster on both nodes, local SSD per node, and direct P2P transfer over the ConnectX-7 NIC — with no custom Python or dispatcher code required.

Monitoring a Self-Hosted LLM Stack: vLLM, Phoenix, and Grafana Measurements

Monitoring a Self-Hosted LLM Stack: vLLM, Phoenix, and Grafana Measurements

9 min read

Running a self-hosted LLM stack produces signals on several axes at once — serving health, per-tenant token consumption, response quality, and full request traces. Classic web monitoring does not capture most of them. Tokens, batching, KV cache pressure, queue dynamics, inter-token latency, and trace spans all need their own measurement.

This post is a practical guide to monitoring a self-hosted LLM inference stack. It covers what to measure at each layer (vLLM serving, AI Gateway access, Phoenix tracing and evaluation), which PromQL queries turn raw metrics into dashboards, how KEDA autoscaling consumes the signals, and which SLOs and alerts belong on the platform. The examples assume two NVIDIA DGX Spark units running vLLM, but the metrics and queries apply to any vLLM-based stack.

Managing Documents with Local LLMs and Self-Hosted Apps

Managing Documents with Local LLMs and Self-Hosted Apps

7 min read

I stopped relying on cloud AI services for document management. Instead, I run a self-hosted stack of Paperless-ngx, Paperless-GPT, and Paperless AI, backed by local LLMs through Ollama. Nothing leaves my network: academic records, certificates, invoices, tax filings, and receipts all stay on my own hardware.

This post documents the stack I built to manage documents locally: how Paperless-ngx serves as the central document hub, how Paperless-GPT handles OCR, how Paperless AI provides RAG-powered chat over the archive, and how everything connects to a local Ollama instance running Qwen 3, MiniCPM-V, and Llama 3.2.

Gatewaying Two DGX Spark vLLM Nodes with vLLM Semantic Router

Gatewaying Two DGX Spark vLLM Nodes with vLLM Semantic Router

9 min read

You now have two NVIDIA DGX Spark units running vLLM, and you have measured them: one node alone, two nodes behind Nginx load balancing, and two nodes as a Ray cluster. The next question is what sits in front of them: how do you decide which node gets which request, how do you enforce guardrails, and how do you cache repeated queries without hitting the model at all?

This post covers vLLM Semantic Router as the gateway layer in front of your two DGX Spark nodes. It selects or combines backends per request based on policy, runs guardrails (jailbreak, PII, hallucination detection), and caches semantically similar queries. We walk through installing it, wiring it to spark-1 and spark-2, defining routes, and adding its metrics to the same Prometheus and Grafana stack you already built.

Building a Self-Evaluating RAG System: Hybrid Search, Routing, and LLM-as-Judge

Building a Self-Evaluating RAG System: Hybrid Search, Routing, and LLM-as-Judge

8 min read

Most RAG systems are demos: they retrieve chunks and generate an answer immediately, with no check on whether the retrieved context is relevant, sufficient, or even correct. When retrieval misses, the model hallucinates. There is no recovery loop, no quality signal, and no way to tell which step produced a bad answer.

This post documents how to build a self-evaluating RAG system that routes queries, retrieves with hybrid search, and evaluates its own answers using LLM-as-judge. It is built in three cooperating parts:

  1. Hybrid search and retrieval — dense + BM25 vectors with int8 quantization in Qdrant, RRF fusion, payload filtering, and multi-year balanced fetch.
  2. Agent and MCP — a LangGraph ReAct loop with routing guardrails, wrapped in FastMCP and exposed through a Streamlit UI.
  3. Observability and evaluation — Arize Phoenix tracing plus LLM-as-judge scoring for hallucination, QA correctness, and context relevance.

The LLM provider layer is shared: Ollama (local llama3.2, nomic-embed-text) or Gemini API (gemini-2.5-flash-lite), switchable via environment variable with no code changes.

Kanban in Hermes: Dispatching Agents Without DDoSing Your Own GPU

Kanban in Hermes: Dispatching Agents Without DDoSing Your Own GPU

3 min read

Hermes Agent ships a durable Kanban board whose dispatcher happily promotes every ready task at once — fine against elastic cloud APIs, a self-inflicted denial of service against one small GPU cluster. Uncapped promotion floods the gateway with concurrent requests and turns throughput into queueing, thrashing, and timeouts.

Second Brain for Engineers: Notes Are Storage, Systems Compute

Second Brain for Engineers: Notes Are Storage, Systems Compute

3 min read

Overload isn’t volume — it’s unresolved inputs never resurfacing when useful. A second brain externalizes thinking so the biological one spends less on storage and more on interpretation, connection, and output: not a note app, but a loop turning scattered inputs into reusable thinking.