-
securityF
license-
qualityEnables efficient vector database operations for embedding storage and similarity search through a Model Context Protocol interface.
Last updated -
6
Python
使用 LanceDB 和 Ollama 的嵌入模型进行向量搜索的 Node.js 实现。
该项目演示了如何:
nomic-embed-text
模型在本地运行@lancedb/lancedb
:Node.js 的 LanceDB 客户端apache-arrow
:用于处理列式数据node-fetch
:用于向 Ollama 发出 API 调用运行向量搜索测试脚本:
或者直接执行:
该脚本连接到:
http://localhost:11434/api/embeddings
要与 Claude Desktop 作为 MCP 服务集成,请将以下内容添加到您的 MCP 配置 JSON 中:
用您的实际安装路径替换路径:
/path/to/lancedb-node/dist/index.js
- 已编译 index.js 文件的路径/path/to/your/lancedb/storage
- 您的 LanceDB 存储目录的路径该项目包括一个自定义的OllamaEmbeddingFunction
,它:
该示例在“ai-rag”表中搜索“如何定义成功标准”,并显示其相似度分数的结果。
欢迎贡献代码!欢迎提交 Pull 请求。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vurtnec/mcp-LanceDB-node'
If you have feedback or need assistance with the MCP directory API, please join our Discord server