Ruvector

From oyi77/1ai-skills · View interactive version

Ruvector is an AI agent skill from the GitHub repository oyi77/1ai-skills. Use when generating and managing vector embeddings for semantic search and RAG retrieval across knowledge bases.

How to use this skill

Skill file

RuVector Skill

Self-learning vector database with Graph Neural Networks for autonomous AI memory

Overview

RuVector is a distributed vector database that learns from every query. Unlike static vector databases, RuVector uses GNN (Graph Neural Network) layers to improve search results over time. It's perfect for building self-improving AI memory systems.

Anti-Rationalization Table

| Rationalization | Reality |

|---|---|

| "I'll figure it out as I go" | A structured approach saves time and reduces errors. Follow the workflow in this skill rather than improvising. |

| "I already know this topic" | Familiarity breeds shortcuts. Use the checklist to verify you haven't missed critical steps. |

| "This doesn't apply to my situation" | The patterns here generalize across contexts. Adapt, don't skip — the underlying principles hold. |

| "One more tool will fix it" | Adding complexity rarely solves process gaps. Master the core workflow first. |

When to Use

Trigger phrases:

Use this skill when you need:

Key Features

🧠 Self-Learning Index

🔍 Graph Queries (Cypher)

MATCH (a)-[:SIMILAR]->(b) WHERE a.name = "AI" RETURN b

💾 Local Embeddings

⚡ MCP Tools

Installation

# Quick start
npx ruvector

# Initialize self-learning hooks
npx @ruvector/cli hooks init

# Install optional GNN module
npx ruvector install gnn

Usage Patterns

Basic Vector Storage

const ruvector = require('ruvector');

// Create collection
await db.createCollection('memories', { dimension: 384 });

// Add embeddings
await db.insert('memories', {
  id: 'memory_1',
  vector: embedding,
  metadata: { context: 'user_preference', topic: 'coffee' }
});

// Search (improves over time!)
const results = await db.search('memories', queryEmbedding, { topK: 5 });

Self-Learning Hook

// Enable learning from queries
await db.hooks.enable('self-learning', {
  algorithm: 'q-learning',
  memorySize: 10000
});

Local LLM Integration

// Run LLMs locally
const { RuvLLM } = require('@ruvector/ruvllm');
const llm = new RuvLLM({ model: 'ruvltra-small' });

const response = await llm.chat('Explain vector databases');

Integration with 1ai-skills

RuVector integrates perfectly with:

Files in This Skill

See Also

When NOT to Use

Common Rationalizations

| Rationalization | Reality |

|---|---|

| "I'll do this later" | Explain why this excuse is wrong for this skill |

| "This is simple, skip steps" | Even simple tasks benefit from process |

Red Flags

Verification

After completing this skill, confirm:

Process

  1. Analyze the task requirements
  2. Apply domain expertise
  3. Verify output quality
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.