Building RAG on PostgreSQL with Pgvector and Ruby on rails
ruby
dev.to
🧠 Your Database Is Already a Vector Database Most RAG tutorials start the same way: "First, spin up a vector database." But Stop. If you're on Rails, you already have PostgreSQL. With the pgvector extension it can store and search embeddings and for most applications, that's the whole answer. 🐘 Setup is one migration `enable_extension "vector" add_column :document_chunks, :embedding, :vector, limit: 1536` 💎 And one line in your model Gemfile gem "neighbor" class DocumentChu