langchaingo

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: MulanPSL-2.0 Imports: 0 Imported by: 0

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

Index

Constants

View Source
const (
	// ChatId
	ChatId = "ChatId"

	Input = "input"

	OutPutKey = "text"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
toolx

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL