正在自动登录…
← 返回项目列表realZachi/
realZachi/ pg-jev
pg-jev 是一个 PostgreSQL 扩展,允许用户用自然语言对数据库表进行过滤、排序和分类,无需编写复杂 SQL 条件。适用于希望以直观方式查询数据的开发者和数据分析师。
AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/14 14:26:08 · 查看原文
- 累计 Stars
- 1,208
- 当前热度
- 已过新项目期
- 仓库创建时间
选用指南
AI 根据 README 整理 · 2026/10/14 14:26:08
- 使用方式
通过 SQL 函数使用,如 jev()、jev_prob() 等,可集成到现有查询中。
查看 README 依据
[TypeSafe's Jev](https://docs.typesafe.ai), a System One model that returns calibrated probabilities instead of generated text. No index, no embeddings, no vector column. Website: [pgjev.com](https://pgjev.com) ```sql CREATE EXTENSION jev CASCADE; SELECT * FROM people WHERE jev(people, 'the name is European'); SELECT subject, jev_prob(tickets, 'the customer is angry') AS p FROM tickets ORDER BY p DESC LIMIT 20; SELECT jev_choice(tickets, 'which team should handle this?', ARRAY['billing', 'technical', 'security', 'sales']) AS team, count(*) FROM tickets GROUP BY 1;
- 部署要求
需要 PostgreSQL 14–17 并安装 plpython3u,需要超级用户权限和 TypeSafe API 密钥。
查看 README 依据
made no difference at 20. Naming rows instead of indexing them did not help. Batches of 20 cost 4 % more tokens than batches of 40 and are just as fast, because a request's latency barely depends on its size. ## Install Requirements: PostgreSQL 14–17 with `plpython3u` (package `postgresql-plpython3-NN` on Debian/Ubuntu, included in the EDB and Postgres.app builds), a superuser, and a TypeSafe API key from https://console.typesafe.ai. Managed hosts that withhold superuser or `plpython3u` (Supabase, Neon, RDS, …) cannot run it; see
- 已知限制
全表扫描设计,每行数据会发送到第三方 API,不适合敏感数据;plpython3u 为不受信任语言,仅超级用户可创建扩展。
查看 README 依据
- Send only the columns the judgment needs: create a view with the relevant columns (and any pre-filter) and call `jev(view_alias, ...)` on the view. Views are read ahead and batched like tables. ## Caveats - This is a full scan by design: every row the executor asks about goes to the API. Cheaper predicates in the same `WHERE` run first and their rejects are skipped; a `LIMIT` stops early; `jev.max_rows_per_statement` caps spend. - Row contents are sent to a third-party API. Do not use it on data you may not share.
- The answer cache lives in the backend session (PL/Python `GD`) and can grow with unique row/question pairs; `jev.max_prefetch_rows` does not cap it. `jev_cache_clear()` clears cached answers and read-ahead state for the current session, and ending the backend session releases the cache. Connection pools with many sessions each warm their own cache. - `plpython3u` is an untrusted language: only superusers can create the extension, and functions run with the server's OS privileges. ## Development ```bash
README
正在加载 README…
收录信息
- 仓库创建时间
- 2026/9/18 04:04:00
- 首次达标收录
- 2026/10/9 12:20:58
- 统计更新时间
- 2026/10/22 18:40:46
按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。
模型评估
值得看加权总分 4.0 / 5
由 Jev 模型根据仓库描述与 README 评估,2026/10/10 13:55:45 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。
仓库信息
- 最近推送
- 2026/10/6 21:55:50
- 许可证标识
- NOASSERTION
- Fork 数
- 99
- 当前状态
- 未归档
收录记录
按创建时长与累计 Stars 首次收录:小火
首次发现项目