Urgent.News

What's breaking now, across thousands of outlets.

Tech

pgvector: Embedding Column on the Table or a Separate Embeddings Table?

Disclosure: I build Schemity , a desktop ERD tool - this post is from our blog and uses it for the examples. TL;DR: Put the embedding where the row it describes is written least. A document that is chunked needs a chunks table anyway; an embedding that will be regenerated by a second model belongs in its own table keyed by chunk and model, with an untyped vector column. A vector column on a hot…

The debate over whether to store embeddings in a separate table or as a column on the parent row in a database involves trade-offs in performance and flexibility. When an embedding is regenerated by a newer model, it is best to store it in its own table keyed by chunk and model. This allows for efficient updates without impacting other rows in the parent table.

For documents that are chunked, it is recommended to create a chunks table that holds the embedding alongside the chunk's position and text. This way, the embedding only changes when the text changes, which is when the embedding needs to change anyway.

If a single vector is associated with one entity and nothing else on that row is updated, then a vector column on the parent row can be used. This reduces the number of indexes involved and avoids unnecessary overhead from maintaining a separate table.

In general, it is advisable to store embeddings in a separate table when chunking or when re-embedding is expected. However, if there is exactly one vector per entity and no other updates occur on that row, storing the embedding as a column on the parent row is the optimal choice.

Three main layouts cover the various cases:

1. A vector column on the parent row along with a chunks table for chunked documents.

2. A separate table specifically for chunk_embeddings, with a vector column keyed by chunk_id and model.

3. Individual tables for each model, with untyped vector columns and partial indexes for mixed dimensions.

The choice between these layouts depends on the specific requirements of the RAG pipeline and the frequency of model changes.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

We Checked 6 "MCP" Keyword SERPs. Not One Independent Product Page.

Before spending the week on keyword-page mapping, we pulled the SERPs for six "mcp" searches (US, live rank data): x mcp, twitter mcp, mcp for marketing, reddit mcp, keyword research mcp, mcp server…

  • No independent product pages rank on first page for six MCP keyword SERPs
  • Directories like mcpmarket dominate search results
  • Long-tail keywords present viable opportunity for ranking

Ubiquiti UniFi USW-Pro-XG-10-PoE: Is This the 10GbE Switch Your Homelab Needs?

If your homelab has outgrown gigabit networking, the Ubiquiti UniFi USW-Pro-XG-10-PoE is one of the more interesting options on the market right now.

  • The UniFi USW-Pro-XG-10-PoE is a 1U, 12-port Layer 3 switch.
  • It features ten 10GbE RJ45 ports with PoE+++ and two 10G SFP+ slots.
  • Priced at $699, it integrates well with the UniFi ecosystem.

Turning my Markdown notes into a Word document

The last column in my table could use a little more room. That was my first thought looking at the exported document. The table had three columns: Deliverable, Owner, and Review requirement.

  • Markdown notes converted to Word document
  • Table width adjusted for better readability
  • Formatting preserved with minor tweaks

When you click on a YouTube notification, it takes you to Shorts: How to change notification settings on iPhone and hide Shorts only (2026)

Using minulo, you won't be redirected to Shorts feed even if you click on a YouTube notification. It hides the Shorts section and Shorts tab, and opens Shorts links in a regular player instead of a…

  • YouTube notifications open shows feeds instead of shows
  • Show settings and tabs hidden with minulo.app
  • Minulo allows subscribing to channels without notifications

More from Friday 30 October →