首页 时政热点 科技头条 智能AI 安全攻防 数码硬件 开发者生态 汽车 游戏 社会热点 开源推荐 医疗健康 归档 标签 关于

GitHub热门项目: pgai

摘要

GitHub项目:pgai 仓库地址:https://github.com/timescale/pgai Stars:5797 | 作者:timescale 项目描述:A suite of tools to develop RAG, semantic search, and other AI applications more easily with PostgreSQL ============...

the and pgai PostgreSQL data with from for this The
2026-07-06 1 阅读 约7分钟阅读 GitHub Trending
分享:
字号:
GitHub项目:pgai 仓库地址:https://github.com/timescale/pgai Stars:5797 | 作者:timescale 项目描述:A suite of tools to develop RAG, semantic search, and other AI applications more easily with PostgreSQL ================================================== README 内容:

pgai pgai

Power your RAG and Agentic applications with PostgreSQL


As of February 2026, this project is no longer being maintained or supported.

A Python library that transforms PostgreSQL into a robust, production-ready retrieval engine for RAG and Agentic applications. - 🔄 **Automatically create and synchronize vector embeddings** from PostgreSQL data and S3 documents. Embeddings update automatically as data changes. - 🤖 **[Semantic Catalog](/docs/semantic_catalog/README.md): Enable natural language to SQL with AI**. Automatically generate database descriptions and power text-to-SQL for agentic applications. - 🔍 Powerful vector and semantic search with pgvector and pgvectorscale. - 🛡️ Production-ready out-of-the-box: Supports batch processing for efficient embedding generation, with built-in handling for model failures, rate limits, and latency spikes. - 🐘 Works with any PostgreSQL database, including Timescale Cloud, Amazon RDS, Supabase and more. **Basic Architecture**: The system consists of an application you write, a PostgreSQL database, and stateless vectorizer workers. The application defines a vectorizer configuration to embed data from sources like PostgreSQL or S3. The workers read this configuration, processes the data queue into embeddings and chunked text, and writes the results back. The application then queries this data to power RAG and semantic search. The key strength of this architecture lies in its resilience: data modifications made by the application are decoupled from the embedding process, ensuring that failures in the embedding service do not affect the core data operations.
Pgai Architecture: application, database, vectorizer worker
### install First, install the pgai package. ```bash pip install pgai ``` Then, install the pgai database components. You can do this from the terminal using the CLI or in your Python application code using the pgai python package. ``` # from the cli pgai install -d # or from the python package, often done
这篇文章对您有帮助吗?

订阅66必读

每日精选科技资讯,直达你的邮箱