# Quick Start — RuDB PostgreSQL 19 Vectorizer is already integrated into RuDB; no separate extension installation is required. ## Configuration Add the target database and provider to `postgresql.conf`: ```ini rudb_ai.databases = 'mydb' rudb_ai.provider = 'openai' rudb_ai.api_key_file = '~/.pgedge-vectorizer-llm-api-key' rudb_ai.model = 'text-embedding-3-small' ``` Restart RuDB after changing startup-sensitive Vectorizer settings. ## Basic Usage The `pgedge_vectorizer` schema is created during `initdb`. Any single-column primary-key type supported by the Vectorizer API can be used. ```sql CREATE TABLE documents ( id BIGSERIAL PRIMARY KEY, content TEXT ); SELECT pgedge_vectorizer.enable_vectorization('documents', 'content'); INSERT INTO documents (content) VALUES ('Your text content here...'); SELECT d.id, c.content, c.embedding <=> pgedge_vectorizer.generate_embedding('your search query') AS distance FROM documents d JOIN documents_content_chunks c ON d.id = c.source_id ORDER BY distance LIMIT 5; ``` Use `SELECT * FROM pgedge_vectorizer.show_config();` to inspect the effective `rudb_ai.*` configuration.