Timescale Inc. Launches New Extensions to Boost PostgreSQL for AI Applications

06 Jul 2024

Enhancing PostgreSQL for AI Applications

The new extensions, pgvectorscale and pgai, empower PostgreSQL, an open-source relational database, to efficiently handle vector data retrieval. This capability is crucial for developing AI applications and specialized contextual searches. Vector databases enable AI developers to organize data into high-dimensional arrays based on contextual relationships. Unlike traditional relational databases, vector databases store data using contextual meanings, allowing for connections based on "nearest neighbor" relationships. For instance, a cat and a dog are closer in meaning (as household pets) than a cat and an apple. This contextual storage accelerates information retrieval during AI searches for semantic data such as keywords, documents, images, and other media.

Avthar Sewrathan, AI product lead at Timescale, explained to SiliconANGLE that while most data is stored in high-performance vector databases, not all data used by services resides in vector databases. Consequently, multiple data sources often coexist within the same environment.

"Everyone at every organization in the world is trying to integrate AI in some way, whether it’s building new applications that leverage large language model capabilities or reimagining existing applications," said Sewrathan. "So, when CTOs or engineering teams explore AI integration, they face a choice: use a separate vector database or utilize a familiar database. The motivation behind these extensions is to make Postgres a better database for AI."

Introducing pgvectorscale

The pgvectorscale extension builds on the existing open-source extension pgvector, enabling developers to create more scalable AI applications with higher performance embedding for search at lower costs. Sewrathan highlighted two key innovations in pgvectorscale: DiskANN and Statistical Binary Quantization. DiskANN can offload half of its search indexes to disk, typically stored in memory, with minimal performance impact, significantly reducing costs. Statistical Binary Quantization improves standard binary quantization, reducing memory usage.

Timescale’s benchmarks for pgvectorscale demonstrated that PostgreSQL could achieve 28x lower latency for 95% and 16x higher query throughput compared to the popular Pinecone vector database for approximate nearest neighbor queries at 99% recall. Unlike pgvector, written in C, pgvectorscale is developed in Rust, opening new opportunities for PostgreSQL developers to build vector support.

Introducing pgai

The pgai extension simplifies the development of search and retrieval-augmented generation (RAG) solutions for AI applications. RAG combines vector databases' strengths with large language models (LLMs) by providing real-time, authoritative information to reduce AI hallucinations—instances where AI confidently issues false statements. This technique is essential for building accurate and reliable AI applications. The initial release of pgai supports creating OpenAI embeddings quickly and generating OpenAI chat completions from models like GPT-4o directly within PostgreSQL.

OpenAI’s GPT-4o is the latest flagship model offering powerful multimodal capabilities, including real-time voice conversation and video understanding. Sewrathan emphasized that integrating vector capabilities into PostgreSQL creates a powerful "ease of use" bridge for many developers, as many businesses already rely on PostgreSQL or other relational databases.

"The ability to add vector storage and retrieval capabilities directly into PostgreSQL means developers can leverage their existing infrastructure while enhancing their applications with advanced AI functionalities," Sewrathan noted. "This approach not only simplifies the integration process but also reduces the learning curve associated with adopting new technologies."

As organizations worldwide continue to explore AI integration, Timescale's new extensions offer a promising solution for those looking to enhance their PostgreSQL databases with cutting-edge AI capabilities.

Top charts for

uTorrent

uTorrent

Latest update uTorrent download for free for Windows PC or Android mobile

5
1032 reviews
7508586
downloads
Zona

Zona

Latest update Zona download for free for Windows PC or Android mobile

4
614 reviews
1735529
downloads
WinRAR

WinRAR

Streamline file management with fast compression, secure your documents, and save space.

5
735 reviews
746751
downloads
Minecraft

Minecraft

Shape environments, explore vast worlds, and survive against monsters with endless creativity.

5
750 reviews
496420
downloads

News and reviews for

Visio 2021 Professional Now $9.97 Until February 8

Microsoft offers Visio 2021 Professional for $9.97, down from $249, with added templates, until February 8.

Read more

Code Vein Offers Stylish Combat, Discounted Editions

Code Vein captivates with anime-style combat and offers discounted editions. Fast-paced action meets fun builds in this cult classic.

Read more

Microsoft Phases Out RC4 in Kerberos for Windows Security

Microsoft to eliminate RC4 in Kerberos by July 2026, enhancing Windows security.

Read more

Highguard Faces Criticism but Shows Potential for Growth

Highguard, launched with controversy, holds potential despite poor reviews. Offering genre innovation, it aims to evolve against negative feedback.

Read more

PS2Recomp Boosts Native PS2 Games with Recompilation

PS2Recomp, a new tool, promises enhanced native PS2 game ports, sparking interest among developers for PC platforms.

Read more

NVIDIA Introduces RTX Remix Logic for Classic Game Mods

NVIDIA's RTX Remix Logic, launched on 2026-01-27, enables dynamic modding of classic PC games with a no-code node-based interface.

Read more

Windows 11 Update KB5074109 Affects Legacy Modems

The Windows 11 update KB5074109 disrupts modems by removing several legacy drivers, causing connectivity issues for select users.

Read more

Anytype Replaces Notion, Obsidian, and Todoist for Unified Workflow

Anytype consolidates Notion, Obsidian, and Todoist functions, reducing context-switching and improving workflow efficiency.

Read more

ReBlade: Cyberpunk Roguelike Announced by ChillyRoom

ReBlade from ChillyRoom and Spiral Up Games announced for PC: cyberpunk roguelike offers high-speed action in a dystopian setting.

Read more

Artorias Battles Elden Ring Bosses in New Video Showcase

Artorias from Dark Souls faces Elden Ring bosses, demonstrating impressive skills in Fights' YouTube video.

Read more