Postgres Embedding
pg_embedding 是一个用于使用
Postgres和Hierarchical Navigable Small Worlds算法进行向量相似性搜索的开源包。
安装与设置¶
我们需要安装几个 Python 包。
pip install psycopg2-binary
向量存储
查看 使用示例。
from langchain_community.vectorstores import PGEmbedding
API 参考:PGEmbedding
pg_embedding 是一个用于使用
Postgres和Hierarchical Navigable Small Worlds算法进行向量相似性搜索的开源包。
我们需要安装几个 Python 包。
pip install psycopg2-binary
查看 使用示例。
from langchain_community.vectorstores import PGEmbedding