关于从零设计 .NET 开发框架 作者:whuanle 教程说明: 仓库地址:https://github.com/whuanle/maomi 文档地址:https://maomi.whuanle.cn 作者博客: https://www.whuanle.cn https://www.cnblogs.com/whuanle 故障排查和日志 .NET 程序进行故障排查的方式有很多,笔者个人总结常用的有以下方式: IDE 调试、Visual Studio 中的诊断工具、性能探测器 一般来说,使用 IDE 进行断点调试和…

2024年6月5日 0条评论 850点热度 0人点赞 痴者工良 阅读全文

关于从零设计 .NET 开发框架 作者:痴者工良 教程说明: 仓库地址:https://github.com/whuanle/maomi 文档地址:https://maomi.whuanle.cn 作者博客: https://www.whuanle.cn https://www.cnblogs.com/whuanle 故障排查和日志 .NET 程序进行故障排查的方式有很多,笔者个人总结常用的有以下方式: IDE 调试、Visual Studio 中的诊断工具、性能探测器 一般来说,使用 IDE 进行断点调试和诊断只…

2024年6月5日 0条评论 3418点热度 0人点赞 痴者工良 阅读全文

关于从零设计 .NET 开发框架 作者:whuanle 教程说明: 仓库地址:https://github.com/whuanle/maomi 文档地址:https://maomi.whuanle.cn 作者博客: https://www.whuanle.cn https://www.cnblogs.com/whuanle Modularization and Automatic Service Registration The most famous web framework developed based o…

2024年6月3日 0条评论 177点热度 1人点赞 痴者工良 阅读全文

关于从零设计 .NET 开发框架 作者:痴者工良 教程说明: 仓库地址:https://github.com/whuanle/maomi 文档地址:https://maomi.whuanle.cn 作者博客: https://www.whuanle.cn https://www.cnblogs.com/whuanle 模块化和自动服务注册 基于 ASP.NET Core 开发的 Web 框架中,最著名的是 ABP,ABP 主要特点之一开发不同项目(程序集)时,在每个项目中创建一个模块类,程序加载每个程序集中,扫描出…

2024年6月3日 0条评论 3371点热度 1人点赞 痴者工良 阅读全文

T4 Template Files The first step is to set up T4 template files in the project. If you are unfamiliar with T4 templates, you can look up information or visit https://learn.microsoft.com/zh-cn/visualstudio/modeling/code-generation-and-t4-text-templates?view=vs-…

2024年5月7日 0条评论 128点热度 2人点赞 痴者工良 阅读全文

t4 模板文件 第一步,在项目中设置 t4 模板文件。 不知道 T4 模板的,可以自行查阅资料或查看 https://learn.microsoft.com/zh-cn/visualstudio/modeling/code-generation-and-t4-text-templates?view=vs-2022 可以使用工具生成两个模板文件。 安装模板工具: dotnet new install Microsoft.EntityFrameworkCore.Templates 然后到项目下面执行命令创建模板文件: …

2024年5月7日 0条评论 3896点热度 2人点赞 痴者工良 阅读全文

string.Format has very limited functionality; therefore, the SmartFormat.NET framework is needed to achieve rich string interpolation features. It can format various data sources into strings using a minimal and intuitive syntax similar to that of strings. All…

2024年4月10日 0条评论 106点热度 0人点赞 痴者工良 阅读全文

string.Format 的功能非常有限,因此需要使用 SmartFormat.NET 框架来完成丰富的字符串插值功能。它可以使用类似于字符串的最小化、直观的语法将各种数据源格式化为字符串。格式。所有格式化都在运行时进行。SmartFormat 使用扩展来提供命名占位符、本地化、多元化、性别结合以及列表和时间格式。可以嵌套格式化扩展插件。 框架地址: https://github.com/axuno/SmartFormat https://github.com/axuno/SmartFormat/wiki 基础使…

2024年4月10日 0条评论 3832点热度 0人点赞 痴者工良 阅读全文

Overall Logic Using ASP.NET Core gRPC is very straightforward; service registration and middleware require only two lines of code. var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddGrpc(); var app = builder…

2024年4月3日 0条评论 114点热度 2人点赞 痴者工良 阅读全文

整体逻辑 ASP.NET Core gRPC 的使用很简单,服务注册和中间件只有两行代码。 var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddGrpc(); var app = builder.Build(); // Configure the HTTP request pipeline. app.MapGrpcService<Gr[......]继续阅…

2024年4月3日 0条评论 3606点热度 2人点赞 痴者工良 阅读全文

AI is becoming increasingly popular, so I am writing a simple introductory tutorial for readers in the hope that they will enjoy it. Many people want to learn AI but don't know how to get started. I was the same way at the beginning; first, I learned Python, t…

2024年3月25日 0条评论 118点热度 1人点赞 痴者工良 阅读全文

AI is becoming increasingly popular, so I am writing a simple introductory tutorial for readers in the hope that they will enjoy it. Many people want to learn AI but don't know how to get started. I was the same way at the beginning; first, I learned Python, t…

2024年3月25日 0条评论 6796点热度 1人点赞 痴者工良 阅读全文

Why Write This Tutorial After graduation, readers have written a large number of articles and open-source projects. It is through the persistence of learning while outputting that the author has ultimately evolved from a newbie to an experienced developer. In …

2024年3月21日 2条评论 110点热度 8人点赞 痴者工良 阅读全文

为什么要写这个教程 在毕业之后,读者写过了大量的文章和开源项目,正是坚持一边学习一边输出,所以笔者最终从一个生菜鸡进化为一个熟菜鸡。 在程序员的成长中,我们会在思路,如何学习、如何进步,比如要成长为一个架构师,需要具备什么样的能力。比如说技术能力,技术能力是最核心的基础,那么我们技术上要达到哪种程度?可以手撸框架?脚踢汇编、拳打微服务架构? 常常会有技术社区朋友和读者进行交流,很多读者不知道怎么学习。笔者也是,我也不知道怎么学,各类东西都在学、都在搞,还没有确定要专门做什么,比如最近在学 AI。年轻人,总是很迷茫,…

2024年3月21日 2条评论 6305点热度 8人点赞 痴者工良 阅读全文

Initialization When KernelMemory starts, it checks the configuration, even if the current code does not utilize the relevant features. var hasQueueFactory = (this._memoryServiceCollection.HasService<QueueClientFactory>()); var hasContentStorage = (this._…

2024年3月13日 0条评论 156点热度 3人点赞 痴者工良 阅读全文

初始化 KernelMemory 启动时,会检查配置,即使当前代码没有使用到相关功能。 var hasQueueFactory = (this._memoryServiceCollection.HasService<QueueClientFactory>()); var hasContentStorage = (this._memoryServiceCollection.HasService<IContentStorage>()); var hasMimeDetector = (this._…

2024年3月13日 0条评论 4596点热度 3人点赞 痴者工良 阅读全文

Long Literary Works and AI Model Integration: Semantic Kernel and Kernel Memory, a Super Simple Tutorial by whuanle Table of Contents: Environment Setup Deploying one-api Configuring Project Environment Model Classification and Application Scenarios Chatting P…

2024年2月29日 0条评论 106点热度 1人点赞 痴者工良 阅读全文

万字长文学会对接 AI 模型:Semantic Kernel 和 Kernel Memory,工良出品,超简单的教程 目录: 配置环境 部署 one-api 配置项目环境 模型划分和应用场景 聊天 提示词 引导 AI 回复 指定 AI 回复特定格式 模板化提示 聊天记录 函数和插件 直接调用插件函数 提示模板文件 根据 AI 自动调用插件函数 聊天中明确调用函数 实现总结 配置提示词 提示模板语法 变量 函数调用 文本生成 Semantic Kernel 插件 文档插件 planners Kernel Memory…

2024年2月29日 0条评论 4678点热度 1人点赞 痴者工良 阅读全文

Adding Parameters in Conversation Use CreateFunctionFromPrompt() to create a KernelFunction instance specified by the prompt template. A KernelFunction represents a function that can be called as part of a semantic kernel workload. The call to the LLM in the S…

2024年2月24日 0条评论 110点热度 1人点赞 痴者工良 阅读全文

在对话中添加参数 使用 CreateFunctionFromPrompt() 为通过提示模板指定的提示创建 KernelFunction 实例。 KernelFunction 表示可以作为语义内核工作负载的一部分调用的函数。Semantic Kernel 中对 LLM 的调用就叫 KernelFunction。KernelFunction 分为 Semantic Function 、Native Function(本地函数)两种。 private readonly IKernelBuilder _kernelBui…

2024年2月24日 0条评论 3859点热度 1人点赞 痴者工良 阅读全文
1234554