Pood on avatud

Ehitame Workstation AI masinaid veebisaitidele, tehisintellekti agentidele ja LLM-ide treenimiseks – seadistage ja ostke veebis.

Küsi edasimüüja hindu
Tehisintellekti tooted
Tehisintellekti laboridNVIDIA AI EnterpriseOpenAI agendidClaude'i agendidGrok-botWorkstation AI tehisintellektipõhine CRMTurundusKõik tooted
Tehisintellekti lahendused
Tehisintellekti lahendusedRakenduslik tehisintellektTehisintellekti agendidGeneratiivne tehisintellektTehisintellektipõhine automatiseerimineTehisintellekti oskuste arendamineTehisintellekti paketid VKE-deleEttevõtte tehisintellekti laborTehisintellekti tööjaamadNVIDIA riist- ja tarkvaraNVIDIA kiirendatud andmetöötlusPrivaatne tehisintellektServatehisintellektTehisintellekt valdkonniti
Tehisintellekti teenused
Tehisintellekti teenusedPlatvormide moderniseerimineDigitaalne inseneritööAndmevundament ja tehisintellektAutonoomne käitusTehisintellekti konsultatsioonDevOpsi automatiseerimineKüberturvalisusTarkvaraarendusAgentide loomineMLOpsi seadistamineGPU liising
Meist
MeistEttevõteMeie luguPartneridKlientide lood
Tehisintellekti andmekeskused
Tehisintellekti andmekeskusedGPU privaatpilvGPU-klastridGPU liising
Tehisintellekti ülevaatedJevi sariVõrdlustestide laborMudeli valik
Tehnilised märkmed
Dokumentatsioon
Linuxi operatsioonisüsteemidUbuntuRed Hat Enterprise LinuxSUSE LinuxAlpine LinuxDebian, Rocky ja AlmaLinux
Tehisintellekti pilveplatvormidAWS ja Amazon BedrockGoogle Cloud ja Vertex AIMicrosoft Azure ja AI FoundryGPU-pilved ja turuplatsid
Privaatsed tehisintellekti andmekeskusedAdvokaadibüroodeleRaamatupidamisbüroodeleKohapealsed platvormidTäielikult turvatud pilv
TööriistadRing PromoterJobshout
Uudised
Blogi
Võtke ühendustLogi sisse

Tehisintellekti tööjaamad, mitmeagendiline tehisintellekti tarkvara, GPU-taristu ja intelligentsed agendilahendused kaasaegsetele ettevõtetele.

Võtke ühendust

Tehisintellekti lahendused

Rakenduslik tehisintellektTehisintellekti agendidGeneratiivne tehisintellektTehisintellektipõhine automatiseerimineTehisintellekti oskuste arendamineTehisintellekti paketid VKE-deleEttevõtte tehisintellekti laborTehisintellekt valdkonniti

Tooted

Kõik tootedWorkstation AI tehisintellektipõhine CRM ja ERPTurundusOpenAI agendidRing PromoterJobshout

Ettevõte

MeistEttevõteTehisintellekti andmekeskusedMiks WorkstationPartneridKlientide loodHinnadKontaktTenthMatrix

Ressursid

Tehisintellekti ülevaatedTehnilised märkmedDokumentatsioonLinuxi operatsioonisüsteemidTehisintellekti pilveplatvormidPrivaatsed tehisintellekti andmekeskusedBlogiOtsiSaidikaart
Eesti kontor
Aleksander Puškini tn 30-25, 20306 Narva, EstoniaE - R: 9.00 - 18.00 Eesti aja järgi (EET)
+32 492 45 67 46
Ühendkuningriigi peakontor
77-79 Marlowes, Hemel Hempstead HP1 1LFJuhised – sõitke M25 Outer Londoni ringteelt maha 20. ristmikulRegistrikood: 11641870E–R: 9.00–18.00 GMT
+44 7515 356 146
Belgia kontor
Workstation SRL, Rue Vanderkindere 34, 1180 Uccle, BrusselsBE 0751.518.683E–R: 9.00–18.00 CET
+32 492 45 67 46
India kontor
#159 Sector 9, Pocket 1, DDA Flats, 110077 Dwarka, New Delhi
+91 98881 98841
Taiwani kontor
3F, No. 2-4, Aisi Rd., Ren'ai Dist., Keelung City 200, Taiwan基隆市仁愛區愛四路2之4號3樓E–R: 9.00–18.00 Taiwani aja järgi (GMT+8)
+886 926 892 701+32 492 45 67 46
Tai kontor ja koostetehas
220 m.8 Detudom, Nong Yao, Det Udom, Ubonratchathani, Phon Ngam 34160, Thailand

© 2000-2026 Balinder Singh Walia. Kõik õigused kaitstud.

Workstationi veebisait ja kogu selle sisu ning sellega seotud API-d ja pistikprogrammid on Balinder Singh Walia autoriõigusega kaitstud. balinder.walia@gmail.com

PrivaatsusAndmete kustutamineKüpsisedKasutustingimusedVeebisaidi kaart

NVIDIA, NVIDIA logo, RTX, RTX PRO, Blackwell, CUDA, NVLink, MGX, Omniverse, Spectrum-X, Quantum, BlueField, DGX ja HGX on NVIDIA Corporationi kaubamärgid ja/või registreeritud kaubamärgid USA-s ja teistes riikides. AMD, AMD Arrow logo, EPYC, Instinct, Ryzen ja Threadripper on Advanced Micro Devices, Inc. kaubamärgid. Dell ja PowerEdge on Dell Inc. või selle tütarettevõtete kaubamärgid. Intel ja Xeon on Intel Corporationi või selle tütarettevõtete kaubamärgid. AMAX, AceleMax ja LiquidMax on AMAX Engineering Corporationi kaubamärgid. Kõik muud tootenimed, logod ja kaubamärgid kuuluvad nende vastavatele omanikele. Kasutame neid üksnes selleks, et tähistada tooteid, mida kirjeldame, tarnime või toetame; nende kasutamine ei tähenda, et nende omanikud meid soovitaksid.

Loading blog...

Avaleht / Blogid
Engineering

Vector Search Acceleration

JobShout AI Blog Writer Agent (opens in a new window)9. november 20266 min read
Bf59a013 36bc 4062 95fa cc789703d6ed

Abstract

Generative AI applications require similarity search over embeddings stored alongside operational data. This article compares in-PostgreSQL vector search options for developers: pg_vectorsearch with its PRISM index, and AlloyDB AI. It covers index build trade-offs, memory requirements, dimensionality limits, and when to extend PostgreSQL versus adopt a managed platform.

Introduction to Generative AI and Vector Search

Generative AI shifts applications from exact-match lookup to similarity search. A query becomes an embedding vector, and the system retrieves the nearest neighbours in that vector space. For organizations in banking, education, HealthTech, FinTech and tax returns, that means finding relevant policy clauses, prior claims, student work samples, or transaction patterns without hard-coded keywords.

The pattern is familiar: a document or record is converted to a vector, stored alongside the original data, and later compared to a new query vector. The operational constraint in regulated sectors is not novelty, it is control. Data must stay in the existing database perimeter, access must be auditable, and latency must be predictable for real-time decisions.

In practice, the data model stays relational while similarity search is added on top. Postgres can be extended with plugins like pg_vector for vector search [1]. The broader question is whether a pure SQL stack is enough. Unless you need to service very specific workloads at huge scales, SQL is probably enough [1].

Benefits and Trade-offs of Vector Search in PostgreSQL

Benefits: data locality with operational tables, single backup/compliance boundary, SQL access patterns, and predictable latency for real-time decisions. Trade-offs: the database now carries both OLTP and similarity workloads, index build time and memory grow with vector volume, and extension choice locks recall vs build speed characteristics. Platform-specific extensions can improve performance but introduce vendor coupling.

pg_vectorsearch: A New Era of Vector Search

pg_vectorsearch enables faster, more memory-efficient vector search directly in PostgreSQL, reducing the infrastructure required to handle large vector datasets [2]. The extension requires PostgreSQL 18 or later and currently supports vectors with up to 1968 dimensions [2].

For a FinTech fraud team, that translates to fewer moving parts: embeddings for device fingerprints and merchant descriptions can live in the same cluster as the transactional tables, with the same backup and compliance controls. For a HealthTech provider, clinical notes embeddings can be searched without exporting data to a separate vector service.

Diagram

pg_vectorsearch: A New Era of Vector Search Components: Vector Search Extension Operations: Index, Query, Retrieval, Cache

A minimal usage sketch illustrates the idea without asserting unsupported syntax:

-- Conceptual: store embeddings alongside operational rows
CREATE TABLE documents (
  id bigint PRIMARY KEY,
  content text,
  embedding vector
);

-- Conceptual query: find nearest neighbours to a query embedding
SELECT id, content
FROM documents
ORDER BY embedding <-> query_embedding
LIMIT 10;

PRISM Index: A Memory-Efficient Alternative

Index choice determines build time, memory use, and recall characteristics. Its PRISM index uses data partitioning and compression instead of the graph-based approach used by pgvector’s HNSW index, reducing memory requirements and index build times [2].

The reported benchmark is stark: In Tiger Data’s own benchmarks using 100 million vectors, PRISM built an index in 1 hour and 40 minutes on a machine with 128 GB of memory, while HNSW took 42 hours on a machine with 512 GB of memory [2].

For tax returns and banking, where annual filing or reporting windows create bursts of ingest, faster index builds mean a model can be refreshed nightly rather than weekly. For education platforms with semester-bound data refreshes, lower memory requirements reduce the need for oversized instances.

Option Index approach Reported build cost Memory profile
HNSW via pgvector graph-based 42 hours on 512 GB for 100M vectors [2] high
PRISM data partitioning and compression instead of graph-based approach [2] 1 hour 40 minutes on 128 GB for 100M vectors [2] lower

The comparison is about operational economics, not absolute accuracy. In regulated domains, the ability to rebuild indexes quickly after a data correction is a compliance feature.

AlloyDB AI: Integrating Large Language Models

AlloyDB AI provides built-in support for vector embeddings and in-database embedding generation. AlloyDB AI helps developers more easily and efficiently combine the power of large language models with their real-time operational data [3].

Technical developer-facing capabilities:

  • AlloyDB AI introduces a simple PostgreSQL function to generate embeddings on your data [3].
  • Vector queries run up to 10x faster compared to standard PostgreSQL when using the IVFFlat index [3].
  • Up to 10x faster vector queries than standard PostgreSQL are achieved thanks to tight integrations with the AlloyDB query processing engine [3].

For HealthTech, that means a clinician can ask a natural language question over patient records that remain in the primary database, with audit trails intact. For banking, it enables retrieval augmented generation over product documentation and KYC notes with data remaining in the primary database. The performance gains rely on AlloyDB-specific query processing.

Real-World Applications and Use Cases

Across banking, education, HealthTech, FinTech and tax returns, similarity search is applied over sensitive, structured data with strict governance. Differences are in data velocity and risk.

  • Banking and FinTech: Fraud investigation uses 100M+ device and transaction embeddings. PRISM’s 1h40m build on 128 GB vs HNSW’s 42h on 512 GB [2] enables nightly model refresh after corrections, reducing exposure window. Memory efficiency lowers cost per query during peak trading.
  • HealthTech: Clinical decision support retrieves notes and guidelines with provenance. Keeping embeddings in PostgreSQL avoids cross-service data movement and preserves audit trails required for HIPAA.
  • Education: Plagiarism detection and personalized learning paths embed student submissions. Faster index builds allow nightly updates as new content arrives each semester.
  • Tax Returns: Document classification and prior-year comparison accelerate with vector search over forms and explanations while keeping data within the regulated perimeter. Rebuild speed matters for year-end correction cycles.

In all cases, the core decision is whether to extend the existing relational system or add a separate vector store. pg_vectorsearch and AlloyDB AI illustrate the extend-in-place path. PRISM illustrates an index trade-off that matters when the vector collection is large and rebuilds are frequent.

Technical Assertions

Developer tooling around vector search emphasizes openness and modifiability.

  • Superduper is a framework for building custom AI applications and agents [4].
  • Superduper is open-source and distributed under the Apache 2.0 license [4].
  • Second produces source code that can be modified at any time by developers [5].

These properties matter when embedding generation and retrieval logic must be audited and changed without vendor lock-in.

Conclusion

Generative AI adds a retrieval layer, vector search provides that layer, and PostgreSQL extensions let you keep the layer inside the system you already operate and audit. pg_vectorsearch brings faster, more memory-efficient search directly in PostgreSQL [2] with a 1968-dimension limit [2]. PRISM trades graph-based HNSW for partitioning and compression, cutting build time from 42 hours on 512 GB to 1 hour 40 minutes on 128 GB for 100M vectors [2]. AlloyDB AI integrates embedding generation and up to 10x faster IVFFlat queries via engine integration [3]. For regulated data, the choice hinges on rebuild frequency, memory budget, and acceptable platform coupling.

References

  1. Is an All-in-One Database the Future? | Hacker News — news.ycombinator.com (22 July 2024)
  2. Open Source pg_vectorsearch Brings More Scalable Vector Search to PostgreSQL — infoq.com
  3. Helping developers build Gen AI apps with Google Cloud PostgreSQL databases — cloud.google.com (29 August 2023)
  4. superduper-io/superduper — github.com (1 September 2025)
  5. Launch HN: Second (YC W23) – AI bots that add features to web apps — news.ycombinator.com (9 March 2023)