Name | pgai JSON |
Version |
0.6.0
JSON |
| download |
home_page | None |
Summary | AI workflows in your PostgreSQL database |
upload_time | 2025-01-28 09:27:30 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | None |
keywords |
ai
postgres
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<p align="center">
<img height="200" src="https://github.com/timescale/pgai/blob/main/docs/images/pgai_logo.png?raw=true" alt="pgai"/>
</p>
<p></p>
<div align=center>
<h3>pgai allows you to develop RAG, semantic search, and other AI applications directly in PostgreSQL</h3>
[](https://discord.gg/KRdHVXAmkp)
[](https://tsdb.co/gh-pgai-signup)
</div>
pgai simplifies the process of building [search](https://en.wikipedia.org/wiki/Similarity_search),
[Retrieval Augmented Generation](https://en.wikipedia.org/wiki/Prompt_engineering#Retrieval-augmented_generation) (RAG), and other AI applications with PostgreSQL.
# Overview
The goal of pgai is to make working with AI easier and more accessible to developers. Because data is
the foundation of most AI applications, pgai makes it easier to leverage your data in AI workflows. In particular, pgai supports:
**Working with embeddings generated from your data:**
* Automatically create and sync vector embeddings for your data ([learn more](https://github.com/timescale/pgai/blob/main/README.md#automatically-create-and-sync-llm-embeddings-for-your-data))
* Search your data using vector and semantic search ([learn more](https://github.com/timescale/pgai/blob/main/README.md#search-your-data-using-vector-and-semantic-search))
* Implement Retrieval Augmented Generation inside a single SQL statement ([learn more](https://github.com/timescale/pgai/blob/main/README.md#implement-retrieval-augmented-generation-inside-a-single-sql-statement))
* Perform high-performance, cost-efficient ANN search on large vector workloads with [pgvectorscale](https://github.com/timescale/pgvectorscale), which complements pgvector.
**Leverage LLMs for data processing tasks:**
* Retrieve LLM chat completions from models like Claude Sonnet 3.5, OpenAI GPT4o, Cohere Command, and Llama 3 (via Ollama). ([learn more](https://github.com/timescale/pgai/blob/main/README.md#usage-of-pgai))
* Reason over your data and facilitate use cases like classification, summarization, and data enrichment on your existing relational data in PostgreSQL ([see an example](https://github.com/timescale/pgai/blob/main/docs/openai.md)).
**Learn more about pgai:** To learn more about the pgai extension and why we built it, read
[pgai: Giving PostgreSQL Developers AI Engineering Superpowers](http://www.timescale.com/blog/pgai-giving-postgresql-developers-ai-engineering-superpowers).
**Contributing**: We welcome contributions to pgai! See the [Contributing](https://github.com/timescale/pgai/blob/main/CONTRIBUTING.md) page for more information.
# Getting Started
Here's how to get started with pgai:
For a quick start, try out automatic data embedding using pgai Vectorizer:
- Try our cloud offering by creating a [free trial account](https://tsdb.co/gh-pgai-signup) and heading over to our pgai Vectorizer [documentation](https://github.com/timescale/pgai/blob/main/docs/vectorizer.md).
- or check out our [quick start guide](https://github.com/timescale/pgai/blob/main/docs/vectorizer-quick-start.md) to get up and running in less than 10 minutes with a self-hosted Postgres instance.
For other use cases, first [Install pgai](https://github.com/timescale/pgai/blob/main/README.md#installation) in Timescale Cloud, a pre-built Docker image, or from source. Then, choose your own adventure:
- Automate AI embedding with [pgai Vectorizer](https://github.com/timescale/pgai/blob/main/docs/vectorizer.md).
- Use pgai to integrate AI from your provider. Some examples:
* [Ollama](https://github.com/timescale/pgai/blob/main/docs/ollama.md) - configure pgai for Ollama, then use the model to embed, chat complete and generate.
* [OpenAI](https://github.com/timescale/pgai/blob/main/docs/openai.md) - configure pgai for OpenAI, then use the model to tokenize, embed, chat complete and moderate. This page also includes advanced examples.
* [Anthropic](https://github.com/timescale/pgai/blob/main/docs/anthropic.md) - configure pgai for Anthropic, then use the model to generate content.
* [Cohere](https://github.com/timescale/pgai/blob/main/docs/cohere.md) - configure pgai for Cohere, then use the model to tokenize, embed, chat complete, classify, and rerank.
- Leverage LLMs for data processing tasks such as classification, summarization, and data enrichment ([see the OpenAI example](https://github.com/timescale/pgai/blob/main/docs/openai.md)).
Raw data
{
"_id": null,
"home_page": null,
"name": "pgai",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "ai, postgres",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/cb/96/55957dc1b8281791ca8f6375fd9f97eb72d2db642b6a521019752ea5dc25/pgai-0.6.0.tar.gz",
"platform": null,
"description": "<p align=\"center\">\n <img height=\"200\" src=\"https://github.com/timescale/pgai/blob/main/docs/images/pgai_logo.png?raw=true\" alt=\"pgai\"/>\n</p>\n\n<p></p>\n<div align=center>\n\n<h3>pgai allows you to develop RAG, semantic search, and other AI applications directly in PostgreSQL</h3>\n\n[](https://discord.gg/KRdHVXAmkp)\n[](https://tsdb.co/gh-pgai-signup)\n\n</div>\n\npgai simplifies the process of building [search](https://en.wikipedia.org/wiki/Similarity_search),\n[Retrieval Augmented Generation](https://en.wikipedia.org/wiki/Prompt_engineering#Retrieval-augmented_generation) (RAG), and other AI applications with PostgreSQL.\n\n# Overview\nThe goal of pgai is to make working with AI easier and more accessible to developers. Because data is\nthe foundation of most AI applications, pgai makes it easier to leverage your data in AI workflows. In particular, pgai supports:\n\n**Working with embeddings generated from your data:**\n* Automatically create and sync vector embeddings for your data ([learn more](https://github.com/timescale/pgai/blob/main/README.md#automatically-create-and-sync-llm-embeddings-for-your-data))\n* Search your data using vector and semantic search ([learn more](https://github.com/timescale/pgai/blob/main/README.md#search-your-data-using-vector-and-semantic-search))\n* Implement Retrieval Augmented Generation inside a single SQL statement ([learn more](https://github.com/timescale/pgai/blob/main/README.md#implement-retrieval-augmented-generation-inside-a-single-sql-statement))\n* Perform high-performance, cost-efficient ANN search on large vector workloads with [pgvectorscale](https://github.com/timescale/pgvectorscale), which complements pgvector.\n\n**Leverage LLMs for data processing tasks:**\n* Retrieve LLM chat completions from models like Claude Sonnet 3.5, OpenAI GPT4o, Cohere Command, and Llama 3 (via Ollama). ([learn more](https://github.com/timescale/pgai/blob/main/README.md#usage-of-pgai))\n* Reason over your data and facilitate use cases like classification, summarization, and data enrichment on your existing relational data in PostgreSQL ([see an example](https://github.com/timescale/pgai/blob/main/docs/openai.md)).\n\n**Learn more about pgai:** To learn more about the pgai extension and why we built it, read\n[pgai: Giving PostgreSQL Developers AI Engineering Superpowers](http://www.timescale.com/blog/pgai-giving-postgresql-developers-ai-engineering-superpowers).\n\n**Contributing**: We welcome contributions to pgai! See the [Contributing](https://github.com/timescale/pgai/blob/main/CONTRIBUTING.md) page for more information.\n\n# Getting Started\n\nHere's how to get started with pgai:\n\nFor a quick start, try out automatic data embedding using pgai Vectorizer:\n\n - Try our cloud offering by creating a [free trial account](https://tsdb.co/gh-pgai-signup) and heading over to our pgai Vectorizer [documentation](https://github.com/timescale/pgai/blob/main/docs/vectorizer.md).\n - or check out our [quick start guide](https://github.com/timescale/pgai/blob/main/docs/vectorizer-quick-start.md) to get up and running in less than 10 minutes with a self-hosted Postgres instance.\n\nFor other use cases, first [Install pgai](https://github.com/timescale/pgai/blob/main/README.md#installation) in Timescale Cloud, a pre-built Docker image, or from source. Then, choose your own adventure:\n - Automate AI embedding with [pgai Vectorizer](https://github.com/timescale/pgai/blob/main/docs/vectorizer.md).\n - Use pgai to integrate AI from your provider. Some examples:\n * [Ollama](https://github.com/timescale/pgai/blob/main/docs/ollama.md) - configure pgai for Ollama, then use the model to embed, chat complete and generate.\n * [OpenAI](https://github.com/timescale/pgai/blob/main/docs/openai.md) - configure pgai for OpenAI, then use the model to tokenize, embed, chat complete and moderate. This page also includes advanced examples.\n * [Anthropic](https://github.com/timescale/pgai/blob/main/docs/anthropic.md) - configure pgai for Anthropic, then use the model to generate content.\n * [Cohere](https://github.com/timescale/pgai/blob/main/docs/cohere.md) - configure pgai for Cohere, then use the model to tokenize, embed, chat complete, classify, and rerank.\n - Leverage LLMs for data processing tasks such as classification, summarization, and data enrichment ([see the OpenAI example](https://github.com/timescale/pgai/blob/main/docs/openai.md)).\n",
"bugtrack_url": null,
"license": null,
"summary": "AI workflows in your PostgreSQL database",
"version": "0.6.0",
"project_urls": {
"Bug Tracker": "https://github.com/timescale/pgai/issues",
"Documentation": "https://github.com/timescale/pgai/tree/main/docs",
"Homepage": "https://github.com/timescale/pgai",
"Repository": "https://github.com/timescale/pgai"
},
"split_keywords": [
"ai",
" postgres"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "b0f2ee4f1cc8384f64f7c437d4cf558d0e3ed4ff81d2821106b5636ded5fd425",
"md5": "a8291bd17952b4e3ae3a6a31d81d405e",
"sha256": "86ff876408793a1daf52f203677a30fd14128a210ea980ee33a759ae9cbd812b"
},
"downloads": -1,
"filename": "pgai-0.6.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a8291bd17952b4e3ae3a6a31d81d405e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 3810823,
"upload_time": "2025-01-28T09:27:27",
"upload_time_iso_8601": "2025-01-28T09:27:27.107462Z",
"url": "https://files.pythonhosted.org/packages/b0/f2/ee4f1cc8384f64f7c437d4cf558d0e3ed4ff81d2821106b5636ded5fd425/pgai-0.6.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "cb9655957dc1b8281791ca8f6375fd9f97eb72d2db642b6a521019752ea5dc25",
"md5": "99426d0872c69136f14ee6879be91abb",
"sha256": "27e36db2f83cf977fa71f36f4876fbdec9b175b53663d693d9fc8860b954b42a"
},
"downloads": -1,
"filename": "pgai-0.6.0.tar.gz",
"has_sig": false,
"md5_digest": "99426d0872c69136f14ee6879be91abb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 4472120,
"upload_time": "2025-01-28T09:27:30",
"upload_time_iso_8601": "2025-01-28T09:27:30.252501Z",
"url": "https://files.pythonhosted.org/packages/cb/96/55957dc1b8281791ca8f6375fd9f97eb72d2db642b6a521019752ea5dc25/pgai-0.6.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-28 09:27:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "timescale",
"github_project": "pgai",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pgai"
}