-- Provider selection test -- This test verifies that all embedding providers can be configured -- Test provider configuration defaults SHOW rudb_ai.provider; -- Test available providers are registered (all should work) DO $$ BEGIN -- All providers should be available (we can't test actual API calls without keys) -- But we can verify they're registered in the system RAISE NOTICE 'Provider configuration test completed'; END; $$; -- Test OpenAI provider configuration SET rudb_ai.provider = 'openai'; SET rudb_ai.api_url = 'https://api.openai.com/v1'; SET rudb_ai.model = 'text-embedding-3-small'; SHOW rudb_ai.provider; SHOW rudb_ai.api_url; SHOW rudb_ai.model; -- Test Voyage AI provider configuration SET rudb_ai.provider = 'voyage'; SET rudb_ai.api_url = 'https://api.voyageai.com/v1'; SET rudb_ai.model = 'voyage-2'; SHOW rudb_ai.provider; SHOW rudb_ai.api_url; SHOW rudb_ai.model; -- Test Ollama provider configuration SET rudb_ai.provider = 'ollama'; SET rudb_ai.api_url = 'http://localhost:11434'; SET rudb_ai.model = 'nomic-embed-text'; SHOW rudb_ai.provider; SHOW rudb_ai.api_url; SHOW rudb_ai.model; -- Reset to defaults RESET rudb_ai.provider; RESET rudb_ai.api_url; RESET rudb_ai.model; SHOW rudb_ai.provider;