Postgres extension for in-database ML/AI
Top 8.1% on sourcepulse
PostgresML provides a PostgreSQL extension that integrates machine learning and AI capabilities directly within the database, targeting developers and data scientists who want to process data where it resides. This approach aims to reduce latency, improve security, and simplify infrastructure by eliminating the need for separate ML systems and data transfers, offering significant performance gains over traditional HTTP-based model serving.
How It Works
PostgresML functions as a PostgreSQL extension, allowing ML operations to be executed directly within the database using SQL. It leverages GPU acceleration for faster inference and supports integrating state-of-the-art models from Hugging Face. The system is designed for seamless integration with existing PostgreSQL tools and client libraries, and it includes built-in functions for Retrieval-Augmented Generation (RAG) pipelines, such as text chunking, embedding generation, ranking, and text transformation.
Quick Start & Requirements
docker run -it -v postgresml_data:/var/lib/postgresql -p 5433:5432 -p 8000:8000 ghcr.io/postgresml/postgresml:2.10.0
pgml
extension installed. GPU acceleration is recommended for performance.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
Currently, PostgresML does not directly support integration with remote LLM providers like OpenAI, requiring users to leverage Hugging Face models or self-hosted alternatives for LLM capabilities.
1 month ago
Inactive