pg_llm

pg_llm Documentation Index

This folder contains implementation-aligned design docs for pg_llm extension version 1.1.

Scope

pg_llm is a PostgreSQL extension that exposes LLM workflows as SQL APIs:

Build And Install (CMake)

pg_llm is compiled with CMake.

cd contrib/pg_llm
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . -j
sudo cmake --install .

Then in PostgreSQL:

CREATE EXTENSION vector;
CREATE EXTENSION pg_llm;

Test Notes

Regression SQL tests are kept under test/sql and can be executed with installcheck from the extension directory when PGXS test environment is available.

Design Docs