The PGVector adapter is one of Cognee’s core vector adapters, along with LanceDB. Even though PGVector is an extension of Postgres, you can use PGVector as a vector store with other relational databases, such as SQLite.Documentation Index
Fetch the complete documentation index at: https://docs.cognee.ai/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Firstly, you will need to install specific dependencies necessary for working with Postgres and PGVector:Setup
You will need a running Postgres database instance, and the existing handler works with both local and cloud setups. All you need to do is provide the necessary connection information, like the following example does for a local setup:docker-compose.yml file, or your own:
Usage
The PGVector handler is registered in Cognee by default, so all that is left to do is to let Cognee know which handler you are using. This can be done by setting the following.env variable:
Vector Stores
Details About Cognee’s Vector Stores
Multi-User Overview
More Details About Multi-User Mode