neo4j-vector-index-skill
方便在图数据库内实现语义搜索与嵌入查询,适合推荐与检索场景。
依赖特定 Neo4j 版本与向量索引引擎配置,需升级/兼容性注意。
创建与管理 Neo4j 向量索引并执行向量相似度/近邻搜索。
在 Neo4j 里创建和管理向量索引、做向量相似度/近邻检索(ANN/kNN),并把 embeddings 写到节点或关系上,可配置 HNSW、quantization、相似度函数和维度。适用于语义搜索、近邻推荐、混合检索(向量+全文/图分数)或批量摄取 embedding 的场景。特点是兼顾新版 SEARCH 语法和旧的查询过程,能做细粒度索引参数调优。
▸ 展开 SKILL.md 英文原文
Create and manage Neo4j vector indexes, run vector similarity search (ANN/kNN), store embeddings on nodes or relationships, use SEARCH clause (Neo4j 2026.01+, preferred) or db.index.vector.queryNodes() procedure (deprecated 2026.04, still works on 2025.x), configure HNSW and quantization options, pick similarity function and embedding provider dimensions, and batch-update embeddings. Use when tasks involve CREATE VECTOR INDEX, vector.dimensions, cosine/euclidean search, embedding ingestion pipelines, semantic or structural nearest-neighbor lookup, or hybrid search (vector + fulltext, multiple vector sources, or graph-derived scores). Does NOT handle GraphRAG retrieval_query graph traversal — use neo4j-graphrag-skill. Does NOT handle fulltext-only/keyword-only search — use neo4j-cypher-skill. Does NOT compute GDS graph embeddings (FastRP, Node2Vec) — use neo4j-gds-skill.
帮我安装这个 skill:https://raw.githubusercontent.com/neo4j-contrib/neo4j-skills/main/neo4j-vector-index-skill/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/neo4j-contrib/neo4j-skills/main/neo4j-vector-index-skill/SKILL.md"## When to Use - Creating a vector index (`CREATE VECTOR INDEX`) on nodes or relationships - Running vector similarity / nearest-neighbor search - Storing embeddings on graph nodes during ingestion - Indexing/querying embeddings already written by GDS algorithms - Choosing similarity function, dimensions, HNSW params, or quantization - Using `SEARCH` clause (2026.01+) or `db.index.vector.queryNodes()` (2025.x) - Batch-updating embeddings after model change - Combining vector results with immediate graph neighborhood (full retrieval_query pipelines → `neo4j-graphrag-skill`) - Hybrid search that combines vector results with fulltext or other ranked sources ## When NOT to Use - **GraphRAG pipe