-
Notifications
You must be signed in to change notification settings - Fork 485
Description
Describe the bug
The guardrails-api server fails to start when PostgreSQL database doesn't have pgvector and uuid-ossp extensions installed. However, after examining the database
schema, no embedding or vector data is actually being stored in any tables, suggesting these extensions are mandatory requirements but not functionally utilized.
To Reproduce
Steps to reproduce the behavior:
- Install guardrails-ai[api]==0.7.0
- Set up PostgreSQL without pgvector and uuid-ossp extensions
- Configure PostgreSQL connection: export PGHOST=localhost
- Run: guardrails start --config config.py
- Server fails with: CREATE EXTENSION "vector" and CREATE EXTENSION "uuid-ossp" errors
Expected behavior
The server should either:
• Start successfully if extensions aren't functionally required
• Clearly document why these extensions are mandatory
• Use the extensions for actual vector/embedding storage if that's the intended functionality
Library version:
guardrails-ai[api]==0.7.0
Additional context
• Database contains only guards and guards_audit tables
• No vector or embedding columns found in schema
• Extensions are hardcoded in postgres_client.py INIT_EXTENSIONS
• This creates deployment barriers for managed PostgreSQL environments
• Need clarification on whether vector functionality is planned or if extensions can be made optional