Skip to content

pg_systemone

SQL functions for decision-model inference through a SystemOne HTTP service

pg_systemone · SQL functions for decision-model inference through a SystemOne HTTP service

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102259pg_systemonepg_systemone1.0RAGC

PostgreSQL · 14, 15, 16, 17

Usage

Sources:

pg_systemone exposes SystemOne decision-model inference through C SQL functions. It sends requests to a separate HTTP service; it does not embed the model in PostgreSQL. Upstream documents PostgreSQL 14–17 and requires libcurl plus a compatible server.

Core Workflow

CREATE EXTENSION pg_systemone;
SET systemone.api_url = 'http://127.0.0.1:9931/v1/systemone';
SELECT systemone_prob('The shipment arrived damaged.', 'Does this need customer support?');

systemone_choice(state, instructions, criteria) returns a categorical choice. systemone_prob(state, question) returns a probability, systemone_score(state, question, levels) scores ordered labels, and systemone_match_score(job_desc, resume) compares a job description and resume. These are model responses, not deterministic truth.

Configuration and Access

systemone.api_key supplies an optional bearer token. systemone.batch_size is currently a hint for future batching, not a guarantee of batched requests. Legacy jev_* functions and jev.* settings are aliases; this is a distinct C extension from the Python-based Jev extension, but their SQL names can collide.

Installation requires a superuser; no preload is documented. The extension is relocatable. HTTP calls run synchronously in the backend and transmit supplied text. Endpoint and credential settings are user-settable, and the SQL script leaves function execution public: restrict function privileges and network egress before exposing it to untrusted roles. The README’s license badge is not backed by a license file in this revision; the catalog leaves the license unverified.

Table reader