Skip to content

Latest commit

 

History

History
66 lines (47 loc) · 5.16 KB

README.md

File metadata and controls

66 lines (47 loc) · 5.16 KB

pgai documentation

Supercharge your PostgreSQL database with AI capabilities. Supports:

  • Automatic creation and synchronization of vector embeddings for your data
  • Seamless vector and semantic search
  • Retrieval Augmented Generation (RAG) directly in SQL
  • Ability to call out to leading LLMs like OpenAI, Ollama, Cohere, and more via SQL.
  • Built-in utilities for dataset loading and processing

All with the reliability, scalability, and ACID compliance of PostgreSQL.

pgai install

pgai Vectorizer

Vectorizer automates the embedding process within your database management by treating embeddings as a declarative, DDL-like feature — like an index.

Overview: Automate AI embedding with pgai Vectorizer - a comprehensive overview of Vectorizer features, demonstrating how it streamlines the process of working with vector embeddings in your database.

pgai model calling

Model calling allows you to call out to LLM models from SQL. This lets you leverage the power of LLMs for a variety of tasks, including classification, summarization, moderation, and other forms of data enrichment.

The following models are supported (click on the model to learn more):

Model Tokenize Embed Chat Complete Generate Moderate Classify Rerank
Ollama ✔️ ✔️ ✔️
OpenAI ✔️️ ✔️ ✔️ ✔️
Anthropic ✔️
Cohere ✔️ ✔️ ✔️ ✔️ ✔️
Voyage AI ✔️
Huggingface (with LiteLLM) ✔️
Mistral (with LiteLLM) ✔️
Azure OpenAI (with LiteLLM) ✔️
AWS Bedrock (with LiteLLM) ✔️
Vertex AI (with LiteLLM) ✔️

pgai utils

pgai operations and security