PostgresKnowledgeBase
is a PostgreSQL-backed vector knowledge base class that supports fast document retrieval using semantic vector search and traditional text-based queries. It leverages the pgvector
extension for similarity search and is built to integrate with LLMs and embeddings models.
embedding
field is not specified, semantic search will be disabled.pgvector
, make sure your database has the extension installed:<->
operator for efficient ANN search.