What is PostgresML?
PostgresML is an innovative extension for PostgreSQL that brings machine learning (ML) and artificial intelligence (AI) directly into your database. By combining data storage and ML inference in one place, PostgresML eliminates the need to move data to separate systems, making your applications more efficient, secure, and scalable.
What are the features of PostgresML?
- In-Database ML/AI: Run machine learning and AI operations directly within PostgreSQL.
- GPU Acceleration: Leverage GPU power for faster computations and model inference.
- Large Language Models: Integrate state-of-the-art models from Hugging Face for advanced NLP tasks.
- RAG Pipeline: Built-in functions for chunking, embedding, ranking, and transforming text.
- Vector Search: Efficient similarity search using pgvector integration.
- Diverse ML Algorithms: 47+ classification and regression algorithms available.
- High Performance: 8-40X faster inference compared to HTTP-based model serving.
- Scalability: Supports millions of transactions per second and horizontal scaling.
- NLP Tasks: Wide range of natural language processing capabilities.
- Security: Enhanced data privacy by keeping models and data together.
What are the use cases of PostgresML?
- Customer Service Automation: Use AI to analyze and respond to customer inquiries.
- Personalized Recommendations: Deliver tailored suggestions based on user behavior.
- Fraud Detection: Identify suspicious transactions with ML models.
- Content Generation: Automatically generate text, summaries, or translations.
- Data Analysis: Run classification, regression, and clustering tasks directly on your data.
How to use PostgresML?
- Get Started with PostgresML Cloud: Sign up for a free account and get a database with GPU support in seconds.
- Self-Host with Docker: Run PostgresML locally using Docker:
docker run -it -v postgresml_data:/var/lib/postgresql -p 5433:5432 -p 8000:8000 ghcr.io/postgresml/postgresml:2.10.0 sudo -u postgresml psql -d postgresml - Use PostgresML Extensions: Install the
pgmlextension in your PostgreSQL database and start running ML queries.






