shadylukin/neumann/neumann-vector
Claude Code and agent skill by shadylukin/neumann
- community
Checking that the SKILL.md file is still in the repository.
Build vector search and embedding pipelines with Neumann. Use when implementing similarity search, RAG retrieval, semantic caching, or working with HNSW indexes.
Install
npx vskill@latest install shadylukin/neumann/neumann-vectorSKILL.md
Neumann Vector Search Guide
Vector Storage Model
Neumann stores embeddings as key-vector pairs in a dedicated vector engine backed by an HNSW (Hierarchical Navigable Small World) index for fast approximate nearest neighbor search.
Key concepts:
- Embedding: A string key mapped to a float vector of any dimensionality.
- Collection: An optional namespace for grouping related embeddings (e.g., per-tenant, per-domain).
- HNSW Index: Must be explicitly built after inserts for fast similarity queries.
- Distance Metrics:
COSINE(default),EUCLIDEAN,DOT_PRODUCT.
All vectors within a query must have the same dimensionality. Mixed dimensions cause runtime errors, not parse errors.
Embeddings are stored in tensor_store's embedding slab, which uses sharded locking -- concurrent writes to different keys do not block each other.
Embedding Lifecycle
The standard workflow: store embeddings, build the index, then query.
Store a single embedding
Keys must be quoted strings. Unquoted keys with hyphens or colons will fail to parse.
Store into a collection
Batch store multiple embeddings
Always prefer EMBED BATCH over multiple EMBED STORE calls for bulk inserts.
Build the HNSW index
This must be called after bulk inserts and before similarity queries. Building the index is an O(n log n) operation. Do it once after loading, not after each individual insert.
Retrieve an embedding by key
Returns the vector associated with the key, or an error if not found.
Delete an embedding
List stored embeddings
Count embeddings
Check index status
Similarity Search
The SIMILAR command performs approximate nearest neighbor search. It returns key-score pairs ranked by similarity.
Search by vector
Search by existing key
Uses the vector already stored under that key as the query vector.
Specify distance metric
Default is COSINE if omitted.
Search within a collection
Filtered search
The WHERE clause filters results after the ANN search.
Cross-engine: vector + graph
Find similar embeddings that are also connected to a specific graph node:
This intersects ANN results with the graph neighborhood of user-42.
Full syntax summary
Result type: Similar (list of key + score pairs).
Cross-Engine Patterns
Vector + Graph: similarity-aware traversal
Find neighbors ranked by vector similarity:
This returns graph neighbors of node-1, re-ranked by cosine similarity to the given vector.
Vector + Graph: connected similarity
Restricts ANN results to embeddings whose keys correspond to nodes connected to hub-node in the graph.
Vector + Cache: semantic caching
Uses embedding similarity for cache lookups -- returns cached responses for semantically similar (not just exact-match) queries.
Unified entities with embeddings
Stores properties, graph node, and embedding in one atomic operation.
Performance Tips
- Build index after bulk inserts. Call
EMBED BUILD INDEXonce after loading
all embeddings, not after each insert. Index building is expensive and redundant if more inserts follow immediately.
- Use EMBED BATCH for bulk loading. A single
EMBED BATCHwith 1000 pairs
is faster than 1000 individual EMBED STORE calls due to reduced parsing and locking overhead.
- Choose the right metric for your data:
COSINE-- best for normalized embeddings (most LLM outputs). Measures
angle between vectors, invariant to magnitude.
EUCLIDEAN-- best for spatial data where absolute distance matters.DOT_PRODUCT-- best when magnitude carries meaning (e.g., popularity-weighted
embeddings). Fastest to compute but sensitive to vector norms.
- Use collections for multi-tenant isolation. Rather than filtering after
search, partition embeddings into collections. Each collection maintains its own index, so queries only search relevant vectors.
- Keep vector dimensions consistent. All vectors in a collection should
have the same dimensionality. Mixing dimensions causes runtime errors.
- LIMIT is not optional for large datasets. Without LIMIT, SIMILAR returns
all embeddings sorted by distance. Always specify LIMIT for production queries.
Common Mistakes
Forgetting to build the index:
Using SIMILAR TO (wrong keyword):
Using BY instead of METRIC:
Unquoted keys with special characters:
Searching without LIMIT on large datasets:
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/neumann-vector/SKILL.md
Popularity
- Repository stars
- 73
- Repository forks
- 6
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
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/shadylukin/neumann/neumann-vector)