Analysis of tools for developing electronic multimedia publications

Author(s) Collection number Pages Download abstract Download full text
Vasiuta S. P., Дулька О. Б. № 1 (70) 142-147 Image Image

The article is dedicated to the practical aspects of extending the Retrieval-Augmented Generation (RAG) architecture by integrating the Semantic Kernel framework into the .NET environment. Against the backdrop of the growing popularity of large language models (LLMs) like GPT-4 and Gemini, the authors analyze how Semantic Kernel (SK) helps minimize the «friction» between application business logic and external AI services. The SDK manages request memory, connects to various LLMs, works with vector databases, and calls internal plugin functions. It demonstrates how an ASP.NET Core web service can be configured in just a few dozen lines of code to combine a document search module, Semantic Kernel Memory, and the Gemini model to generate responses with source citations.

The core of the discussion compares two approaches—direct HTTP API calls versus integration via SK—from the perspectives of security, maintainability, cost, and development speed. A key focus is on how SK simplifies the implementation of the RAG pattern: the kernel stores embeddings in ChromaDB or Azure Cognitive Search, and the LLM automatically pulls relevant context into the prompt, significantly reducing the risk of hallucinations. The article highlights the architectural principle of loose coupling, achieved through interfaces and DI containers, which ensures that an LLM or vector store can be easily replaced without breaking the entire system. Furthermore, SK plugins enable the LLM to invoke domain-specific C# code, allowing it to act as an «agent-orchestrator» that combines multiple data sources into a single response.The scientific novelty lies in the synthesis of the RAG architecture and the Semantic Kernel’s agent-based approach within the .NET ecosystem, enabling rapid prototyping and scaling of AI functions in enterprise environments. Practical recommendations cover secure key storage, using OpenTelemetry for cost tracking, and A/B testing different models (e.g., GPT-4 vs. Gemini) without changing the application code. The authors conclude that this integration lowers the entry barrier for .NET teams, increases the transparency of AI modules, and makes RAG services suitable for critical business processes, from customer support chatbots to internal analytical assistants.

Keywords: Semantic Kernel, Retrieval-Augmented Generation (RAG), large lan­guage models (LLM), GPT-4, Gemini, .NET 8, vector databases, plugins, loose coupling, agent orchestration, OpenTelemetry.

doi: 10.32403/1998-6912-2025-1-70-132-141


  • 1. Eloundou, T., et al. GPTs are GPTs: An Early Look at the Labor Market Impact Potential of Large Language Models. arXiv:2303.10130, 2023.
  • 2. Lewis, P., et al. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. Advances in Neural Information Processing Systems, 33, pp. 9459-9474, 2020.
  • 3. Microsoft. Semantic Kernel Documentation. Microsoft, 2024. [Електронний ресурс]. Доступно: https://learn.microsoft.com/en-us/semantic-kernel/overview/.
  • 4. Martin, R. C. Agile Software Development, Principles, Patterns, and Practices. Prentice Hall, 2002.
  • 5. Google. Gemini: A Family of Highly Capable Multimodal Models. arXiv:2312.11805, 2023.
  • 6. OpenTelemetry. OpenTelemetry Documentation. The Linux Foundation. [Електронний ресурс]. Доступно: https://opentelemetry.io/docs/.
  • 7. Gamma, E., Helm, R., Johnson, R., & Vlissides, J. Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley, 1994.
  • 8. Gao, Y., et al. RAG 2.0: Advanced Techniques in Retrieval-Augmented Generation. Towards Data Science, 2024. [Електронний ресурс]. Доступно: https://towardsdatascience.com/rag-2-0-advanced-techniques-in-retrieval-augmented-generation-e9649539429c.