t4 模板文件 第一步,在项目中设置 t4 模板文件。 不知道 T4 模板的,可以自行查阅资料或查看 https://learn.microsoft.com/zh-cn/visualstudio/modeling/code-generation-and-t4-text-templates?view[......] 继续阅读

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

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[......] 继续阅读

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

string.Format 的功能非常有限,因此需要使用 SmartFormat.NET 框架来完成丰富的字符串插值功能。它可以使用类似于字符串的最小化、直观的语法将各种数据源格式化为字符串。格式。所有格式化都在运行时进行。SmartFormat 使用扩展来提供命名占位符、本地化、多元化、性别结合以[......] 继续阅读

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

string.Format has very limited functionality; therefore, the SmartFormat.NET framework is needed to achieve rich string interpolation features. It can[......] 继续阅读

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

整体逻辑 ASP.NET Core gRPC 的使用很简单,服务注册和中间件只有两行代码。 var builder = WebApplication.CreateBuilder(args); // Add services to the container.[......]继续阅读

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

Overall Logic Using ASP.NET Core gRPC is very straightforward; service registration and middleware require only two lines of code. var builder[......]继续阅读

2024年4月3日 0条评论 134点热度 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[......] 继续阅读

2024年3月25日 0条评论 6861点热度 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[......] 继续阅读

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

为什么要写这个教程 在毕业之后,读者写过了大量的文章和开源项目,正是坚持一边学习一边输出,所以笔者最终从一个生菜鸡进化为一个熟菜鸡。 在程序员的成长中,我们会在思路,如何学习、如何进步,比如要成长为一个架构师,需要具备什么样的能力。比如说技术能力,技术能力是最核心的基础,那么我们技术上要达到哪种程度[......] 继续阅读

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

Why Write This Tutorial After graduation, readers have written a large number of articles and open-source projects. It is through the persistence of l[......] 继续阅读

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

Initialization When KernelMemory starts, it checks the configuration, even if the current code does not utilize the relevant features. var has[......]继续阅读

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

初始化 KernelMemory 启动时,会检查配置,即使当前代码没有使用到相关功能。 var hasQueueFactory = (this._memoryServiceCollection.HasService<QueueClientFactory>());[......]继续阅读

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

Long Literary Works and AI Model Integration: Semantic Kernel and Kernel Memory, a Super Simple Tutorial by whuanle Table of Contents: Environment Se[......] 继续阅读

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

万字长文学会对接 AI 模型:Semantic Kernel 和 Kernel Memory,工良出品,超简单的教程 目录: 配置环境 部署 one-api 配置项目环境 模型划分和应用场景 聊天 提示词 引导 AI 回复 指定 AI 回复特定格式 模板化提示 聊天记录 函数和插件 直接调用插件[......] 继续阅读

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

在对话中添加参数 使用 CreateFunctionFromPrompt() 为通过提示模板指定的提示创建 KernelFunction 实例。 KernelFunction 表示可以作为语义内核工作负载的一部分调用的函数。Semantic Kernel 中对 LLM 的调用就叫 KernelFun[......] 继续阅读

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

Adding Parameters in Conversation Use CreateFunctionFromPrompt() to create a KernelFunction instance specified by the prompt template. A KernelFunctio[......] 继续阅读

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

EF Core 在执行插入操作时,不会直接将数据插入数据库,而是先将数据缓存在内存中。只有在以下情况下,EF Core才会将数据插入数据库: 显式调用 SaveChanges() 方法 上下文对象被销毁 达到上下文配置的批量插入数量 EF Core 将数据缓存在内存中的好处包括: 提高性能,批量[......] 继续阅读

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

EF Core does not insert data directly into the database during insertion operations; instead, it first caches the data in memory. Data will only be in[......] 继续阅读

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

编写界面控件,元素由 Grid 和一些控件组成,其中使用了 Expander 以便可以扩展面板内容。 <Grid> <Grid MinWidth="100" Height="50" VerticalAlignment="Top"[......]继续阅读

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

The interface control is composed of a Grid and several controls, using an Expander to allow panel content to be expanded. <Grid> &[......]继续阅读

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