dotnet-ai-embeddings

dotnet-ai-embeddings is a skill for Claude Code, Codex from Arasz/ai-raccoon. It costs 17 tokens per session (4,026 once invoked), scanned A, original, MIT.

A C#/.NET integration and benchmarking guide for text-embedding models. Embeddings turn text into numerical representations that can be compared for similarity, and benchmarking measures retrieval quality and speed.

In plain words
What is it for?
Use it to connect embedding models to a .NET application or compare retrieval quality and latency across models.
Why use it?
It gives different embedding backends one common interface, making their results easier to compare. It covers local, network-compatible, and in-process model options described in the input.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to connect embedding models to a .NET application or compare retrieval quality and latency across models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arasz/ai-raccoon/dotnet-ai-embeddings
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.

Any agent
npx skills add Arasz/ai-raccoon --skill dotnet-ai-embeddings
Clone the repo
git clone --depth 1 https://github.com/Arasz/ai-raccoon

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dotnet-ai-embeddings

README.md
[![agentmods](https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-ai-embeddings/github.svg)](https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-ai-embeddings)
Your own site
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-ai-embeddings"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-ai-embeddings/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dotnet-ai-embeddings

Your own site · 80×15
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-ai-embeddings"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-ai-embeddings.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,026 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00017 $0.04026
Opus 5.5 $0.00007 $0.01610
Sonnet 5.5 $0.00003 $0.00805
Haiku 4.5 $0.00002 $0.00403

Measured yesterday against content hash deadaa381279, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dotnet-ai-embeddings 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 yesterday.

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.

.ai-badger/skills/learned/uncategorized/dotnet-ai-embeddings/SKILL.md · 178 lines

How it starts

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

.NET AI embeddings — integration & benchmarking

Integrating embedding backends into a .NET app, or benchmarking retrieval quality/latency across models. Verified end-to-end on a real project (benchmarks/AiRaccoon.Benchmarks): local GGUF (21 MB all-MiniLM) vs LM Studio (qwen3-0.6b, EmbeddingGemma-300m).

Architecture: everything behind IEmbeddingGenerator

Use Microsoft.Extensions.AI's IEmbeddingGenerator<string, Embedding<float>> as the seam — one interface for every backend, so quality metrics are comparable across models:

Backend Package Wiring
Local GGUF (llama.cpp) LLamaSharp + LLamaSharp.Backend.Cpu LLamaWeights.LoadFromFile + LLamaEmbedder
LM Studio / OpenAI-compatible OpenAI + Microsoft.Extensions.AI.OpenAI OpenAIClient → GetEmbeddingClient(model).AsIEmbeddingGenerator()
In-process ONNX (bundled MiniLM) Microsoft.ML.OnnxRuntime + Microsoft.ML.Tokenizers InferenceSession + BertTokenizer + mean-pool/L2 adapter

Call through the interface type — the extension overloads resolve TInput ambiguously against string[] collection expressions. Use an explicit array variable and cast to IEmbeddingGenerator<string, Embedding<float>> before GenerateAsync(values, options: null, ct).

CRITICAL: LLamaSharp 0.27 embedder bug

LLamaEmbedder's built-in interface GenerateAsync implementation touches a disposed context handle (ObjectDisposedException: SafeLLamaContextHandle). The working path:

var @params = new ModelParams(path) { PoolingType = LLamaPoolingType.Mean }; // NOT Embeddings=true
var weights = LLamaWeights.LoadFromFile(@params);                            // sync load
var embedder = new LLamaEmbedder(weights, @params, NullLogger.Instance);     // 2-3 arg ctor
var embeddings = await embedder.GetEmbeddings(text);                         // works, returns Embeddings (float[][])

Read the full file on GitHub · 178 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 178 lines · 17 tokens per session scan A deadaa381279

Subscribe to this mod's changes

dotnet-ai-embeddings is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 17 tokens to every session and 4,026 once invoked, about $0.0001 per session on Opus 5.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-12-05.

Related

dotnet-ai-embeddings compared with skills from other repositories

dotnet-ai-embeddings next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dotnet-ai-embeddingsArasz/ai-raccoonSkill7todayMITA17Claude Code, Codex
cartographer-kb-ingest-planBeppeTemp/cartographerSkill74yesterdayApache-2.0A94Claude Code, Codex
knowledge-graphariaxhan/kernel-claudeSkill16yesterdayMITA52Claude Code
reward-designbojieli/ai-agent-bookSkill61kyesterdayApache-2.0A131Claude Code, Codex
agent-evolutionbojieli/ai-agent-bookSkill61kyesterdayApache-2.0A126Claude Code, Codex
bad-case-to-dpobojieli/ai-agent-bookSkill61kyesterdayApache-2.0A168Claude Code, Codex
knowledge-orgbojieli/ai-agent-bookSkill61kyesterdayApache-2.0A96Claude Code, Codex