Skip to content
Back to skills

Vector Databases

ASecurity

Design and query vector databases cleanly with aligned embeddings, metadata pre-filtering, HNSW tuning, and hybrid search

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
ai-agentsnodedatabase

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill vector-databases --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vector Databases?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vector Databases
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-vector-databases-anvil/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-vector-databases-anvil)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: vector-databases
description: Design and query vector databases cleanly with aligned embeddings, metadata pre-filtering, HNSW tuning, and hybrid search
---

<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->

# Vector databases

Use when adding, indexing, or tuning similarity search in vector stores such as pgvector, Qdrant, Pinecone, or Weaviate.

## Indexing and embeddings
- Store the `embedding_model` and `model_version` alongside vectors so re-indexing triggers cleanly on model changes.
- Match distance metrics (cosine, dot-product, L2) explicitly between training normalization and index creation.
- Tune HNSW build parameters (`m`, `ef_construction`) for recall vs memory, and adjust query-time `ef_search` before scaling nodes.

## Filtering and hybrid retrieval
- Apply metadata pre-filtering (tenant ID, permissions, deleted flags) inside the index query rather than post-filtering top-K results.
- Combine dense semantic search with sparse lexical search (BM25 / `tsvector`) using Reciprocal Rank Fusion when exact codes or identifiers matter.
- Keep vector updates idempotent with deterministic document chunk IDs and delete stale chunks on source edits.

## Verify
Measure recall@K against an exact scan baseline, latency at p95 under concurrent filtered queries, and tenant isolation boundaries.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.