agentleFS
Microsoft AzureKnown publisherAzure/documentdb-agent-kit/skills/vector-search/SKILL.md

documentdb-vector-search

Skill7 starsChanged 4 months agoMITView on GitHub

Vector search best practices for Azure DocumentDB using `cosmosSearch` — choosing between DiskANN / HNSW / IVF, creating indexes, tuning `lBuild` / `lSearch` / `maxDegree`, Product Quantization (up to 16,000 dims), half-precision (fp16) indexing, and normalizing embeddings for cosine similarity. Use when building RAG / semantic-search applications, creating a vector index, tuning recall/latency, or reducing vector-index memory footprint.

The file

Files
SKILL.md

Vector Search — Azure DocumentDB (cosmosSearch)

Azure DocumentDB's native vector index type is cosmosSearch. Pick the sub-type by scale:

Index sub-typeScale sweet spotTier
vector-diskann (recommended)Up to 500k+ vectorsM30+
vector-hnswUp to ~50k vectorsM30+
vector-ivfUnder ~10k vectorsM10+

Similarity options: COS (cosine), L2 (Euclidean), IP (inner product).

Rules

  • vector-choose-index-type — Prefer DiskANN for production; use HNSW up to 50k, IVF under 10k.
  • vector-create-diskann-index — Create a vector-diskann index with correct dimensions, similarity, maxDegree, and lBuild.
  • vector-knn-query — Query with $search + cosmosSearch; tune lSearch and k; combine with pre-filters.
  • vector-product-quantization — Shrink high-dimensional vectors (up to 16,000 dims) while preserving recall.
  • vector-half-precision — Halve vector memory with fp16 indexing and minimal recall loss.
  • vector-normalize-embeddings — Normalize embeddings when using cosine similarity; store model + dimensions alongside vectors.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.