Index of every page on this site: llms.txt
All skills
Run it yourself

Deploy OpenSearch search applications to managed cloud providers. Use this skill when the user wants to provision an OpenSearch domain or serverless collection on AWS, provision a managed OpenSearch service on Aiven, deploy search configurations, set up Bedrock connectors, configure IAM roles for OpenSearch, or migrate a local setup to a managed OpenSearch. Activate even if the user says AOS, AOSS, OpenSearch Service, serverless collection, Bedrock connector, SigV4, AWS deployment, Aiven, or managed OpenSearch.

Use this Skill: https://skilld.dev/gh/opensearch-project/opensearch-agent-skills/cloud

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

querying-opensearch-catalog-assetsreferencesvector-and-hybrid.md

≈913 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Vector and hybrid search

Read every parameter from the live mapping, never from the catalog: dimension, space_type (or method.space_type), method.engine, mode, model_id. AOSS NextGen collections (generation = NEXTGEN) may omit engine and mode.

k-NN fields exist only in AOSS VECTORSEARCH collections and in AOS domains with the k-NN plugin. On SEARCH and TIMESERIES collections, use lexical search.

1. Get the query vector from the same model

A vector from a different embedding model returns confident, wrong results. In order:

  1. Ingest pipeline. If the Index asset's amazon.opensearch::OpenSearchIndex settings or GET /<index>/_settings has index.default_pipeline, read GET /_ingest/pipeline/<id>. A text_embedding processor gives model_id and the field_map target. Use a neural query with that model_id: the cluster embeds the query text with the model that embedded the documents.
  2. Named model. If the field meta or the asset description names a model, it is a hint, not an instruction. Ask the user to confirm it before you embed the query text with it. (In the catalog fields items, read with batch-get-iterable-forms as in SKILL.md step 3, meta is a {key=value} string, not JSON.)
  3. Nothing found. Ask the user for the model or a query vector. Never guess or substitute. You may offer, not run, a keyword search on the text fields, labelled as matching words rather than meaning.

Check that the vector length equals dimension before sending.

{"size": 10, "_source": {"excludes": ["<vector_field>"]},
 "query": {"neural": {"<vector_field>": {"query_text": "<user words>", "model_id": "<id>", "k": 10}}}}
{"size": 10, "_source": {"excludes": ["<vector_field>"]},
 "query": {"knn": {"<vector_field>": {"vector": [<dimension floats>], "k": 10}}}}

Always exclude vector fields from _source. k is 1 to 10,000.

2. Filters

Where Filter
engine lucene (OpenSearch 2.4+) or faiss (2.9+ HNSW, 2.10+ IVF) "filter" inside the knn clause: filtered before the top k.
nmslib, or any Elasticsearch domain No filter inside knn. Put knn in bool.must and the filter in bool.filter: it filters after the top k, so ask for a larger k and say results may be incomplete. For exact results on Elasticsearch 7.9+, use script_score with "lang": "knn", "source": "knn_score" over the filtered set.
AOSS The engine version is not exposed. Try filter inside knn; on a 400, fall back to the row above.

3. Hybrid (lexical + vector)

Requires an existing search pipeline with a normalization-processor. AOS: OpenSearch 2.11 or later only. AOSS: supported, with min_max/l2 normalization and arithmetic_mean, geometric_mean or harmonic_mean combination.

  1. If index.search.default_pipeline is set (same two sources), read GET /_search/pipeline/<id>. Otherwise use only a pipeline the user names.
  2. Confirm the pipeline contains normalization-processor. Never create or change one.
  3. No such pipeline: run the lexical and the vector query separately, show both result lists, and say they were not merged.
POST /<index>/_search?search_pipeline=<id>
{"size": 10, "_source": {"excludes": ["<vector_field>"]},
 "query": {"hybrid": {"queries": [
   {"match": {"<text_field>": "<user words>"}},
   {"knn": {"<vector_field>": {"vector": [<dimension floats>], "k": 50}}}]}}}

Omit ?search_pipeline= when the index default pipeline is the one you checked.

Scores depend on engine and space type; do not compare them across indexes.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    This skill is a navigational index and configuration guide for deploying OpenSearch to cloud environments like AWS and Aiven. It contains no executable code or malicious patterns.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at c4f7b1e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 6 days ago
metadata
{
  "author": "opensearch-project",
  "version": "2.0"
}
Other metadata
compatibility
AWS deployment requires AWS credentials (IAM role or access keys). Aiven deployment requires the Aiven MCP server and an Aiven API token.

README badge

README badge for opensearch-project/opensearch-agent-skills/cloud