Python
使用 LangChain Python 集成 Annoy。
Annoy(Approximate Nearest Neighbors Oh Yeah) 是一个带有 Python 绑定的 C++ 库,用于搜索空间中与给定查询点相近的点。它还可以创建大型只读的基于文件的数据结构, 这些数据结构会被映射到内存中,使多个进程可以共享同一数据。
Approximate Nearest Neighbors Oh Yeah
pip install annoy
from langchain_community.vectorstores import Annoy