{
  "schemaVersion": "1.0",
  "item": {
    "slug": "alicloud-ai-search-opensearch",
    "name": "Alicloud Ai Search Opensearch",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/cinience/alicloud-ai-search-opensearch",
    "canonicalUrl": "https://clawhub.ai/cinience/alicloud-ai-search-opensearch",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/alicloud-ai-search-opensearch",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=alicloud-ai-search-opensearch",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "agents/openai.yaml",
      "references/sources.md",
      "scripts/quickstart.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/alicloud-ai-search-opensearch"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/alicloud-ai-search-opensearch",
    "agentPageUrl": "https://openagent3.xyz/skills/alicloud-ai-search-opensearch/agent",
    "manifestUrl": "https://openagent3.xyz/skills/alicloud-ai-search-opensearch/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/alicloud-ai-search-opensearch/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "OpenSearch Vector Search Edition",
        "body": "Use the ha3engine SDK to push documents and execute HA/SQL searches. This skill focuses on API/SDK usage only (no console steps)."
      },
      {
        "title": "Prerequisites",
        "body": "Install SDK (recommended in a venv to avoid PEP 668 limits):\n\npython3 -m venv .venv\n. .venv/bin/activate\npython -m pip install alibabacloud-ha3engine\n\nProvide connection config via environment variables:\n\nOPENSEARCH_ENDPOINT (API domain)\nOPENSEARCH_INSTANCE_ID\nOPENSEARCH_USERNAME\nOPENSEARCH_PASSWORD\nOPENSEARCH_DATASOURCE (data source name)\nOPENSEARCH_PK_FIELD (primary key field name)"
      },
      {
        "title": "Quickstart (push + search)",
        "body": "import os\nfrom alibabacloud_ha3engine import models, client\nfrom Tea.exceptions import TeaException, RetryError\n\ncfg = models.Config(\n    endpoint=os.getenv(\"OPENSEARCH_ENDPOINT\"),\n    instance_id=os.getenv(\"OPENSEARCH_INSTANCE_ID\"),\n    protocol=\"http\",\n    access_user_name=os.getenv(\"OPENSEARCH_USERNAME\"),\n    access_pass_word=os.getenv(\"OPENSEARCH_PASSWORD\"),\n)\nha3 = client.Client(cfg)\n\ndef push_docs():\n    data_source = os.getenv(\"OPENSEARCH_DATASOURCE\")\n    pk_field = os.getenv(\"OPENSEARCH_PK_FIELD\", \"id\")\n\n    documents = [\n        {\"fields\": {\"id\": 1, \"title\": \"hello\", \"content\": \"world\"}, \"cmd\": \"add\"},\n        {\"fields\": {\"id\": 2, \"title\": \"faq\", \"content\": \"vector search\"}, \"cmd\": \"add\"},\n    ]\n    req = models.PushDocumentsRequestModel({}, documents)\n    return ha3.push_documents(data_source, pk_field, req)\n\n\ndef search_ha():\n    # HA query example. Replace cluster/table names as needed.\n    query_str = (\n        \"config=hit:5,format:json,qrs_chain:search\"\n        \"&&query=title:hello\"\n        \"&&cluster=general\"\n    )\n    ha_query = models.SearchQuery(query=query_str)\n    req = models.SearchRequestModel({}, ha_query)\n    return ha3.search(req)\n\ntry:\n    print(push_docs().body)\n    print(search_ha())\nexcept (TeaException, RetryError) as e:\n    print(e)"
      },
      {
        "title": "Script quickstart",
        "body": "python skills/ai/search/alicloud-ai-search-opensearch/scripts/quickstart.py\n\nEnvironment variables:\n\nOPENSEARCH_ENDPOINT\nOPENSEARCH_INSTANCE_ID\nOPENSEARCH_USERNAME\nOPENSEARCH_PASSWORD\nOPENSEARCH_DATASOURCE\nOPENSEARCH_PK_FIELD (optional, default id)\nOPENSEARCH_CLUSTER (optional, default general)\n\nOptional args: --cluster, --hit, --query."
      },
      {
        "title": "SQL-style search",
        "body": "from alibabacloud_ha3engine import models\n\nsql = \"select * from <indexTableName>&&kvpair=trace:INFO;formatType:json\"\nsql_query = models.SearchQuery(sql=sql)\nreq = models.SearchRequestModel({}, sql_query)\nresp = ha3.search(req)\nprint(resp)"
      },
      {
        "title": "Notes for Claude Code/Codex",
        "body": "Use push_documents for add/delete updates.\nLarge query strings (>30KB) should use the RESTful search API.\nHA queries are fast and flexible for vector + keyword retrieval; SQL is helpful for structured data."
      },
      {
        "title": "Error handling",
        "body": "Auth errors: verify username/password and instance access.\n4xx on push: check schema fields and pk_field alignment.\n5xx: retry with backoff."
      },
      {
        "title": "Validation",
        "body": "mkdir -p output/alicloud-ai-search-opensearch\nfor f in skills/ai/search/alicloud-ai-search-opensearch/scripts/*.py; do\n  python3 -m py_compile \"$f\"\ndone\necho \"py_compile_ok\" > output/alicloud-ai-search-opensearch/validate.txt\n\nPass criteria: command exits 0 and output/alicloud-ai-search-opensearch/validate.txt is generated."
      },
      {
        "title": "Output And Evidence",
        "body": "Save artifacts, command outputs, and API response summaries under output/alicloud-ai-search-opensearch/.\nInclude key parameters (region/resource id/time range) in evidence files for reproducibility."
      },
      {
        "title": "Workflow",
        "body": "Confirm user intent, region, identifiers, and whether the operation is read-only or mutating.\nRun one minimal read-only query first to verify connectivity and permissions.\nExecute the target operation with explicit parameters and bounded scope.\nVerify results and save output/evidence files."
      },
      {
        "title": "References",
        "body": "SDK package: alibabacloud-ha3engine\n\n\nDemos: data push and HA/SQL search demos in OpenSearch docs\n\n\nSource list: references/sources.md"
      }
    ],
    "body": "Category: provider\n\nOpenSearch Vector Search Edition\n\nUse the ha3engine SDK to push documents and execute HA/SQL searches. This skill focuses on API/SDK usage only (no console steps).\n\nPrerequisites\nInstall SDK (recommended in a venv to avoid PEP 668 limits):\npython3 -m venv .venv\n. .venv/bin/activate\npython -m pip install alibabacloud-ha3engine\n\nProvide connection config via environment variables:\nOPENSEARCH_ENDPOINT (API domain)\nOPENSEARCH_INSTANCE_ID\nOPENSEARCH_USERNAME\nOPENSEARCH_PASSWORD\nOPENSEARCH_DATASOURCE (data source name)\nOPENSEARCH_PK_FIELD (primary key field name)\nQuickstart (push + search)\nimport os\nfrom alibabacloud_ha3engine import models, client\nfrom Tea.exceptions import TeaException, RetryError\n\ncfg = models.Config(\n    endpoint=os.getenv(\"OPENSEARCH_ENDPOINT\"),\n    instance_id=os.getenv(\"OPENSEARCH_INSTANCE_ID\"),\n    protocol=\"http\",\n    access_user_name=os.getenv(\"OPENSEARCH_USERNAME\"),\n    access_pass_word=os.getenv(\"OPENSEARCH_PASSWORD\"),\n)\nha3 = client.Client(cfg)\n\ndef push_docs():\n    data_source = os.getenv(\"OPENSEARCH_DATASOURCE\")\n    pk_field = os.getenv(\"OPENSEARCH_PK_FIELD\", \"id\")\n\n    documents = [\n        {\"fields\": {\"id\": 1, \"title\": \"hello\", \"content\": \"world\"}, \"cmd\": \"add\"},\n        {\"fields\": {\"id\": 2, \"title\": \"faq\", \"content\": \"vector search\"}, \"cmd\": \"add\"},\n    ]\n    req = models.PushDocumentsRequestModel({}, documents)\n    return ha3.push_documents(data_source, pk_field, req)\n\n\ndef search_ha():\n    # HA query example. Replace cluster/table names as needed.\n    query_str = (\n        \"config=hit:5,format:json,qrs_chain:search\"\n        \"&&query=title:hello\"\n        \"&&cluster=general\"\n    )\n    ha_query = models.SearchQuery(query=query_str)\n    req = models.SearchRequestModel({}, ha_query)\n    return ha3.search(req)\n\ntry:\n    print(push_docs().body)\n    print(search_ha())\nexcept (TeaException, RetryError) as e:\n    print(e)\n\nScript quickstart\npython skills/ai/search/alicloud-ai-search-opensearch/scripts/quickstart.py\n\n\nEnvironment variables:\n\nOPENSEARCH_ENDPOINT\nOPENSEARCH_INSTANCE_ID\nOPENSEARCH_USERNAME\nOPENSEARCH_PASSWORD\nOPENSEARCH_DATASOURCE\nOPENSEARCH_PK_FIELD (optional, default id)\nOPENSEARCH_CLUSTER (optional, default general)\n\nOptional args: --cluster, --hit, --query.\n\nSQL-style search\nfrom alibabacloud_ha3engine import models\n\nsql = \"select * from <indexTableName>&&kvpair=trace:INFO;formatType:json\"\nsql_query = models.SearchQuery(sql=sql)\nreq = models.SearchRequestModel({}, sql_query)\nresp = ha3.search(req)\nprint(resp)\n\nNotes for Claude Code/Codex\nUse push_documents for add/delete updates.\nLarge query strings (>30KB) should use the RESTful search API.\nHA queries are fast and flexible for vector + keyword retrieval; SQL is helpful for structured data.\nError handling\nAuth errors: verify username/password and instance access.\n4xx on push: check schema fields and pk_field alignment.\n5xx: retry with backoff.\nValidation\nmkdir -p output/alicloud-ai-search-opensearch\nfor f in skills/ai/search/alicloud-ai-search-opensearch/scripts/*.py; do\n  python3 -m py_compile \"$f\"\ndone\necho \"py_compile_ok\" > output/alicloud-ai-search-opensearch/validate.txt\n\n\nPass criteria: command exits 0 and output/alicloud-ai-search-opensearch/validate.txt is generated.\n\nOutput And Evidence\nSave artifacts, command outputs, and API response summaries under output/alicloud-ai-search-opensearch/.\nInclude key parameters (region/resource id/time range) in evidence files for reproducibility.\nWorkflow\nConfirm user intent, region, identifiers, and whether the operation is read-only or mutating.\nRun one minimal read-only query first to verify connectivity and permissions.\nExecute the target operation with explicit parameters and bounded scope.\nVerify results and save output/evidence files.\nReferences\n\nSDK package: alibabacloud-ha3engine\n\nDemos: data push and HA/SQL search demos in OpenSearch docs\n\nSource list: references/sources.md"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/cinience/alicloud-ai-search-opensearch",
    "publisherUrl": "https://clawhub.ai/cinience/alicloud-ai-search-opensearch",
    "owner": "cinience",
    "version": "1.0.3",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/alicloud-ai-search-opensearch",
    "downloadUrl": "https://openagent3.xyz/downloads/alicloud-ai-search-opensearch",
    "agentUrl": "https://openagent3.xyz/skills/alicloud-ai-search-opensearch/agent",
    "manifestUrl": "https://openagent3.xyz/skills/alicloud-ai-search-opensearch/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/alicloud-ai-search-opensearch/agent.md"
  }
}