Postgres 嵌入
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