Kernel
[linux kernel] struct pid && the way the kernel used to cast uint32_t pid to struct task_struct
摘抄内容引用自linux kernel document description pre the initialization and the manage of the struct pid is use IDR.(implement by hash table->(why not array?- ......
Understanding the linux kernel Chapter2 Memory Addressing
Physical Memory Layout unavailable address for kernel either because they map hardware devices’ I/O shared memory or because the corresponding page fr ......
安装pytorch/安装jupyterlab并添加已创建环境的kernel
安装pytorch 先创建一个环境,去pytorch官网查找环境所用python版本对应的torch版本,并选择合适的下载命令,在已激活的环境中运行命令,即可安装成功。 安装jupyter jupyter可以按cell运行代码,并且可以边写代码边做笔记。运行conda install jupyter ......
ubuntu 18.04.6 编译内核kernel提示 Can't find default configuration "arch/x86/configs/socfpga_deconfig"!
输入make socfpga_defconfig 的时候提示: ubuntu 18.04.6 编译内核kernel提示 Can't find default configuration "arch/x86/configs/socfpga_deconfig"! 解决办法: export ARCH=ar ......
Kernel Memory 中使用 PaddleSharp OCR
Kernel Memory 中使用 PaddleSharp OCR Kernel Memory 中进行文档处理的时候可以上传图片作为文档,这时候就需要使用到 OCR 技术来识别图片中的文字。 官方默认的库中,提供了 Azure Document Intelligence 的扩展服务,可以通过 Azu ......
掌握语义内核(Semantic Kernel):如何精进你的提示词工程
在人工智能的海洋里,大型语言模型(LLM AI)是高速发展的一艘巨轮,而有效地与其沟通和指导其行为的锚,正是提示语(prompts)。提示语是我们提供给模型的输入或查询,以期获取特定的响应。当今,提示语工程(prompt engineering)已成为涌现的领域,它需要创造力和对细节的关注。接下来, ......
Kernel su
管中窥豹 重要的kprobe和队列 $ grep -rn INIT_WORK ./ ./uid_observer.c:137: INIT_WORK(&ksu_update_uid_work, do_update_uid); ./ksud.c:563: INIT_WORK(&stop_vfs_read ......
Kernel Memory 入门系列:异步管道
Kernel Memory 入门系列:异步管道 前面所介绍的处理流程都是基于同步管道的,即文档导入的时候,会等到文档处理完成之后才会返回。 但是在实际的应用中,文档很多,而且文档的处理时间也不确定,如果采用同步的方式,那么就会导致整个流程的处理时间过长,也会导致整个流程的阻塞。因此,我们需要一种异步 ......
Semantic Kernel入门学习文章合集
GitHub 卢老师的Cookbook https://github.com/kinfey/SemanticKernelCookBook?tab=readme-ov-file SK部落 https://mp.weixin.qq.com/s?__biz=MzI5MTg4NzIyNg==&mid=224 ......
Kernel Memory 入门系列:Semantic Kernel 插件
Kernel Memory 入门系列:Semantic Kernel 插件 Kernel Memory 本身提供了完整的RAG能力,这部分能力如果通过Semantic Kernel Memory的话,也是可以实现的,但是整体的管理成本会比较高。 因此通过Kernel Memory 构建知识库管理,然 ......
lk uboot传参到Kernel
记录一下内核和uboot的传参 MTK传参 1. 在 app/mt_boot/mt_boot.c使用cmdline_append(buf); snprintf(buf, 10,"vcom=%s", vcom_str); pal_log_err("%s\n", buf); cmdline_append ......
Kernel Memory 入门系列:自定义处理流程
Kernel Memory 入门系列:自定义处理流程 在整个文档预处理的流程中,涉及到很多的处理步骤,例如:文本提取,文本分片,向量化和存储。这些步骤是Kernel Memory中的默认提供的处理方法,如果有一些其他的需求,也可以进行过程的自定义。 自定义Handler 在Kernel Memory ......
Kernel Memory 入门系列:文档的管理
Kernel Memory 入门系列: 文档的管理 在Quick Start中我们了解到如何快速直接地上传文档。当时实际中,往往会面临更多的问题,例如文档如何更新,如何划定查询范围等等。这里我们将详细介绍在Kernel Memory文档的管理。 使用Document管理一组文件 当我们需要批量上传一 ......
Kernel Memory 入门系列:生成并获取文档摘要
Kernel Memory 入门系列:生成并获取文档摘要 前面在RAG和文档预处理的流程中,我们得到一个解决方案,可以让用户直接获取最终的问题答案。 但是实际的业务场景中,仍然存在一些基础的场景,不需要我们获取文档的所有详情的,而只是了解的文档的大概信息,得到文章整体的摘要或者总结,此时仍然可以使用 ......
Semantic Kernel 正式发布 v1.0.1 版本
微软在2023年12月19日在博客上(Say hello to Semantic Kernel V1.0.1)发布了Semantic kernel的.NET 正式1.0.1版本。新版本提供了新的文档,以解释 SDK 创建 AI 代理的能力,这些代理可以与用户交互、回答问题、调用现有代码、自动化流程和 ......
Kernel Memory 入门系列:Kernel Memory Service
Kernel Memory 入门系列:Kernel Memory Service 在 Kernel Memory 的 GitHub 仓库中有一个单独的项目 Service , 用于提供独立的Kernel Memory OpenAPI 服务。可以用于独立的部署后台,也可以为其他语言提供接口调用服务。 ......
Kernel Memory 入门系列:快速开始
Kernel Memory 入门:Quick Start 了解了用户问答和文档预处理的流程之后,我们就可以直接开始使用Kernel Memory了。 1. 安装 项目中只需要通过NuGet安装Microsoft.KernelMemory.Core包即可。 dotnet add package Mic ......
Kernel Memory 入门系列:文档预处理
Kernel Memory 入门系列:文档预处理 Embedding为我们提供了问题理解和文档检索的方法,但是面对大量的文档,如果在用于提问的时候再进行文档的Embedding的话,那这个过程是非常耗时的,再加之我们的文档并不会频繁变化,所以我们可以对文档进行预处理,提升检索的效率。 文档的预处理大 ......
Kernel Memory 入门系列: Embedding 简介
Kernel Memory 入门系列: Embedding 简介 在 RAG模式 其实留了一个问题。 我们对于的用户问题的理解和文档的检索并没有提供合适的方法。 当然我们可以通过相对比较传统的方法。 例如对用户的问题进行关键词提取,然后通过关键词检索文档。这样的话,就需要我们提前对文档做好相关关键词 ......
Kernel Memory 入门系列: RAG 简介
Kernel Memory 入门系列: RAG 简介 开一个新坑,Semantic Kernel系列会在 Release 1.0 之后陆续更新。 当我们有了一定的产品资料或者知识内容之后,自然想着提供一个更加方便的方式让用户能够快速地找到自己想要的信息,或者得到一个更加智能的答案。 以往的时候可能需 ......
Cyclone V SOC FPGA 如何将preloader uboot kernel rootfile rbf dtb uboot.scr 等文件打包成一个SD卡 .img文件 方便windows的windisk32 一键烧写呢?
首先 我按照 (https://rocketboards.org/foswiki/Documentation/EmbeddedLinuxBeginnerSGuide)制作了一个image, 将SD卡进行分区fat32, raw 和ext3,然后将preloader uboot kernel root ......
linux kernel modify printk buf size
linux kernel modify printk buf size configure CONFIG_LOG_BUF_SHIFT modify code: wyk@ubuntu:~/soc/linux$ git diff kernel/printk/printk.c diff --git a/k ......
ubuntu18.04.6 编译buildroot的时候提示: Incorrect selection of kernel headers: expected 4.6.x, got 4.16.x
再次进入文件系统配置界面,将内核头文件从4.16.x 改为4.6.x 就可以了。 ......
ubuntu 18.04.6 编译linux内核make ARCH=arm LOCALVERSION= zImage提示unrecognized argument in option... kernel/bounds.s failed
ubuntu 18.04.6 编译linux内核make ARCH=arm LOCALVERSION= zImage提示 unrecognized argument in option. "-mabi=aapcs-linux ... kernel/bounds.s failed 设置编译链的环境变量 ......
UBUNTU 18.04.6 的Quartus里面转换sof到rbf文件在uboot阶段加载时出错或者在kernel启动阶段卡住是什么问题?
参考Intel的 SD卡 image 设计的教程 (https://rocketboards.org/foswiki/Documentation/EmbeddedLinuxBeginnerSGuide) 确认 DE10-Nano 的 MSEL 设置为 01010,插上SD卡 给 DE10-Nano ......
Kernel Livepatching 【ChatGPT】
https://www.kernel.org/doc/html/v6.6/livepatch/index.html Livepatching 是一种在不需要重新启动系统的情况下,对运行中的内核进行补丁更新的技术。以下是对这些术语的简要解释: Livepatch: 一种技术,允许在运行中的内核中应用补 ......
Linux kernel memory barriers 【ChatGPT】
https://www.kernel.org/doc/html/v6.6/core-api/wrappers/memory-barriers.html Linux内核内存屏障 免责声明 本文档不是一个规范;它故意(为了简洁)和无意(因为是人类)不完整。本文档旨在指导如何使用Linux提供的各种内存屏 ......
Kernel Maintainer Handbook 【ChatGPT】
https://www.kernel.org/doc/html/v6.6/maintainer/index.html Kernel Maintainer Handbook 这份文档是为内核维护者编写的指南的谦逊开端。这里还有很多工作要做!请随时提出(并编写)对这份指南的补充。 功能和驱动程序维护者 ......
CentOS开机提示Centos kernel panic-not syncing:VFS:Unable to mount root fs on unknown-block,vm exsi 修复centos虚拟机内核操作
故障: CentOS开机提示Centos kernel panic-not syncing:VFS:Unable to mount root fs on unknown-block 故障背景: 在没有关闭应用和系统的前提下,直接点了虚拟机关闭电源选项,再开机就报如上错误 原因分析: 根据提示信息分析 ......
centos7 安装vmware tool 遇到遇到 kernel-headers 问题修复
安装 vmware tool 步骤 1. cp VMwareTools-10.3.25-20206839.tar.gz 到 用户目录下 2. tar zxf VMwareTools-10.3.25-20206839.tar.gz 解压 3. 进入 vmware-tools-distrib 执行 su ......