Menu

1 / 2

RAG with EF Core and pgvector

DEV Community·Lukas Walter·6 months ago
#yK5mq7vG
#csharp#dotnet#postgressql#vector#embedding
Reading 0:00
15s threshold

You can read the original post over on lukaswalter.dev .

Developers often start RAG apps using tutorials that recommend dedicated vector databases.

Step 1: Sign up for a vector database like Pinecone or Qdrant.

This adds a costly SaaS service to your architecture or requires you to manage it yourself.

And if you are building line-of-business applications in .NET, dedicated vector databases often introduce another problem: Data Synchronization.

If core entities like Products, Customers, or SupportTickets exist in a relational database and vector embeddings reside in a specialized vector DB, you face a distributed systems challenge. What if a product is deleted or its description updated? Synchronizing datastores becomes daunting.

A pragmatic solution? Store your vectors alongside your relational data.

Using PostgreSQL, the pgvector extension transforms your relational database into a powerful vector search engine.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.