Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
cinience avatar

Alicloud Ai Search Dashvector

  • 270 installs
  • 396 repo stars
  • Updated July 18, 2026
  • cinience/alicloud-skills

alicloud-ai-search-dashvector is a Backend & APIs skill that wires Alibaba Cloud DashVector into RAG, semantic search, and embedding retrieval pipelines for agent applications and knowledge bases hosted on AliCloud.

About

alicloud-ai-search-dashvector is a Backend & APIs skill from cinience/alicloud-skills that connects Alibaba Cloud DashVector to RAG, semantic search, and embedding retrieval workflows. The skill guides developers integrating vector collections, similarity queries, and retrieval layers into agent apps and knowledge bases running on AliCloud infrastructure. Developers reach for alicloud-ai-search-dashvector when building semantic search over embeddings, grounding LLM responses with retrieved chunks, or standing up AliCloud-native vector storage instead of self-managed alternatives during agent backend implementation.

  • DashVector index and collection setup
  • Embedding ingestion and similarity search
  • RAG retrieval configuration
  • AliCloud credential and region handling
  • Production query tuning for agents

Alicloud Ai Search Dashvector by the numbers

  • 270 all-time installs (skills.sh)
  • Ranked #2,419 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/cinience/alicloud-skills --skill alicloud-ai-search-dashvector

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs270
repo stars396
Last updatedJuly 18, 2026
Repositorycinience/alicloud-skills

How do you integrate DashVector for RAG on AliCloud?

Wire Alibaba Cloud DashVector into RAG, semantic search, and embedding retrieval for agent apps and knowledge bases on AliCloud.

Who is it for?

Backend developers building AliCloud-hosted agent apps or knowledge bases that need managed vector search and embedding retrieval.

Skip if: Teams standardized on non-AliCloud vector databases like Pinecone, pgvector, or OpenSearch without AliCloud deployment requirements.

When should I use this skill?

Implementing RAG, semantic search, or embedding retrieval with Alibaba Cloud DashVector in an agent or knowledge-base backend.

What you get

DashVector collection setup, embedding retrieval queries, semantic search endpoints, and RAG-ready vector store integration on Alibaba Cloud.

  • DashVector collection config
  • retrieval query integration
  • RAG pipeline wiring

Files

SKILL.mdMarkdownGitHub ↗

Category: provider

DashVector Vector Search

Use DashVector to manage collections and perform vector similarity search with optional filters and sparse vectors.

Prerequisites

  • Install SDK (recommended in a venv to avoid PEP 668 limits):
python3 -m venv .venv
. .venv/bin/activate
python -m pip install dashvector
  • Provide credentials and endpoint via environment variables:
  • DASHVECTOR_API_KEY
  • DASHVECTOR_ENDPOINT (cluster endpoint)

Normalized operations

Create collection

  • name (str)
  • dimension (int)
  • metric (str: cosine | dotproduct | euclidean)
  • fields_schema (optional dict of field types)

Upsert docs

  • docs list of {id, vector, fields} or tuples
  • Supports sparse_vector and multi-vector collections

Query docs

  • vector or id (one required; if both empty, only filter is applied)
  • topk (int)
  • filter (SQL-like where clause)
  • output_fields (list of field names)
  • include_vector (bool)

Quickstart (Python SDK)

import os
import dashvector
from dashvector import Doc

client = dashvector.Client(
    api_key=os.getenv("DASHVECTOR_API_KEY"),
    endpoint=os.getenv("DASHVECTOR_ENDPOINT"),
)

# 1) Create a collection
ret = client.create(
    name="docs",
    dimension=768,
    metric="cosine",
    fields_schema={"title": str, "source": str, "chunk": int},
)
assert ret

# 2) Upsert docs
collection = client.get(name="docs")
ret = collection.upsert(
    [
        Doc(id="1", vector=[0.01] * 768, fields={"title": "Intro", "source": "kb", "chunk": 0}),
        Doc(id="2", vector=[0.02] * 768, fields={"title": "FAQ", "source": "kb", "chunk": 1}),
    ]
)
assert ret

# 3) Query
ret = collection.query(
    vector=[0.01] * 768,
    topk=5,
    filter="source = 'kb' AND chunk >= 0",
    output_fields=["title", "source", "chunk"],
    include_vector=False,
)
for doc in ret:
    print(doc.id, doc.fields)

Script quickstart

python skills/ai/search/alicloud-ai-search-dashvector/scripts/quickstart.py

Environment variables:

  • DASHVECTOR_API_KEY
  • DASHVECTOR_ENDPOINT
  • DASHVECTOR_COLLECTION (optional)
  • DASHVECTOR_DIMENSION (optional)

Optional args: --collection, --dimension, --topk, --filter.

Notes for Claude Code/Codex

  • Prefer upsert for idempotent ingestion.
  • Keep dimension aligned to your embedding model output size.
  • Use filters to enforce tenant or dataset scoping.
  • If using sparse vectors, pass sparse_vector={token_id: weight, ...} when upserting/querying.

Error handling

  • 401/403: invalid DASHVECTOR_API_KEY
  • 400: invalid collection schema or dimension mismatch
  • 429/5xx: retry with exponential backoff

Validation

mkdir -p output/alicloud-ai-search-dashvector
for f in skills/ai/search/alicloud-ai-search-dashvector/scripts/*.py; do
  python3 -m py_compile "$f"
done
echo "py_compile_ok" > output/alicloud-ai-search-dashvector/validate.txt

Pass criteria: command exits 0 and output/alicloud-ai-search-dashvector/validate.txt is generated.

Output And Evidence

  • Save artifacts, command outputs, and API response summaries under output/alicloud-ai-search-dashvector/.
  • Include key parameters (region/resource id/time range) in evidence files for reproducibility.

Workflow

1) Confirm user intent, region, identifiers, and whether the operation is read-only or mutating. 2) Run one minimal read-only query first to verify connectivity and permissions. 3) Execute the target operation with explicit parameters and bounded scope. 4) Verify results and save output/evidence files.

References

  • DashVector Python SDK: Client.create, Collection.upsert, Collection.query
  • Source list: references/sources.md

Related skills

FAQ

What does alicloud-ai-search-dashvector integrate?

alicloud-ai-search-dashvector integrates Alibaba Cloud DashVector for RAG, semantic search, and embedding retrieval in agent applications and knowledge bases deployed on AliCloud infrastructure.

When should developers use alicloud-ai-search-dashvector?

Developers should use alicloud-ai-search-dashvector when building AliCloud-hosted backends that need vector similarity search, embedding storage, and retrieval layers to ground LLM or agent responses.

AI & Agent Buildingagentsllmautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.