Skip to content
masterclass Buddy

Integrations · Class

PGVector

PGVector stores document embeddings in PostgreSQL with pgvector. It supports adding, deleting, filtering, and similarity-searching documents.

Last updated

Since
v0.0

Syntax

PGVector(embeddings: Embeddings, *, connection: Union[None, DBConnection, Engine, AsyncEngine, str] = None, embedding_length: Optional[int] = None, collection_name: str = ...)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Embeddings
  • Document
  • similarity_search
  • similarity_search_with_score
  • max_marginal_relevance_search_with_score_by_vector
  • PGVectorTranslator

Source: PGVector | langchain_postgres | LangChain Reference. Checked 2026-11-03.