Posts

Vector Database

Image
  Vector Database  Let's understand these concepts using a real application, architecture diagrams, SQL examples, C#, Azure AI Search, and Retrieval-Augmented Generation (RAG). The most important thing is that Vector Database, Embedding Model, LLM, and Semantic Kernel are four different things. 1. First, understand the four components Component What it does Example Embedding model Converts text into numerical representations (vectors) Azure OpenAI embedding model Vector database Stores and searches vectors based on similarity Azure AI Search, Pinecone, Qdrant LLM Understands prompts and generates answers GPT models Semantic Kernel Connects AI models, application functions, and other services Microsoft Semantic Kernel for .NET Think of an insurance application where a user asks: "My car windshield was damaged by hail. Will my insurance cover it?" A normal database searches for matching keywords or applies explicit query rules. A vector search system can retrieve informatio...

The Modern AI Ecosystem: From LLMs to Agents, RAG, MCP, Memory, and Vector Databases

The Modern AI Ecosystem: From LLMs to Agents, RAG, MCP, Memory, and Vector Databases Artificial Intelligence has moved far beyond simple chatbots. Today, we are seeing the emergence of a complete AI ecosystem —a collection of models, frameworks, data platforms, security layers, observability tools, memory systems, and autonomous agents working together. When I look at modern AI architecture, I no longer think of an LLM as the entire application. The LLM is only one layer. A real enterprise AI solution may look more like this: User → AI Agent → LLM → Tools/APIs → RAG → Vector Database → Memory → Security → Observability Understanding these layers is becoming increasingly important for developers, architects, engineering leaders, and anyone building production-ready AI applications. 1. LLM — The Intelligence Engine At the center of the modern AI ecosystem are Large Language Models , or LLMs. Platforms such as OpenAI, Anthropic Claude, Google Gemini, Meta Llama, Mistral, Cohere, and Ollam...

MVC in C# End to End Glance

  1. First: memorize the complete MVC request flow Be able to draw and explain this without hesitation: Browser / Client ↓ DNS / Load Balancer / Reverse Proxy ↓ Kestrel ↓ ASP.NET Core Middleware Pipeline ↓ Exception Handling ↓ HTTPS / Static Files ↓ Routing ↓ CORS ↓ Authentication ↓ Authorization ↓ Endpoint Selection ↓ MVC Filter Pipeline ↓ Authorization Filter ↓ Resource Filter ↓ Model Binding ↓ Model Validation ↓ Action Filter ↓ Controller ↓ Action Method ↓ Service / Business Layer ↓ Repository / EF Core ↓ Database / External Services ↓ ActionResult ↓ Result Filter ↓ Razor View Engine / JSON / File / Redirect ↓ Response Middleware ↓ Client Middleware ordering matters for security and functionality. Microsoft specifically documents typical ordering such as routing before authentication/authorization and notes that middleware...