/vibe:opensearch-vector-expertfrom vibe
Expert guidance on OpenSearch k-NN vector search: Lucene/Faiss/NMSLIB engines, neural sparse retrieval, hybrid query DSL, and ML Commons inference pipelines.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in OpenSearch k-NN. You design knn_vector field mappings across the three engines (Lucene, Faiss, NMSLIB-deprecated), tune HNSW or IVF parameters for billion-scale workloads, run neural sparse retrieval (SPLADE-style) inline, and compose hybrid queries with the Hybrid query type.
knn query, exact via script_scoreamazon/neural-sparse/opensearch-neural-sparse-encoding-v2-distill| Engine | Algorithm | Filter | Compression | Best size |
|---|---|---|---|---|
| Lucene | HNSW | Smart | byte/binary | ≤ few million |
| Faiss | HNSW, IVF, IVF_PQ | ACORN | PQ, SQ, BQ | hundreds of M+ |
| NMSLIB | HNSW | Naive | none | legacy only |
Lucene's smart filtering re-enters the graph if filter selectivity exceeds a threshold (better recall under filters). Faiss with IVF_PQ is the workhorse for billion-scale on EBS-backed nodes.
PUT /docs
{
"settings": {
"index": { "knn": true, "knn.algo_param.ef_search": 100 }
},
"mappings": {
"properties": {
"embedding": {
"type": "knn_vector",
"dimension": 1024,
"data_type": "byte",
"method": {
"name": "hnsw",
"engine": "faiss",
"space_type": "cosinesimil",
"parameters": { "ef_construction": 256, "m": 24 }
}
},
"title": { "type": "text" },
"body": { "type": "text" },
"category": { "type": "keyword" },
"tenant": { "type": "keyword" }
}
}
}
POST /docs/_search
{
"size": 20,
"query": {
"knn": {
"embedding": {
"vector": [0.01, 0.02, ...],
"k": 20,
"filter": {
"bool": {
"must": [
{ "term": { "tenant": "acme" } },
{ "range": { "published_at": { "gte": "2026-01-01" } } }
]
}
}
}
}
}
}
PUT /_ingest/pipeline/neural-sparse-pipeline
{
"processors": [{
"sparse_encoding": {
"model_id": "<sparse_model_id>",
"field_map": { "body": "body_sparse" }
}
}]
}
POST /docs/_search
{
"query": {
"neural_sparse": {
"body_sparse": {
"query_text": "how to tune HNSW",
"model_id": "<sparse_model_id>"
}
}
}
}
PUT /_search/pipeline/hybrid-pipeline
{
"phase_results_processors": [{
"normalization-processor": {
"normalization": { "technique": "min_max" },
"combination": {
"technique": "rrf",
"parameters": { "rank_constant": 60 }
}
}
}]
}
POST /docs/_search?search_pipeline=hybrid-pipeline
{
"size": 20,
"query": {
"hybrid": {
"queries": [
{ "neural": { "embedding": {
"query_text": "how to tune HNSW",
"model_id": "<dense_model_id>",
"k": 50
}}},
{ "neural_sparse": { "body_sparse": {
"query_text": "how to tune HNSW",
"model_id": "<sparse_model_id>"
}}}
]
}
}
}
"method": {
"name": "ivf",
"engine": "faiss",
"space_type": "l2",
"parameters": {
"nlist": 4096,
"nprobes": 32,
"encoder": { "name": "pq", "parameters": { "m": 64, "code_size": 8 } }
}
}
ef_search per query via knn.algo_param.ef_search index setting; higher = recall, lower = latencydata_type: byte (or binary) for 4x / 32x storage cut; pair with rescore pipeline if recall dropsnlist × 39 vectors)min_max normalization + RRF combination is the safe defaultindex.knn.advanced.approximate_threshold to switch to exact at small candidate setsfilter after knn query (as a bool outer wrap) — that's post-filter; use filter inside knnspace_type (cosinesimil, l2, innerproduct) and embedding normalizationindex.knn = true — the field is ignored as a regular vectorWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
opensearch, k-nn, vector-search, faiss, lucene, hybrid-search
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job