<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ReAct on 隔叶黄莺 Yanbin's Blog - 软件编程实践</title><link>https://yanbin.blog/tags/react/</link><description>Recent content in ReAct on 隔叶黄莺 Yanbin's Blog - 软件编程实践</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><managingEditor>yabqiu@gmail.com (Yanbin Qiu)</managingEditor><webMaster>yabqiu@gmail.com (Yanbin Qiu)</webMaster><copyright>Yanbin 隔叶黄莺</copyright><lastBuildDate>Mon, 18 May 2026 23:59:49 -0500</lastBuildDate><atom:link href="https://yanbin.blog/tags/react/index.xml" rel="self" type="application/rss+xml"/><item><title>《Hands-On Large Language Models》阅读笔记(六)</title><link>https://yanbin.blog/hands-on-large-language-models-reading-notes-6/</link><pubDate>Mon, 18 May 2026 23:59:49 -0500</pubDate><author>yabqiu@gmail.com (Yanbin Qiu)</author><guid>https://yanbin.blog/hands-on-large-language-models-reading-notes-6/</guid><description>
&lt;h4 id="第七章高级文本生成技术与工具"&gt;第七章：高级文本生成技术与工具&lt;/h4&gt;
&lt;p&gt;在上一章中已经从 &lt;code&gt;AutoModelForCausalLM&lt;/code&gt;, &lt;code&gt;AutoTokenizer&lt;/code&gt;, &lt;code&gt;pipeline&lt;/code&gt; 过渡到了稍微高那么一层的 &lt;code&gt;llama-cpp-python&lt;/code&gt; 的使用，
这一章将继续学习 &lt;code&gt;LLM&lt;/code&gt; 的使用, 到真正能训练，微调模型还远着呢。 其中大部分的内容都在学习 &lt;code&gt;LangChain&lt;/code&gt; 的过程中有所掌握，包括记忆机制，
智能体工具调用等，所以这方面的内容没有具体展开。&lt;/p&gt;
&lt;p&gt;本章所覆盖的在不对模型作微调的情况下提升文本生成质量的方法论与技术:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;模型输入/输出：模型加载与调用, 用 llama-cpp-python 演示&lt;/li&gt;
&lt;li&gt;记忆机制：增强模型的上下文记忆能力，查看 &lt;code&gt;LangChain&lt;/code&gt; 短期记忆相关日志 &lt;a href="https://yanbin.blog/langchain-core-component-short-term-memory/"&gt;LangChain 核心组件之短期记忆&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;智能体系统：整合外部工具实现复杂行为，用 &lt;code&gt;LangChain&lt;/code&gt; 1.0 后的 &lt;code&gt;create_agent()&lt;/code&gt; 将会非常简单&lt;/li&gt;
&lt;li&gt;链式架构：模块化方法与组件的衔接组合, 这是 &lt;code&gt;LangChain&lt;/code&gt; 0.x 的架构，1.0 后不再使用链式架构&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;本章进到 &lt;code&gt;LangChain&lt;/code&gt; 的学习当中，本人对 &lt;code&gt;LangChain&lt;/code&gt; 已经有了一定程度的了解，由于 &lt;code&gt;LangChain&lt;/code&gt; 1.0 于 2025 年 10 月份才正式发布，
显然写作本书的时候用的还是 &lt;code&gt;LangChain 0.x&lt;/code&gt; 的版本，而 &lt;code&gt;LangChain&lt;/code&gt; 1.0 带来了巨大的变化，所以学习当中会把书中的例子改写为 &lt;code&gt;LangChain 1.x&lt;/code&gt; 的版本。&lt;/p&gt;
&lt;p&gt;下载 llama-cpp 的 GGUF 单文件模型: &lt;a href="https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-gguf/resolve/main/Phi-3-mini-4k-instruct-q4.gguf?download=true"&gt;Phi-3-mini-4k-instruct-q4.gguf&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>