Skip to main content

Postgres 嵌入

pg_embedding 是一个开源包,用于 使用 Postgres层次可导航小世界 算法进行近似最近邻搜索的向量相似性搜索。

安装和设置

我们需要安装几个 Python 包。

pip install psycopg2-binary

向量存储

查看使用示例

from langchain_community.vectorstores import PGEmbedding

Was this page helpful?


You can also leave detailed feedback on GitHub.

扫我,入群扫我,找书