🐧 Linux TippsDebian 11 Long Term Support reaches end-of-life(31.08.2026 um 02:00 Uhr)
🐧 Linux TippsUpdated Debian 13: 13.7 released(12.09.2026 um 02:00 Uhr)
🕵️ SicherheitslückenUSN-8741-1: Flatpak vulnerabilities(10.09.2026 um 10:44 Uhr)
🕵️ SicherheitslückenUSN-8742-1: Netty vulnerability(10.09.2026 um 11:01 Uhr)
🕵️ SicherheitslückenUSN-8737-2: GNU C Library vulnerabilities(10.09.2026 um 13:25 Uhr)
🕵️ SicherheitslückenUSN-8743-1: PHP vulnerabilities(10.09.2026 um 13:48 Uhr)
🕵️ SicherheitslückenUSN-8744-1: Python vulnerabilities(10.09.2026 um 15:53 Uhr)
🐧 Linux TippsUSN-8748-1: Linux kernel (NVIDIA) vulnerabilities(10.09.2026 um 17:32 Uhr)
🕵️ SicherheitslückenUSN-8745-1: KissFFT vulnerabilities(10.09.2026 um 17:36 Uhr)
🕵️ SicherheitslückenUSN-8746-1: libEBML vulnerability(10.09.2026 um 17:48 Uhr)
🐧 Linux TippsDebian 11 Long Term Support reaches end-of-life(31.08.2026 um 02:00 Uhr)
🐧 Linux TippsUpdated Debian 13: 13.7 released(12.09.2026 um 02:00 Uhr)
🕵️ SicherheitslückenUSN-8741-1: Flatpak vulnerabilities(10.09.2026 um 10:44 Uhr)
🕵️ SicherheitslückenUSN-8742-1: Netty vulnerability(10.09.2026 um 11:01 Uhr)
🕵️ SicherheitslückenUSN-8737-2: GNU C Library vulnerabilities(10.09.2026 um 13:25 Uhr)
🕵️ SicherheitslückenUSN-8743-1: PHP vulnerabilities(10.09.2026 um 13:48 Uhr)
🕵️ SicherheitslückenUSN-8744-1: Python vulnerabilities(10.09.2026 um 15:53 Uhr)
🐧 Linux TippsUSN-8748-1: Linux kernel (NVIDIA) vulnerabilities(10.09.2026 um 17:32 Uhr)
🕵️ SicherheitslückenUSN-8745-1: KissFFT vulnerabilities(10.09.2026 um 17:36 Uhr)
🕵️ SicherheitslückenUSN-8746-1: libEBML vulnerability(10.09.2026 um 17:48 Uhr)

🔧 Programmierung 🕛 vor 2 Monaten 3 Min Lesezeit
0

How I Built a Personal AI Knowledge Base with Amazon Aurora pgvector and Next.js — AWS H0 Hackathon

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

I built ChatScroll for the AWS H0 Hackathon — an app that

lets you save AI answers as searchable "Scrolls" using

Amazon Aurora PostgreSQL with pgvector for semantic search.






The Problem



Every day people ask AI assistants valuable questions and

get great answers — then lose them forever. Chat history

is linear, unsearchable, and ephemeral. I kept re-Googling

the same questions knowing I had already found the answer

somewhere but couldn't find it again.






The Solution



ChatScroll transforms AI conversations into a personal

knowledge library. Save any AI answer as a "Scroll",

organize it automatically, and find it later with

semantic search.






The Core Technical Challenge



Making search understand MEANING not just keywords. When

you search "blood thinner medication" it should find your

warfarin scroll even though "blood thinner" doesn't appear

in the title.






How pgvector on Aurora Solves This



Amazon Aurora PostgreSQL with the pgvector extension stores

3072-dimensional vector embeddings for every saved Scroll.



When a user saves a Scroll:




  1. The answer text is sent to Google's gemini-embedding-001

  2. The model returns a 3072-dimensional vector

  3. The vector is stored in Aurora alongside the content



When a user searches:




  1. The search query is converted to a vector

  2. Aurora finds the most similar vectors using cosine distance

  3. Results are ranked by semantic similarity




CODE
-- Semantic search with threshold
WHERE 1 - (embedding <=> $queryVec) > 0.5
ORDER BY embedding <=> $queryVec
LIMIT 5









Three PostgreSQL Extensions Working Together



What makes Aurora special for this use case is three

extensions working together:



pgvector — stores 3072-dim embeddings, enables cosine

similarity search between vectors



ltree — stores folder paths as dot-separated label trees

(programming.containers), enables subtree queries without

recursive CTEs



tsvector — powers full-text search with ranking via

ts_rank, combined with pgvector for hybrid search






The Dual Database Architecture



I made a deliberate choice to use TWO AWS databases:



Amazon Aurora PostgreSQL for structured data:




  • Scrolls with embeddings

  • Folder hierarchy (ltree)

  • User accounts (Cognito sub)

  • Conversation metadata



Amazon DynamoDB for chat messages:




  • PK: conversationId

  • SK: timestamp#messageId

  • TTL: 90-day auto-expiry

  • PAY_PER_REQUEST billing



This separation keeps Aurora lean for complex queries

while DynamoDB handles the high-volume chat stream.






The Result



Searching "containerization technology" correctly surfaces

the Docker scroll. Searching "blood thinner medication"

finds warfarin — no programming results contaminating it.



Semantic search scoped to the same folder category

ensures results are always relevant.






Try It



Live app:



I created this content for the purposes of entering

the AWS H0 Hackathon.






H0Hackathon #AWS #Aurora #pgvector #Vercel #NextJS #H0Hackathon

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Debian 11 Long Term Support reaches end-of-life
1 Quelle
Updated Debian 13: 13.7 released
1 Quelle
USN-8741-1: Flatpak vulnerabilities
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten How I Built a Personal AI Knowledge Base with Amazon Aurora pgvector and Next.js — AWS H0 Hackathon

Thematisch verwandte Begriffe: Built, Personal, Knowledge, Base · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...