jessevent@ai_sql
AI inference SQL functions for Supabase. Self-deploys its own edge function via ai.deploy().
jessevent@ai_sql · AI inference SQL functions for Supabase. Self-deploys its own edge function via ai.deploy().
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101411 | jessevent@ai_sql | jessevent@ai_sql | 1.0.0 | RAG | Unknown | SQL |
Usage
Sources:
jessevent@ai_sql — AI inference SQL functions for Supabase. Self-deploys its own edge function via ai.deploy(). Use it for the corresponding vector, model, or retrieval workflow. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
ai._edge_function_sourceis an extension function.ai.deploy(project_ref text)is an extension function and returnsjsonb.ai.status()is an extension function and returnsjsonb.public._ai_callis an extension function.public._ai_extract_agg_ffuncis an extension function.public._ai_summarize_agg_ffuncis an extension function.public._ai_text_accumis an extension function.public.ai_classify(input_text text, categories text[] default array['positive','negative','neutral'], model_name text default null, provider text default 'openai')is an extension function and returnstext.public.ai_complete2(input_text text, system_text text default null, model_name text default null, provider text default 'openai')is an extension function and returnstext.public.ai_embed(input_text text, model_name text default 'text-embedding-3-small', provider text default 'openai')is an extension function and returnsreal[].public.ai_extract(input_text text, schema_hint text default null, model_name text default null, provider text default 'openai')is an extension function and returnsjsonb.public.ai_redact(input_text text, entity_types text[] default array['email','phone','ssn','name'], model_name text default null, provider text default 'openai')is an extension function and returnstext.public.ai_sentiment(input_text text, model_name text default null, provider text default 'openai')is an extension function and returnstext.public.ai_translate(input_text text, target_language text default 'Spanish', model_name text default null, provider text default 'openai')is an extension function and returnstext.
Requirements and Caveats
- The catalog records version
1.0.0. - This is a database.dev/pg_tle package; register or generate its package migration before issuing the quoted
CREATE EXTENSIONidentity. - Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.