🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Local Vector Store

by @jackfeng0614-prog

Implements semantic search using local vector embeddings for knowledge base indexing and similarity matching. Use when you need to search documents by meanin...

Versionv1.0.0
Installs1
πŸ’‘ Examples

const vectorStore = require('./local-vector-store');

// Initialize store const store = await vectorStore.create({ dimension: 384, storePath: '/tmp/vector-store' });

// Index documents await store.index({ id: 'doc1', content: 'Machine learning is a subset of artificial intelligence', metadata: { source: 'wiki' } });

// Search by semantic similarity const results = await store.search({ query: 'AI and deep learning', topK: 5, threshold: 0.7 });

// Batch operations await store.indexBatch([ { id: 'doc2', content: 'Neural networks process data' }, { id: 'doc3', content: 'Algorithms solve computational problems' } ]);

βš™οΈ Configuration

Set environment variables:

  • VECTOR_DIMENSION: Embedding dimension (default: 384)
  • STORE_PATH: Local storage directory (default: /tmp/vector-store)
  • SIMILARITY_THRESHOLD: Minimum similarity score (default: 0.5)
  • View on ClawHub
    TERMINAL
    clawhub install local-vector-store

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’