Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

embedding-fusion-strategy嵌入融合策略

Agent Skill

用于搭建或维护带检索增强的 RAG 工作流,适合让 Agent 处理知识库问答、向量检索、来源引用和事实核查。它可以辅助整理数据接入、Embedding、向量库、召回参数和回答生成流程。使用时需要确认数据来源、更新频率、召回阈值和引用展示方式,避免把未命中的资料或过期内容包装成确定事实。

总安装

784

周安装

33

GitHub Stars

85

下载量

275
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:embedding-fusion-strategy(嵌入融合策略)
来源仓库:https://github.com/lyndonkl/claude
仓库路径:skills/embedding-fusion-strategy
安装命令:
npx skills add https://github.com/lyndonkl/claude --skill embedding-fusion-strategy
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/lyndonkl/claude --skill embedding-fusion-strategy

简介

用于设计嵌入融合策略,指导如何结合语义与结构化嵌入提升检索效果。

  • 适合多源数据融合、复杂查询优化或混合检索系统构建时使用。
  • 提供分步清单,涵盖特征识别、粒度选择、融合方法设计和规范输出。
  • 需明确任务目标和成功标准,结合实际数据特点选择合适的融合方式。
  • embedding-fusion-strategy 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Table of Contents

Embedding Fusion Strategy

Workflow

Copy this checklist and work through each step:

Embedding Fusion Strategy Progress:
- [ ] Step 1: Identify available features and data sources
- [ ] Step 2: Determine task requirements and success criteria
- [ ] Step 3: Select granularity level(s)
- [ ] Step 4: Choose semantic embedding approach
- [ ] Step 5: Choose structural embedding approach
- [ ] Step 6: Design fusion strategy
- [ ] Step 7: Produce embedding strategy specification

Step 1: Identify available features and data sources

Inventory what signals exist in the knowledge graph: node text attributes (names, descriptions, types), edge labels and properties, graph topology (density, diameter, heterogeneity), any external text corpora or pre-trained models available. Understanding the raw material determines what embeddings are feasible. See resources/methodology.md for the full taxonomy of embedding types.

Step 2: Determine task requirements and success criteria

Clarify the downstream task: entity retrieval, link prediction, question answering, node classification, recommendation, or subgraph matching. Each task favors different granularities and fusion approaches. Establish evaluation metrics (MRR, Hits@K, F1, latency budgets). See resources/methodology.md for task-to-approach mapping and selection criteria.

Step 3: Select granularity level(s)

Choose which levels of the graph to embed using the Granularity Selection Guide. Many strategies combine multiple granularities (e.g., node embeddings for retrieval plus subgraph embeddings for re-ranking). See resources/embedding-catalog.md for specific techniques at each level.

Step 4: Choose semantic embedding approach

Select how to capture text-based meaning: LLM encoder for rich contextual embeddings, Sentence-BERT for efficient sentence-level similarity, or text descriptions of neighborhoods for context-aware semantics. Match the approach to your computational budget and freshness requirements. See resources/methodology.md for semantic approach details and trade-offs.

Step 5: Choose structural embedding approach

Select how to capture graph topology: Node2Vec for flexible neighborhood sampling, DeepWalk for uniform random walks, GraphSAGE for inductive learning on unseen nodes, or positional encodings for capturing graph roles. Match the approach to your graph density and update frequency. See resources/embedding-catalog.md for the full structural technique catalog.

Step 6: Design fusion strategy

Combine semantic and structural embeddings using one of the Fusion Approaches. Key decisions: early vs. late fusion, alignment training, dimensionality management, and whether to maintain multiple vectors per entity. See resources/methodology.md for detailed fusion design methodology, including dynamic vs. static trade-offs and storage considerations.

Step 7: Produce embedding strategy specification

Document the complete design using the Output Template. Include embedding dimensions, training procedures, indexing strategy, and update mechanisms. Self-assess using resources/evaluators/rubric_embedding_strategy.json. Minimum standard: Average score >= 3.0.

Granularity Selection Guide

GranularityDescriptionUse Cases
NodeEmbed individual entities combining their text attributes with local structural contextEntity retrieval, node classification, entity linking, recommendation
EdgeEmbed relationships including relation type, endpoint context, and edge propertiesLink prediction, relation classification, triple verification
PathEmbed sequences of nodes and edges capturing multi-hop patterns and metapath semanticsMulti-hop reasoning, pathway discovery, explainable retrieval
SubgraphEmbed local neighborhoods (ego-networks, motifs) capturing community structureSubgraph matching, anomaly detection, community-aware retrieval
CommunityEmbed clusters or partitions summarizing high-level graph regionsTopic modeling, coarse-grained search, hierarchical navigation

Fusion Approaches

Concatenation

Combine semantic and structural vectors by concatenation: v_fused = [v_semantic; v_structural]. Simple and preserves all information, but doubles dimensionality and treats both signals as independent.

When to use: Baseline approach, fast prototyping, when downstream model can learn weighting.

Attention-Based Fusion

Learn a weighting over semantic and structural components: v_fused = alpha * v_semantic + (1 - alpha) * v_structural, where alpha is learned per entity or per query. Allows the model to emphasize the most informative signal.

When to use: When relative importance of semantic vs. structural varies across entities or queries.

Contrastive Alignment

Train semantic and structural embeddings to coincide for the same entity using contrastive loss (e.g., InfoNCE). Produces a shared embedding space where both views agree. Enables cross-modal retrieval.

When to use: When you want a single unified space, cross-modal search, or when training data for alignment is available.

Late Fusion / Re-Ranking

Use bi-encoder (separate semantic and structural retrieval) followed by cross-encoder re-ranking that considers both signals jointly. Separates fast candidate generation from precise scoring.

When to use: Large-scale retrieval where full fusion at query time is too expensive; when latency budget allows two-stage pipeline.

Multi-Vector Representation

Maintain multiple embeddings per entity (semantic facets, structural roles, contextual variants). Match queries against the most relevant facet using max-sim or attention pooling.

When to use: Entities with multiple roles or meanings, faceted search, when a single vector loses too much information.

Output Template

EMBEDDING STRATEGY SPECIFICATION
=================================

Domain: [Knowledge graph domain and scale]
Task: [Primary downstream task(s)]
Success Metrics: [MRR, Hits@K, latency, etc.]

Granularity Level(s): [Node / Edge / Path / Subgraph / Community]

Semantic Approach:
  - Method: [LLM encoder / Sentence-BERT / Description-based / etc.]
  - Input: [What text is embedded]
  - Dimension: [embedding size]
  - Model: [specific model name/version]
  - Update frequency: [static / periodic / real-time]

Structural Approach:
  - Method: [Node2Vec / DeepWalk / GraphSAGE / Positional / etc.]
  - Parameters: [walk length, dimensions, neighborhood size, etc.]
  - Dimension: [embedding size]
  - Update frequency: [static / periodic / incremental]

Fusion Strategy:
  - Method: [Concatenation / Attention / Contrastive / Late Fusion / Multi-Vector]
  - Final dimension: [fused embedding size]
  - Alignment training: [loss function, training procedure if applicable]
  - Rationale: [why this fusion approach for this task]

Indexing & Storage:
  - Index type: [HNSW / IVF / flat / etc.]
  - Vector database: [if applicable]
  - Approximate nearest neighbor parameters: [ef, nprobe, etc.]
  - Storage estimate: [total size]

Update & Maintenance:
  - Recomputation strategy: [full retrain / incremental / streaming]
  - Staleness tolerance: [how old before recompute]
  - Incremental update mechanism: [if applicable]

NEXT STEPS:
- Implement embedding pipeline
- Train fusion/alignment if applicable
- Build ANN index and benchmark retrieval quality
- Validate end-to-end on downstream task
- Monitor embedding drift in production

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.32%
按下载量换算100

Claude

28.53%
按下载量换算78

Cursor

17.02%
按下载量换算47

Gemini CLI

9.03%
按下载量换算25

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills