30
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill lyndonkl/claude --skill embedding-fusion-strategy- SKILL.md9.0 KB
Overview
This skill designs embedding strategies that fuse semantic (text) and structural (graph) information for knowledge graphs. It guides selection of embedding granularity, semantic and structural techniques, and concrete fusion patterns to meet downstream task needs. The result is a practical, implementation-ready specification for retrieval, reasoning, or prediction tasks.
How this skill works
It inspects available graph signals (node text, edge labels, topology, external corpora) and maps them to task requirements and success metrics. It recommends granularity (node, edge, path, subgraph, community), specific semantic and structural encoders, and a fusion approach (concatenation, attention, contrastive alignment, late fusion, or multi-vector). Finally, it produces a deployable embedding strategy with indexing and maintenance guidance.
When to use it
- Designing embeddings for hybrid text + graph search or QA
- Building retrieval or ranking that must respect topology and semantics
- Preparing embeddings for link prediction, node classification, or subgraph matching
- When single-view embeddings lose crucial context (polysemy, roles)
- Scaling retrieval with separate candidate generation and precise re-ranking
Best practices
- Start by inventorying signals and defining clear success metrics (MRR, Hits@K, latency)
- Choose granularity to match the task; combine levels when needed (e.g., node + subgraph)
- Prefer simple baselines first (concatenation) then upgrade to learned fusion if needed
- Manage dimensionality explicitly: project or compress before concatenation to control storage and latency
- Use contrastive alignment when you need a unified vector space for cross-view search
- Design update and staleness policies; choose incremental or periodic retrain based on graph dynamics
Example use cases
- Entity retrieval in a knowledge graph: node-level semantic + local structural embeddings with attention fusion
- Multi-hop question answering: path and subgraph embeddings combined with description-based semantic encoders
- Link prediction: edge embeddings that fuse relation text and endpoint structural roles
- Large-scale retrieval: semantic bi-encoder for candidate generation and structural re-ranking using a cross-encoder
- Facet-aware recommendation: multi-vector per entity representing different roles and contexts
FAQ
Use early fusion when you need a single vector for low-latency lookup; use late fusion (candidate generation + re-ranking) for high-precision at scale or when fusion is too expensive online.
When should I train contrastive alignment?
Train alignment when you have pairs of semantic and structural views and need a shared space for cross-modal retrieval or consistent similarity scores; skip it for quick prototypes or when views remain intentionally separate.