Postgres Embedding
pg_embedding 是一个开源软件包,用于 向量相似性搜索
Postgres和Hierarchical Navigable Small Worlds近似最近邻搜索的算法。
安装和设置
我们需要安装几个 python 包。
pip install psycopg2-binary
矢量存储
请参阅使用示例。
from langchain_community.vectorstores import PGEmbedding
API 参考:PGEmbedding