← 返回
未分类 中文

Local Vector Store

Implements semantic search using local vector embeddings for knowledge base indexing and similarity matching. Use when you need to search documents by meanin...
使用本地向量嵌入实现语义搜索,用于知识库索引和相似度匹配。当需要按意义搜索文档时使用。
jackfeng0614-prog jackfeng0614-prog 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 396
下载
💾 1
安装
1
版本
#latest

概述

Local Vector Store

A lightweight semantic search engine that indexes documents as vectors and enables similarity-based retrieval without external APIs.

Features

  • Document indexing with vector embeddings
  • Semantic similarity search
  • Local storage (no external dependencies)
  • Batch indexing support
  • Configurable embedding dimensions
  • Cosine similarity matching

Usage

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)

Output Format

{
  "query": "semantic search",
  "results": [
    {
      "id": "doc1",
      "content": "...",
      "similarity": 0.92,
      "metadata": {}
    }
  ],
  "searchTime": 45
}

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 07:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

knowledge-management

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 451 📥 106,117
knowledge-management

web-tools-guide

user_ec205dbb
MANDATORY before calling web_search, web_fetch, browser, or opencli. Contains required error-handling procedures (web_se
★ 99 📥 171,399
knowledge-management

Summarize

paudyyin
智能摘要工具,自动为长文本、文档、网页生成摘要,提取要点与关键词,支持自定义摘要长度。
★ 969 📥 523,745