opensearch-project/opensearch-agent-skills/managed-ingestion-service
Claude Code and agent skill by opensearch-project/opensearch-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Ingest documents at scale into Amazon OpenSearch using OpenSearch Ingestion Service (OSIS) pipelines. Upload pre-generated JSONL chunks to S3 and OSIS indexes them — optionally using semantic_enrichment in the sink to create the index with ASE automatically. Cloud ingestion — uploading raw PDF/DOCX and letting document_extractor parse them in the cloud — is available via private beta. Use this skill when the user wants to ingest documents into a cloud OpenSearch domain or collection, process do…
Install
npx vskill@latest install opensearch-project/opensearch-agent-skills/managed-ingestion-serviceSKILL.md
Managed Ingestion Service
Overview
Ingest documents into Amazon OpenSearch at scale via OSIS pipelines. Supports both Amazon OpenSearch Service (AOS) domains and Amazon OpenSearch Serverless (AOSS) collections.
When to Use
- User has an OpenSearch domain or AOSS collection and wants to ingest documents at scale
- User wants to move from local development to cloud ingestion
- User mentions OSIS, S3 ingestion, cloud processing, managed ingestion
Ingestion Paths
| Path | Upload to S3 | OSIS Processor | Status | Best for | |
|---|---|---|---|---|---|
| Local processing | JSONL chunks (from local Docling) | parse_json (pass-through) | Available now | Validated locally, deploy at scale | |
| Cloud ingestion | Raw PDF/DOCX/PPTX/XLSX | document_extractor | Private beta | Full cloud processing, no local compute |
Both paths support the same sink options — the only difference is source content and processor.
Key Constraints
- AWS credentials must be configured; check first and stop if missing
- AOS domains: must be running OpenSearch 2.19+ for ASE; public domains only (no VPC)
- AOSS collections: must be in ACTIVE state before creating the pipeline
- The IAM role (
sts_role_arn) must have S3 read + OpenSearch write permissions - When using
semantic_enrichment: it creates the index automatically — do NOT create it manually parse_jsonis the OSIS processor (parses JSONL lines);semantic_enrichmentis in the sink (applies embeddings when writing) — they are independent- Save generated YAML to
.opensearch/pipelines/<pipeline-name>.yaml
Entry Point
Step 1: Validate credentials
If this fails, stop and ask the user to configure credentials.
Step 2: Determine the deploy target
Ask: "Are you ingesting into an Amazon OpenSearch Service (AOS) domain or an OpenSearch Serverless (AOSS) collection?"
AOS domain:
- Must be running OpenSearch 2.19+ for semantic_enrichment
- Verify the domain exists and is in ACTIVE state:
``bash aws opensearch describe-domain --domain-name <domain-name> --region <region> ``
AOSS collection:
- Verify it's ACTIVE:
``bash aws opensearchserverless batch-get-collection \ --ids <collection-id> --region <region> ``
If the user needs a new domain/collection, provision one using the aws-setup skill. Wait until ACTIVE, then continue here.
Step 3: Determine the data source
Ask: "Do you already have JSONL chunks, or do you have raw documents (PDF/DOCX) that need processing?"
If the user already has JSONL chunks:
- Validate the JSONL format: each line must be valid JSON with text fields that can be enriched.
- Proceed to Step 4.
If the user has raw documents (PDF/DOCX/etc.):
Present both options to the user:
I see you have raw PDF documents. There are two ways to process them for ingestion:Option A — Cloud ingestion (recommended for scale)Upload your PDFs directly to S3 and let the cloud handle parsing, chunking, and indexing with ASE (automatic sparse embeddings) — no local compute needed. This is currently in private beta.👉 To get access, email opensearch-agent-skills-interests@amazon.com with your AWS account ID and region.Option B — Local processing (available now)Process your PDFs locally with Docling to produce JSONL chunks, then upload those to S3 for cloud ingestion. Gives you full control over chunk quality.Which would you prefer? (Or if you'd like to get started immediately, I'll go with Option B while you wait for beta access.)
- If the user chooses Option A: confirm they should email opensearch-agent-skills-interests@amazon.com, and offer to proceed with Option B in the meantime.
- If the user chooses Option B: proceed with document_processing_guide.md. Once chunks are ready at
.opensearch/chunks/<index>/, return here and continue to Step 4.
Step 4: Gather parameters
Collect from the user (one at a time):
- Deploy target — AOS domain endpoint or AOSS collection endpoint
- S3 bucket name — where chunks will be uploaded
- S3 prefix — key prefix for source files (e.g.,
chunks/input) - Target index name — will be created by
semantic_enrichmentif new; or an existing index - IAM role ARN — for OSIS pipeline (or offer to create one)
- Network policy name — (AOSS only) network policy allowing OSIS access
- Region — AWS region
Step 5: Determine the sink mode
Ask: "Do you already have an existing index to ingest into, or should I create a new one with automatic semantic enrichment (ASE)?"
Path A — Existing index (no semantic_enrichment):
- The user already has an index with mappings configured.
- Use the plain opensearch sink (no
semantic_enrichmentblock). - Documents are written directly without automatic embedding.
- Proceed with Pipeline YAML — Existing Index.
Path B — New index (with semantic_enrichment / ASE):
- OSIS creates the index automatically with ASE.
- Ask: "Which text fields in your chunks should have semantic enrichment (sparse embeddings)?"
- The user should specify the field names from their JSONL that contain natural language text
(e.g., text, title, description, summary).
- Each field is enriched independently — ASE generates sparse vectors for each specified field.
- Proceed with Pipeline YAML — New Index with Semantic Enrichment.
Note:semantic_enrichmentis about which text fields get sparse embeddings — it isnot tied to any particular "search strategy." Any text field that contains natural languageand should be semantically searchable should be listed.
Step 6: Upload to S3
Upload your locally-prepared chunks:
For multiple files:
Step 7: Create OSIS pipeline
Generate the YAML based on the selected path and sink mode, save to .opensearch/pipelines/<pipeline-name>.yaml, then create:
Step 8: Verify
Poll until ACTIVE:
Then verify documents are indexed (check doc count, test a match query — if ASE is configured, it rewrites match queries to neural sparse automatically).
Pipeline YAML — Local Chunking + New Index (AOSS with semantic_enrichment)
Pipeline YAML — Local Chunking + New Index (AOS domain with semantic_enrichment)
Key difference from AOSS: no serverless: true or serverless_options block.
Pipeline YAML — Existing Index (no semantic_enrichment)
Use this when the user already has an index with mappings configured.
For AOSS:
For AOS:
Key points:
- No
semantic_enrichment— the index already exists with its own mappings - Documents are written directly without automatic embedding
- Use this when the user manages their own index lifecycle
Cloud Ingestion (private beta)
Private beta. Cloud ingestion lets you upload raw documents (PDF/DOCX) directly to S3and have the OSIS pipeline handle parsing, chunking, and indexing end-to-end — no localcompute needed. Contact opensearch-agent-skills-interests@amazon.com to onboard.Pipeline YAML will be provided during onboarding.
Key Concepts
parse_json vs semantic_enrichment
These are independent components at different stages of the pipeline:
| Component | Stage | Purpose | |
|---|---|---|---|
parse_json | Processor | Parses each JSONL line into a structured JSON document | |
semantic_enrichment | Sink | Applies sparse embeddings to specified text fields when writing to the index |
You can use parse_json without semantic_enrichment (existing index) or with it (new index + ASE).
semantic_enrichment field selection
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/opensearch-skills/cloud/managed-ingestion-service/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/opensearch-project/opensearch-agent-skills/managed-ingestion-service)