{"repo":"rineshpk/dotnet-rag-pgvector","free":true,"listed":false,"github":"https://github.com/rineshpk/dotnet-rag-pgvector","clone":"git clone https://github.com/rineshpk/dotnet-rag-pgvector.git","description":"This project demonstrates how to build a semantic search + RAG pipeline using .NET","language":"C#","stars":25,"topics":["ai","aspire-dotnet","cosine-similarity","dotnet","llm","ollama","openai","pgvector","postgresql","rag"],"license":"MIT","category":"ai-agents","readme_excerpt":".NET RAG with PostgreSQL pgvector + Aspire A production-style Retrieval-Augmented Generation (RAG) implementation in .NET using PostgreSQL pgvector , .NET Aspire, and pluggable LLM providers (Ollama / OpenAI). --- Overview This project demonstrates how to build a semantic search + RAG pipeline using modern .NET practices: Vector similarity search with pgvector LLM-based answer generation (Ollama / OpenAI) Clean Architecture (Domain, Application, Infrastructure) .NET Aspire orchestration (Postgres + Ollama + API) Provider-agnostic design (LLM + vector store) --- Architecture --- Solution Structure --- Features ✅ Semantic search using embeddings ✅ Retrieval-Augmented Generation (RAG) ✅ pgvector integration with PostgreSQL ✅ Clean architecture with strict separation of concerns ✅ Pluggable LLM providers (Ollama / OpenAI) ✅ Aspire-based container orchestration ✅ Scalar UI for API testing --- Tech Stack .NET 10 ASP.NET Core Minimal APIs Entity Framework Core PostgreSQL + pgvector .NET Aspire Ollama (local LLM) OpenAI (optional) --- Getting Started 1. Prerequisites .NET 10 SDK Docker Desktop (Or Podman - set Aspire container runtime to podman) .NET Aspire workload --- 2. Run the Application This starts: PostgreSQL (pgvector) Ollama API --- 3. Open API UI (Scalar) Navigate to: --- Testing the API POST /ask Example Questions How to prevent cascading failures? How to scale read-heavy systems? How do microservices communicate asynchronously? --- Configuration appsettings.json --- Provi","default_branch":null,"files":null,"tree":[],"storefront":"/r/rineshpk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rineshpk/dotnet-rag-pgvector/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}