跳到主要内容
Annoy (Approximate Nearest Neighbors Oh Yeah) 是一个 C++ 库,带有 Python 绑定,用于搜索空间中靠近给定查询点的点。它还创建了大型只读的基于文件的可在内存中映射的数据结构,以便许多进程可以共享相同的数据。

安装和设置

pip install annoy

向量存储

查看使用示例
from langchain_community.vectorstores import Annoy

以编程方式连接这些文档到 Claude、VSCode 等,通过 MCP 获取实时答案。
© . This site is unofficial and not affiliated with LangChain, Inc.