Skip to main content
在 GitHub 上打开

Annoy

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

安装和设置

pip install annoy

矢量存储

请参阅使用示例

from langchain_community.vectorstores import Annoy
API 参考:Annoy