pg_evidence
pg_evidence · Versioned evidence storage and bounded document retrieval
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102183 | pg_evidence | pg_evidence | 0.1.0 | RAG | Rust |
PostgreSQL · 18
Usage
Sources:
pg_evidence 0.1.0 is a development preview for storing document versions, retrieving bounded excerpts and resolving citations to exact UTF-8 byte spans. PostgreSQL 18 and a UTF8 database are required. Embeddings are supplied by the client; vector is needed only for embedding-enabled collections.
Core Workflow
Operational Boundaries
evidence.stage_version() stages source bytes, their digest and spans; evidence.publish_version() makes a version current. evidence.query() supports literal, regex, lexical and optional vector retrieval; evidence.resolve() verifies retained citation bytes. evidence.annotate() manages tags and relationships, and evidence.purge() logically removes retained source content. A nonzero statement_timeout is mandatory for queries: output budgets do not bound database work. Installation requires a superuser; functions use invoker privileges and application roles need schema and corpus grants. Trusted corpus writers can bypass API invariants through direct SQL. Corpus tables survive dropping the extension. Purge does not erase WAL, backups or other copies. License selection and native x86-64 validation remain pending upstream; no production-readiness claim is made.