Postgres 嵌入
pg_embedding 是一个开源包,用于使用
Postgres
和Hierarchical Navigable Small Worlds
算法进行向量相似性搜索,以实现近似最近邻搜索。
安装与设置
我们需要安装几个 Python 包。
pip install psycopg2-binary
向量存储
查看使用示例。
from langchain_community.vectorstores import PGEmbedding
pg_embedding 是一个开源包,用于使用
Postgres
和Hierarchical Navigable Small Worlds
算法进行向量相似性搜索,以实现近似最近邻搜索。
我们需要安装几个 Python 包。
pip install psycopg2-binary
查看使用示例。
from langchain_community.vectorstores import PGEmbedding