surrealdb/agent-skills/surrealdb-vector
Claude Code and agent skill by surrealdb/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Vector search with SurrealDB using HNSW indexes, KNN queries, and similarity scoring. Use when creating vector indexes, querying vectors with KNN distance operators, building semantic search or RAG pipelines, tuning HNSW parameters (EFC, M, M0, distance function, type), or implementing recommendation systems with SurrealDB. Triggers: HNSW, vector, embedding, KNN, cosine, euclidean, semantic search, RAG, vector::distance.
Install
npx vskill@latest install surrealdb/agent-skills/surrealdb-vectorSKILL.md
SurrealDB Vector Search
HNSW Index
Create a basic HNSW index:
With specific distance function and type:
Available types: F64, F32, I64, I32, I16.
Full Table Example
HNSW Parameters
| Parameter | Description | |
|---|---|---|
| DIMENSION | Vector dimensionality (must match your embeddings) | |
| DIST | Distance function: COSINE, EUCLIDEAN, etc. | |
| TYPE | Numeric type: F64, F32, I64, I32, I16 | |
| EFC | Construction search effort (higher = better index) | |
| M | Max connections per node | |
| M0 | Max connections at layer 0 |
Querying Vectors
The <|K, EF|> operator performs KNN search. K is the number of results, EF is the search effort (higher = more accurate, slower).
Recommended effort values:
40— default, good accuracy17— fast but may miss some results
Basic KNN Query
vector::distance::knn() uses the distance function defined by the index.
Scored Results with Threshold
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/surrealdb-vector/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/surrealdb/agent-skills/surrealdb-vector)