Skip to content
Back to skills

Semantic Search

ASecurity

Semantic search over texts/documents using DashScope embeddings. Use when the user asks to find the most similar or related passages, match text by meaning (not keywords), or do fuzzy/semantic lookup over a set of documents.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsapi

Works with

  • claude code
  • api
  • mcp

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add dashscope/dashscope-agent-tools-python --skill semantic-search --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Semantic Search?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Semantic Search
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dashscope-semantic-search/badge)](https://www.skillsdirectory.com/skills/dashscope-semantic-search)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Semantic search over texts/documents using DashScope embeddings. Use when the user asks to find the most similar or related passages, match text by meaning (not keywords), or do fuzzy/semantic lookup over a set of documents.
---

# Semantic search (DashScope embeddings)

Use the `semantic_search` MCP tool from the dashscope server to rank a set of
documents by meaning-similarity to a query.

## How

Call `semantic_search` with:
- `query`: the search intent.
- `documents`: the list of candidate texts.
- `top_k` (optional): how many matches to return, default 5.

It embeds the query and all documents in one API call and returns the top
matches with `index`, `score` (cosine), and `text`. Present the ranked
results; reference documents by their original index.

## Raw vectors

If the user needs the embedding vectors themselves (e.g. to store in a vector
DB), use `embed_text(texts, model, dimension)`. For more than a couple of
texts, pass `output_file` to write vectors to a JSON file instead of dumping
them into the conversation.

## Errors

Missing/rejected key → set `DASHSCOPE_API_KEY` in the server env (Claude Code:
`/plugin configure dashscope`). Throttling → retry.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.