alicloud-ai-search-opensearch
Use OpenSearch vector search edition via the Python SDK (ha3engine) to push documents and run HA/SQL searches. Ideal for RAG and vector retrieval pipelines in Claude Code/Codex.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/cinience/alicloud-ai-search-opensearchWhat This Skill Does
The alicloud-ai-search-opensearch skill enables the OpenClaw agent to interface directly with Alibaba Cloud OpenSearch Vector Search Edition. By utilizing the alibabacloud-ha3engine Python SDK, the agent can programmatically push documents, perform complex HA (High Availability) queries, and execute SQL-style searches against your indexed data. This skill is engineered to streamline RAG (Retrieval-Augmented Generation) pipelines, allowing the agent to perform vector-based semantic retrieval or structured SQL filtering seamlessly within its workspace.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/cinience/alicloud-ai-search-opensearch
Ensure you have a configured Python virtual environment, as the SDK requires specific dependencies. After installation, define the mandatory environment variables in your configuration: OPENSEARCH_ENDPOINT, OPENSEARCH_INSTANCE_ID, OPENSEARCH_USERNAME, OPENSEARCH_PASSWORD, and OPENSEARCH_DATASOURCE. These credentials enable the agent to authenticate and interact with your specific OpenSearch instance.
Use Cases
- RAG Pipeline Orchestration: Automatically index new documentation or internal knowledge base entries so the agent can provide context-aware responses.
- Vector Retrieval: Perform high-speed semantic searches to find relevant information based on embeddings for complex queries.
- Structured Data Analysis: Execute SQL queries on OpenSearch indices to extract insights from structured document fields, useful for log analysis or metadata reporting.
- Content Management: Handle real-time updates by pushing additions or deletions to your searchable indices as the project evolves.
Example Prompts
- "Index the current file content into the OpenSearch vector store using the 'general' datasource."
- "Search the knowledge base for documents matching 'API authentication' and return the top 5 results."
- "Run a SQL query to select all document IDs from the 'tech-docs' index where the category is 'security'."
Tips & Limitations
- Large Queries: If your search criteria exceed 30KB, please switch to the RESTful search API, as the SDK is optimized for standard query execution.
- Primary Key Management: Always specify your unique primary key field (defaulting to 'id') when pushing documents to avoid indexing conflicts.
- Performance: HA queries are significantly faster for vector-keyword hybrid retrieval; prefer these over SQL for latency-sensitive applications.
- Security: Never hardcode credentials in scripts; always utilize the environment variables defined in the prerequisites to maintain a secure posture.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-cinience-alicloud-ai-search-opensearch": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api, code-execution
Related Skills
volcengine-compute-ecs
Manage Volcengine ECS instances and related resources. Use when users need instance inventory, lifecycle operations, troubleshooting, or automation templates for ECS.
alicloud-storage-oss-ossutil
Alibaba Cloud OSS CLI (ossutil 2.0) skill. Install, configure, and operate OSS from the command line based on the official ossutil overview.
alicloud-platform-openapi-product-api-discovery
Discover and reconcile Alibaba Cloud product catalogs from Ticket System, Support & Service, and BSS OpenAPI; fetch OpenAPI product/version/API metadata; and summarize API coverage to plan new skills. Use when you need a complete product list, product-to-API mapping, or coverage/gap reports for skill generation.
alicloud-observability-sls-log-query
Query and troubleshoot logs in Alibaba Cloud Log Service (SLS) using query|analysis syntax and the Python SDK. Use for time-bounded log search, error investigation, and root-cause analysis workflows.
alicloud-ai-image-qwen-image
Generate images with Model Studio DashScope SDK using Qwen Image generation models (qwen-image, qwen-image-plus, qwen-image-max and snapshots). Use when implementing or documenting image.generate requests/responses, mapping prompt/negative_prompt/size/seed/reference_image, or integrating image generation into the video-agent pipeline.