All skills
aws avatar

/amazon-opensearch-service

@04f39cf

Guides migration, provisioning, search, log-analytics, trace-analytics, and Agentic AI Assistant workflows for Amazon OpenSearch Service and Serverless across six capabilities — migration (Solr/ES/self-managed into AOS/AOSS, schema/query translation, sizing, cutover); provisioning (domain + AOSS lifecycle, upgrades, FGAC, monitoring); search (vector / semantic / hybrid / RAG with Bedrock); log-analytics (PPL, OSI, anomaly detection, Dashboards); trace-analytics (OTel spans, service maps, Data Prepper); ai-assistant (natural language data exploration, incident investigation, root cause analysis). Triggers on OpenSearch, AOS, AOSS, Elasticsearch, Solr, vector/k-NN/semantic/hybrid search, RAG, log analytics, PPL, trace analytics, ISM, FAISS, HNSW, Migration Assistant, UltraWarm, OR1, query my data, analyze logs, investigate errors, root cause analysis.

Use this Skill: https://skilld.dev/gh/aws/agent-toolkit-for-aws/amazon-opensearch-service

This session only. Nothing lands on disk.

referencessearch-index-config.md

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

Index Configuration for AOS/AOSS

Creating Indices with Vector Fields

Semantic Search Index (k-NN enabled)

PUT /my-index
{
  "settings": {
    "index": {
      "knn": true,
      "default_pipeline": "my-ingest-pipeline"
    }
  },
  "mappings": {
    "properties": {
      "text": {"type": "text"},
      "embedding": {
        "type": "knn_vector",
        "dimension": 1024,
        "method": {"engine": "faiss", "name": "hnsw", "space_type": "l2"}
      }
    }
  }
}

Hybrid Search Index (BM25 + vector)

PUT /my-hybrid-index
{
  "settings": {
    "index": {"knn": true, "default_pipeline": "hybrid-ingest-pipeline"}
  },
  "mappings": {
    "properties": {
      "title": {"type": "text"},
      "content": {"type": "text"},
      "content_embedding": {
        "type": "knn_vector",
        "dimension": 1024,
        "method": {"engine": "faiss", "name": "hnsw", "space_type": "l2"}
      }
    }
  }
}

Ingest Pipeline Configuration

Neural Ingest Pipeline

PUT /_ingest/pipeline/my-ingest-pipeline
{
  "processors": [{
    "text_embedding": {
      "model_id": "<model_id>",
      "field_map": {"text": "embedding"}
    }
  }]
}

Search Pipeline Configuration

Hybrid Search Pipeline (normalization + combination)

PUT /_search/pipeline/hybrid-search-pipeline
{
  "phase_results_processors": [{
    "normalization-processor": {
      "normalization": {"technique": "min_max"},
      "combination": {"technique": "arithmetic_mean", "parameters": {"weights": [0.3, 0.7]}}
    }
  }]
}

Example Hybrid Query

POST /my-hybrid-index/_search?search_pipeline=hybrid-search-pipeline
{
  "query": {
    "hybrid": {
      "queries": [
        {"match": {"content": "search query"}},
        {"neural": {"content_embedding": {"query_text": "search query", "model_id": "<model_id>", "k": 10}}}
      ]
    }
  }
}

AOSS Constraints

  • AOSS supports HNSW with Faiss engine only (no IVF, no Lucene engine). NMSLIB is removed in OS 3.x. For the engine matrix, see vector-knn.md.
  • AOSS collections are either SEARCH or VECTORSEARCH type — choose VECTORSEARCH for k-NN
  • Index names must not start with underscore on AOSS
  • AOSS does not support ISM policies — lifecycle is managed at the collection level

Ensure AOSS encryption at rest is enabled before indexing embeddings. Use SigV4 authentication for all operations.

Source: SKILL.md on GitHub

No alerts28d3 checks · Risk SAFE
  • Gen Agent Trust Hub28d

    This skill is a highly structured and security-conscious guide for managing Amazon OpenSearch Service and Serverless. It provides comprehensive instructions for migrations, provisioning, and analytics while strictly adhering to AWS security best practices, such as using SigV4 signing, IAM least-privilege, and AWS Secrets Manager for credential handling.

  • Socket28d

    No alerts

  • Snyk28d

    Risk: LOW · No issues

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

Last checked against GitHub yesterday.

Activeupdated 2 months ago
metadata
{
  "version": "2"
}

README badge

README badge for aws/agent-toolkit-for-aws/amazon-opensearch-service