跳到主要内容
pg_embedding 是一个开源软件包,用于使用 Postgres分层可导航小世界 算法进行近似最近邻搜索的向量相似性搜索。

安装和设置

我们需要安装多个 Python 包。
pip install psycopg2-binary

向量存储

请参阅用法示例
from langchain_community.vectorstores import PGEmbedding

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