Files
Benson WongandGitHub 6ffd67fdf2
Validate JSON Schema / validate-schema (push) Successful in 37s
Build Containers / build-and-push (cpu) (push) Failing after 39s
Build Containers / build-and-push (cuda) (push) Failing after 30s
Build Containers / build-and-push (cuda13) (push) Failing after 29s
Build Containers / build-and-push (intel) (push) Failing after 30s
Build Containers / build-and-push (musa) (push) Failing after 29s
Build Containers / build-and-push (rocm) (push) Failing after 40s
Build Containers / build-and-push (vulkan) (push) Failing after 32s
Build Containers / delete-untagged-containers (push) Skipped
Linux CI / run-tests (push) Failing after 2m33s
UI Tests / run-tests (push) Successful in 43s
Windows CI / run-tests (push) Canceled after 0s
internal/reference: add indexed docs and /api/tools endpoints (#1054)
Add an Docs agent to the playground that can help the user with more
advanced configuration.

- add mcp 2026-07-28 (stateless mcp) framework 
- add MCP tools for doc search and config search
- add initial set of guides for key topics
- add Docs to the Playground
- removed out of data documentation and plans
2026-08-29 23:43:09 -07:00
..

llama-swap knowledge base

Short, focused articles that the Playground's Docs agent can search and read. Every file here is indexed at build time and served over MCP at /api/mcp, so an LLM running on your own hardware can answer questions about llama-swap using real text instead of guesswork.

Layout

docs/kb/
  guides/
    configuration/*.md
    model-runtime/*.md
    routing/*.md
    connectivity/*.md
    api-integration/*.md
    operations/*.md
  examples/*.md    concrete, copy-pasteable configurations
  tutorials/*.md   start-to-finish walkthroughs

A document's id is its path without the extension, e.g. guides/model-runtime/ttl-and-unloading. Guide IDs include their topic directory. Ids are stable — renaming a file changes its id and breaks links from other articles.

Frontmatter

Every article starts with a YAML frontmatter block:

---
title: Automatic model unloading with ttl
summary: How ttl, globalTTL and unloadTimeout interact, and how to unload on demand.
category: guides
tags: [ttl, unload, vram, memory]
config_keys: [globalTTL, unloadTimeout, models.*.ttl]
updated: 2026-08-25
---

# Automatic model unloading with ttl
...
field required notes
title yes one line, sentence case
summary yes one sentence, under 200 characters — this is what the index listing shows
category yes must match the top-level directory: guides, examples or tutorials
tags no lowercase keywords, used for filtering and search ranking
config_keys no config keys the article explains; each must resolve in config-schema.json
updated no YYYY-MM-DD

TestKB_FrontmatterIsValid in internal/docagent enforces all of the above, including that every config_keys entry is a real key. Run make test-dev after adding an article.

Writing guidelines

  • Keep it short. These get read into a local model's context window, often 4k32k tokens. One screen of text beats three.
  • Don't restate config.example.yaml. It is indexed too, as reference/config/<section>. Link to it and explain the parts that confuse people instead.
  • Show a working config. A fenced yaml block that someone can paste is worth more than a paragraph describing one.
  • Say what goes wrong. The failure modes are the most valuable content here and the hardest to find elsewhere.