Answer with what you have actually built; if experience is limited, show solid understanding of the concepts and a small project. AI agents An AI agent uses a large language model to decide on actions in a loop: it reasons about a goal, calls tools (APIs, databases, search, code execution), observes results and continues until the task is done. - Building blocks: a model, tool definitions with clear schemas, memory or state, guardrails and human approval for sensitive actions, and limits on steps and cost. - .NET options: Semantic Kernel and the newer Microsoft Agent Framework, Microsoft.Extensions.AI abstractions, and the Model Context Protocol (MCP) for connecting agents to tools. - Example: a support agent that looks up order status through an internal API, drafts a reply and asks a human to approve refunds. RAG (Retrieval-Augmented Generation) RAG grounds model answers in your own data instead of relying on the model's training. 1. Ingestion: load documents (PDFs, wiki pages, tickets), split them into chunks, create embeddings with an embedding model, and store them in a vector store (Azure AI Search, pgvector in PostgreSQL, Cosmos DB vector search, Qdrant). 2. Retrieval: embed the user's question, perform vector or hybrid (vector plus keyword) search, optionally re-rank results. 3. Generation: send the question plus retrieved chunks to the model with instructions to answer only from the provided context and cite sources. 4. Evaluation: measure groundedness, relevance and answer quality with test question sets; monitor in production. Key concerns: chunking strategy, keeping the index fresh, document-level security filtering (users must only retrieve documents they may see), prompt-injection defences, and cost and latency. Model deployment - Managed APIs: Azure OpenAI or Microsoft Foundry deployments, OpenAI, Anthropic or other providers' APIs — the usual choice for applications, with quotas, content filters and private networking. - Self-hosted open models: containers on Kubernetes with GPU nodes using serving frameworks such as vLLM or Ollama for development; considerations include GPU cost, scaling and model updates. - MLOps practices: versioned models and prompts, evaluation before release, A/B testing, monitoring of quality, latency and token usage, and gateways (for example Azure API Management) for rate limiting and fallbacks. Sample answer: "I built a RAG assistant over our internal documentation using Azure AI Search with hybrid search and an Azure OpenAI model, exposed through an ASP.NET Core API. We filtered results by the user's permissions and evaluated answers against a set of 200 test questions."
Ravindra Wadile · · 0 likes