Skip to main content
Open on GitHub

Postgres Embedding

pg_embedding is an open-source package for vector similarity search using Postgres and the Hierarchical Navigable Small Worlds algorithm for approximate nearest neighbor search.

安装与设置

我们需要安装几个 Python 包。

pip install psycopg2-binary

向量存储

查看一个 使用示例

from langchain_community.vectorstores import PGEmbedding
API 参考:PGEmbedding