Installation¶
Requirements¶
- Python 3.12+
- PostgreSQL 14+
- pgvector extension for PostgreSQL
Installing pgraf¶
Install pgraf using pip:
For development, you can install the development dependencies:
For building documentation:
Database Setup¶
- Ensure pgvector is installed in your PostgreSQL instance
Follow the installation instructions at: https://github.com/pgvector/pgvector
- Create a database for pgraf:
- Apply the schema:
Docker Setup¶
A Docker Compose configuration is included for easier development:
This will start a PostgreSQL instance with pgvector pre-installed and the pgraf schema applied.