Postgres Embedding
pg_embedding is an open-source package for vector similarity search using
Postgresand theHierarchical Navigable Small Worldsalgorithm for approximate nearest neighbor search.
安装与设置
我们需要安装几个 Python 包。
pip install psycopg2-binary
向量存储
查看一个 使用示例。
from langchain_community.vectorstores import PGEmbedding
API 参考:PGEmbedding