srizdebnath/tigergraphskills/algo-cosine-similarity
Claude Code and agent skill by srizdebnath/tigergraphskills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Install and run Cosine Similarity in GSQL. Use when measuring similarity of vertex feature vectors and edge weights.
Install
npx vskill@latest install srizdebnath/tigergraphskills/algo-cosine-similaritySKILL.md
The same SKILL.md was published earlier as srizdebnath/tigergraphskills/algo-cosine-similarity.
Running Cosine Similarity
When to use this
Use when comparing items based on ratings, attributes, or numeric weights rather than binary existence of edges.
Prerequisites
TigerGraph GSQL Algorithm Library installed. Links:
Steps
- Compile the Cosine similarity query.
- Run the query:
``gsql RUN QUERY tg_cosine_sub_target(source_vertex="User1", v_type="User", e_type="rated", top_k=10, print_accum=TRUE, file_path="") ``
Common mistakes
- Assuming Cosine similarity handles unweighted edges as effectively as Jaccard; Cosine is designed for weighted vectors.
- Not normalizing vector lengths before calculations if utilizing custom math.
Sources
Security
- Security scanPassed, 90 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/algo-cosine-similarity/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/srizdebnath/tigergraphskills/algo-cosine-similarity)