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.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Semantic Search?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/dashscope-semantic-search)
---
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.