Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.langchain.com/llms.txt

Use this file to discover all available pages before exploring further.

pg_embedding is an open-source package for vector similarity search using Postgres and the Hierarchical Navigable Small Worlds algorithm for approximate nearest neighbor search.

Installation and setup

We need to install several python packages.
pip install psycopg2-binary

Vector store

See a usage example.
from langchain_community.vectorstores import PGEmbedding