package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Nov 11, 2024
License: MulanPSL-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
langchainGo
此项目是基于 https://github.com/tmc/langchainGo 项目的扩展,langchainGo是Go语言版本的langchain,封装了对大模型产品调用的应用方案如:agent、memory、chains等。
通过langchainGo可以使得我们的程序能够与大模型很好的交互并实现某一些特定业务需求,比如让大模型与系统业务接轨,也可实现一个用于编写文章、项目代码的程序。
langchainGo虽然是Go语言版本的langchain,但是在实现上与langchain还是有较多功能不足,其中就有如无RouterChain、Summarybuffer等相关机制,因此在本项目中基于langchainGo完善一些这功能比编写一些其他也具有价值的工具。
如:
- callback:添加自定义日志监听和token监听
- outputparser:增加结构化字段解析支持多样化类型的处理
- toolx/finaloutput:对调用langchain的时候存在异常情况下的兜底解析处理
Documentation
¶
View Source
const (
ChatId = "ChatId"
Input = "input"
OutPutKey = "text"
)
Source Files
¶
Directories
¶
|
|
|
|
|
|
|
|
toolx
|
|
|
|
Click to show internal directories.
Click to hide internal directories.