embedding

Commands for inspecting embedding models and checking vector dimensions. Embeddings are numeric representations of text used by search and other software to compare meaning.

In plain words
What is it for?
Use them to list models from supported providers or run a short probe that reports the selected model's dimensions and response time, including JSON output.
Why use it?
They help confirm which provider and model are configured, whether model discovery is available, and what vector size the service returns.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/geckse/markdown-vdb/embedding
Clone the repo
git clone --depth 1 https://github.com/geckse/markdown-vdb
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 681 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00009 $0.00681
Opus 5 $0.00005 $0.00341
Sonnet 5 $0.00002 $0.00136
Haiku 4.5 $0.00001 $0.00068

Measured 2d ago against content hash 7af7669fc4d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

embedding scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/cli/commands/embedding.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

mdvdb embedding

Inspect a provider's live model catalog or make one minimal inference to verify the configured provider, model, credentials, and vector dimensions.

Usage

mdvdb embedding <COMMAND> [OPTIONS]
Command Description
models [--provider <PROVIDER>] List models reported by a provider's live catalog
probe Embed one short probe input and report the resolved dimensions and latency

The commands also accept all global options, including --json and --root.

List models

# Use the configured provider
mdvdb embedding models

# Temporarily select a provider for discovery
mdvdb embedding models --provider gemini

# Consume the catalog as JSON
mdvdb embedding models --provider huggingface --json

Canonical provider names are openai, openrouter, gemini, azure, bedrock, huggingface, ollama, and custom. Accepted aliases include google, azure-openai, aws-bedrock, and hf.

Catalog support varies by provider. OpenAI, Azure OpenAI, Ollama, and Custom currently return discovery_available: false; enter their model IDs directly. Other providers may still return no catalog if the remote service does not expose one.

{
  "provider": "gemini",
  "discovery_available": true,
  "models": [
    {
      "id": "models/gemini-embedding-001",
      "name": "Gemini Embedding 001",
      "input_token_limit": 2048
    }
  ]
}

Each model has an opaque id; name and input_token_limit may be null because provider catalogs expose different metadata.

Probe the configured model

mdvdb embedding probe
mdvdb embedding probe --json

Human-readable output has the form:

openrouter · openai/text-embedding-3-small · 1536 dimensions · 184 ms

JSON output:

{
  "provider": "openrouter",
  "model": "openai/text-embedding-3-small",
  "dimensions": 1536,
  "latency_ms": 184
}

probe uses the configured provider; it has no provider override. It performs a real one-input embedding request, so it requires valid credentials/connectivity and may count toward provider usage. The returned vector itself is never printed.

Read the full file on GitHub · 91 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 91 lines · 9 tokens per session scan A 7af7669fc4d2

Subscribe to this mod's changes

embedding is a command published in the GitHub repository geckse/markdown-vdb (23 stars, last pushed 18d ago), licensed MIT. It adds 9 tokens to every session and 681 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories