pankildesai1988/Generative-AI-Demos

CSS

0

165 commits

updated Jun 24, 2026

See the code

README

πŸš€ Generative AI Mentor Project

This repository documents my journey to mastering Generative AI with a strong focus on .NET applications, OpenAI, and Azure deployment.


πŸ“Œ Features (So Far)

βœ… .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 Project Structure (RAG Implementation)

/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

πŸ“– Phase 3 Progress

  • Phase 3.1 – Document Ingestion & Chunking βœ… Completed
  • Phase 3.2 – Embeddings & Vector Storage βœ… Completed
  • Phase 3.3 – Retrieval Service βœ… Completed
  • Phase 3.4 – Prompt Engineering & RAG Pipeline βœ… Completed
  • Phase 3.5 – RAG History Enhancements & Docs Module βœ… Completed
  • Phase 3.6 – Analytics & Insights Dashboard βœ… Completed

Phase 3.6 – Analytics Architecture


πŸ“ Roadmap

  • βœ… Phase 1: Foundation (use cases, HuggingFace models, Azure, prompt engineering)
  • βœ… Phase 2: .NET Backend + Frontend Integration (Chat API, sessions, templates, admin panel, comparisons)
  • βœ… Phase 3.1: Ingestion Layer (document upload, chunking, SQL Server)
  • βœ… Phase 3.2: Embedding & Storage Layer (OpenAI embeddings, Postgres + pgvector)
  • βœ… Phase 3.3: Retrieval Service (semantic + hybrid search, Admin debug view)
  • βœ… Phase 3.4: Augmentation + Generation Layer (RAG pipeline integration with baseline vs RAG-enhanced answers, Admin Debug UI, history logging)
  • βœ… Phase 3.5: Admin Enhancements (History Page, Docs Module)
  • βœ… Phase 3.6: Analytics & Insights (Dashboard, Filters, Drill-down)
  • ⏳ Phase 3.7: Advanced Analytics (Provider/Model analytics, exports, KPI widgets)

πŸ› οΈ Tech Stack

  • Backend: .NET 9, ASP.NET Core Web API
  • Frontend: ASP.NET Core MVC, HTML, Bootstrap, jQuery + Modular JS, AdminLTE
  • Database: SQL Server, Postgres (pgvector)
  • AI Models: OpenAI GPT-3.5, GPT-4o, Gemini, Claude (planned)
  • Cloud: Azure App Service, Azure SQL, Docker (Postgres + pgvector)

πŸ“Œ License

MIT License – feel free to use and adapt!


πŸ‘¨β€πŸ« Author – pankildesai1988
Learning β†’ Building β†’ Deploying β†’ Scaling πŸš€

pankildesai1988/Generative-AI-Demos

CSS

0

165 commits

updated Jun 24, 2026

See the code

README

πŸš€ Generative AI Mentor Project

This repository documents my journey to mastering Generative AI with a strong focus on .NET applications, OpenAI, and Azure deployment.


πŸ“Œ Features (So Far)

βœ… .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 Project Structure (RAG Implementation)

/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

πŸ“– Phase 3 Progress

  • Phase 3.1 – Document Ingestion & Chunking βœ… Completed
  • Phase 3.2 – Embeddings & Vector Storage βœ… Completed
  • Phase 3.3 – Retrieval Service βœ… Completed
  • Phase 3.4 – Prompt Engineering & RAG Pipeline βœ… Completed
  • Phase 3.5 – RAG History Enhancements & Docs Module βœ… Completed
  • Phase 3.6 – Analytics & Insights Dashboard βœ… Completed

Phase 3.6 – Analytics Architecture


πŸ“ Roadmap

  • βœ… Phase 1: Foundation (use cases, HuggingFace models, Azure, prompt engineering)
  • βœ… Phase 2: .NET Backend + Frontend Integration (Chat API, sessions, templates, admin panel, comparisons)
  • βœ… Phase 3.1: Ingestion Layer (document upload, chunking, SQL Server)
  • βœ… Phase 3.2: Embedding & Storage Layer (OpenAI embeddings, Postgres + pgvector)
  • βœ… Phase 3.3: Retrieval Service (semantic + hybrid search, Admin debug view)
  • βœ… Phase 3.4: Augmentation + Generation Layer (RAG pipeline integration with baseline vs RAG-enhanced answers, Admin Debug UI, history logging)
  • βœ… Phase 3.5: Admin Enhancements (History Page, Docs Module)
  • βœ… Phase 3.6: Analytics & Insights (Dashboard, Filters, Drill-down)
  • ⏳ Phase 3.7: Advanced Analytics (Provider/Model analytics, exports, KPI widgets)

πŸ› οΈ Tech Stack

  • Backend: .NET 9, ASP.NET Core Web API
  • Frontend: ASP.NET Core MVC, HTML, Bootstrap, jQuery + Modular JS, AdminLTE
  • Database: SQL Server, Postgres (pgvector)
  • AI Models: OpenAI GPT-3.5, GPT-4o, Gemini, Claude (planned)
  • Cloud: Azure App Service, Azure SQL, Docker (Postgres + pgvector)

πŸ“Œ License

MIT License – feel free to use and adapt!


πŸ‘¨β€πŸ« Author – pankildesai1988
Learning β†’ Building β†’ Deploying β†’ Scaling πŸš€

Languages

CSS

48.3%

C#

29.9%

JavaScript

11.6%

HTML

6.9%

TypeScript

3.1%