How ghulam8586/genai-for-dotnet works
This repository is a .NET GenAI course collection rather than one integrated application. Its examples progress from chat and text analysis through tool calling, embeddings, vector search, document-grounded RAG, image analysis, and an Aspire-based semantic-search e-shop. The graph preserves these distinct learning/product branches. Some connections are documented capabilities rather than inspected calls; those are marked unverified, and the RAG and e-shop internals are only partially sampled.
Main entry points: ProductAIService.cs AI product search · WebApp/Program.cs Storefront · AppHost/Program.cs Aspire orchestration · SemanticSearch.cs Semantic retrieval
Components 26
GenAI examples
- Chat and text tasks
genai-dotnet/TextCompletion/Program.cs - Local text tasks
genai-dotnet/TextCompletion_Ollama/Program.cs - Function calling
genai-dotnet/FunctionCall/Program.cs - Embeddings
genai-dotnet/Embeddings/Program.cs - In-memory vector search
genai-dotnet/VectorSearch/Program.cs - Local vector search
genai-dotnet/VectorSearch_Ollama/Program.cs - Image analysis
genai-dotnet/ImageAnalysis/Program.cs - Local image analysis
genai-dotnet/ImageAnalysis_Ollama/Program.cs - Traffic extraction
genai-dotnet/TraficCamAnalysis/Program.cs
RAG applications
- RAG chat interfaces
genai-dotnet/ChatApp_RAG/wwwroot/app.js - Document ingestion
genai-dotnet/ChatApp_RAG/Services/Ingestion/DataIngestor.cs - Semantic retrieval
genai-dotnet/ChatApp_RAG/Services/SemanticSearch.cs - Ollama RAG app
genai-dotnet/ChatApp_RAG_Ollama - Qdrant RAG app
genai-dotnet/ChatApp_RAG_Qdrant/ChatApp_RAG_Qdrant.Web
Semantic e-shop
- Storefront
final-project/end/eshop-microservices/WebApp/Program.cs - Aspire orchestration
final-project/end/eshop-microservices/AppHost/Program.cs
Shop services
- Shopping basket
final-project/end/eshop-microservices/Basket/Services/BasketService.cs - Order management
final-project/end/eshop-microservices/Ordering/Services/OrderService.cs - Product catalog API
final-project/end/eshop-microservices/Catalog/Services/ProductService.cs - AI product search
final-project/end/eshop-microservices/Catalog/Services/ProductAIService.cs - Product vector records
final-project/end/eshop-microservices/Catalog/Models/ProductVector.cs - Catalog database
final-project/end/eshop-microservices/Catalog/Data/CatalogDbContext.cs
Other components
- Developer or user
- Shop customer
- Qdrant vector store
- AI model provider
Connections 33
- Developer or user → Chat and text tasks: prompts
README.md - Developer or user → Local text tasks: prompts
README.md - Developer or user → Function calling: asks
genai-dotnet/FunctionCall/Program.cs - Function calling → AI model provider: requests completion
- Developer or user → Embeddings: provides text
genai-dotnet/Embeddings/Program.cs - Embeddings → AI model provider: generates vectors
- Developer or user → In-memory vector search: searches
genai-dotnet/VectorSearch/Program.cs - In-memory vector search → AI model provider: embeds query and records
- Developer or user → Local vector search: searches
- Developer or user → Image analysis: provides image
README.md - Developer or user → Local image analysis: provides image
README.md - Developer or user → Traffic extraction: submits camera images
genai-dotnet/TraficCamAnalysis/Program.cs - Traffic extraction → AI model provider: extracts fields
- Developer or user → RAG chat interfaces: asks questions
README.md - Document ingestion → Semantic retrieval: supplies documents
- RAG chat interfaces → Semantic retrieval: retrieves context
- Semantic retrieval → AI model provider: grounds answers
- Developer or user → Ollama RAG app: asks questions
README.md - Developer or user → Qdrant RAG app: asks questions
README.md - Shop customer → Storefront: browses and checks out
- Storefront → Shopping basket: calls basket API
- Storefront → Product catalog API: calls catalog API
- Storefront → Order management: calls ordering API
- Shopping basket → Order management: submits checkout
- Product catalog API → AI product search: routes semantic search
- AI product search → Catalog database: reads products
final-project/end/eshop-microservices/Catalog/Services/ProductAIService.cs - AI product search → AI model provider: generates embeddings and replies
final-project/end/eshop-microservices/Catalog/Services/ProductAIService.cs - AI product search → Product vector records: builds vector records
final-project/end/eshop-microservices/Catalog/Services/ProductAIService.cs - AI product search → Qdrant vector store: upserts and searches
final-project/end/eshop-microservices/Catalog/Services/ProductAIService.cs - Aspire orchestration → Storefront: runs services
- Aspire orchestration → Product catalog API: runs services
- Aspire orchestration → Shopping basket: runs services
- Aspire orchestration → Order management: runs services