This repository documents my journey to mastering Generative AI with a strong focus on .NET applications, OpenAI, and Azure deployment.
β
.NET Core Web API backend
β
Frontend (Bootstrap + Modular JS)
β
Chat with OpenAI (GPT-3.5, GPT-4o)
β
Streaming responses with typing animation
β
Persistent chat history in SQL Server
β
Multi-session management (create, load, clone, delete)
β
Prompt templates with parameters (tone, length, style)
β
Deployed to Azure App Service + Azure SQL
β
Modularized frontend (chat.js, sessions.js, templates.js, utils.js, main.js)
β
AdminLTE Panel for managing prompt templates
β
Versioning & rollback for templates
β
Cross-model comparison (OpenAI, Gemini, Claude-ready)
β
Comparison results persisted in SQL Server
β
AdminLTE pages for running comparisons + viewing history
β
Side-by-side grid view for provider/model outputs
β
Deduplication + error persistence (ErrorCode, ErrorMessage)
β
JWT-secured Admin area for testing
β
Document ingestion & chunking pipeline (SQL Server)
β
Embedding generation + vector storage with pgvector (Postgres)
β
Admin test UI for embeddings + similarity search
β
Retrieval Service with Semantic, Keyword & Hybrid Search + Admin Debug UI (filter, counters, SLA monitoring, fallback)
β
RAG pipeline with baseline vs RAG-enhanced answers
β
DTOs for structured outputs (RagResultDto, RagChunkDto)
β
Admin Debug UI (RAG Comparison Page with side-by-side answers, context, latency, SLA badge, spinner)
β
History logging into SQL Server (RagComparisonHistories)
β
RAG History Page with filters, compare mode, CSV/Excel export
β
Docs Module for document lifecycle (Upload/Edit/Delete/Rebuild embeddings)
β
Analytics Dashboard (SLA Compliance, Latencies, PromptStyle Distribution, Trends) with filters + drill-down to history
/AirNir
βββ Library
β βββ ArNir.Core β Entities, DTOs, Config, Validations
β βββ ArNir.Data β DbContexts (SQL Server + Postgres), EF Migrations
β βββ ArNir.Services β Business logic Service, Interface, Helper, Mapping (EmbeddingService, RetrievalService, RagService)
β
βββ Presentation
β βββ ArNir.Admin β AdminLTE UI Controllers, ViewModel, Views (embedding + retrieval test pages, RAG comparison, history, analytics)
β βββ ArNir.Frontend β End-user search/chat interface (future, Phase 3.7+)
β
βββ sql
β βββ create_tables.sql
β βββ update_documents_chunks.sql
β βββ update_embeddings.sql
β βββ update_rag_history.sql
β
βββ docs
βββ Phase3_RAG_Architecture.png
βββ Phase3.3_Architecture.png
βββ Phase3.4_Architecture.png
βββ Phase3.5_Architecture.png
βββ Phase3.6_Architecture.png
βββ GenerativeAI_KnowledgeBase.md

MIT License β feel free to use and adapt!
π¨βπ« Author β pankildesai1988
Learning β Building β Deploying β Scaling π
CSS
48.3%
C#
29.9%
JavaScript
11.6%
HTML
6.9%
TypeScript
3.1%
This repository documents my journey to mastering Generative AI with a strong focus on .NET applications, OpenAI, and Azure deployment.
β
.NET Core Web API backend
β
Frontend (Bootstrap + Modular JS)
β
Chat with OpenAI (GPT-3.5, GPT-4o)
β
Streaming responses with typing animation
β
Persistent chat history in SQL Server
β
Multi-session management (create, load, clone, delete)
β
Prompt templates with parameters (tone, length, style)
β
Deployed to Azure App Service + Azure SQL
β
Modularized frontend (chat.js, sessions.js, templates.js, utils.js, main.js)
β
AdminLTE Panel for managing prompt templates
β
Versioning & rollback for templates
β
Cross-model comparison (OpenAI, Gemini, Claude-ready)
β
Comparison results persisted in SQL Server
β
AdminLTE pages for running comparisons + viewing history
β
Side-by-side grid view for provider/model outputs
β
Deduplication + error persistence (ErrorCode, ErrorMessage)
β
JWT-secured Admin area for testing
β
Document ingestion & chunking pipeline (SQL Server)
β
Embedding generation + vector storage with pgvector (Postgres)
β
Admin test UI for embeddings + similarity search
β
Retrieval Service with Semantic, Keyword & Hybrid Search + Admin Debug UI (filter, counters, SLA monitoring, fallback)
β
RAG pipeline with baseline vs RAG-enhanced answers
β
DTOs for structured outputs (RagResultDto, RagChunkDto)
β
Admin Debug UI (RAG Comparison Page with side-by-side answers, context, latency, SLA badge, spinner)
β
History logging into SQL Server (RagComparisonHistories)
β
RAG History Page with filters, compare mode, CSV/Excel export
β
Docs Module for document lifecycle (Upload/Edit/Delete/Rebuild embeddings)
β
Analytics Dashboard (SLA Compliance, Latencies, PromptStyle Distribution, Trends) with filters + drill-down to history
/AirNir
βββ Library
β βββ ArNir.Core β Entities, DTOs, Config, Validations
β βββ ArNir.Data β DbContexts (SQL Server + Postgres), EF Migrations
β βββ ArNir.Services β Business logic Service, Interface, Helper, Mapping (EmbeddingService, RetrievalService, RagService)
β
βββ Presentation
β βββ ArNir.Admin β AdminLTE UI Controllers, ViewModel, Views (embedding + retrieval test pages, RAG comparison, history, analytics)
β βββ ArNir.Frontend β End-user search/chat interface (future, Phase 3.7+)
β
βββ sql
β βββ create_tables.sql
β βββ update_documents_chunks.sql
β βββ update_embeddings.sql
β βββ update_rag_history.sql
β
βββ docs
βββ Phase3_RAG_Architecture.png
βββ Phase3.3_Architecture.png
βββ Phase3.4_Architecture.png
βββ Phase3.5_Architecture.png
βββ Phase3.6_Architecture.png
βββ GenerativeAI_KnowledgeBase.md

MIT License β feel free to use and adapt!
π¨βπ« Author β pankildesai1988
Learning β Building β Deploying β Scaling π
CSS
48.3%
C#
29.9%
JavaScript
11.6%
HTML
6.9%
TypeScript
3.1%