2023-06-07 19:24:38 +02:00
2023-06-05 04:37:59 -07:00
2023-06-07 19:24:38 +02:00
2023-05-21 21:49:33 -07:00
2023-05-20 22:54:26 +02:00
2023-05-26 17:46:47 -07:00
2023-05-22 12:25:14 +02:00
2023-06-01 18:47:47 +03:00
2023-04-28 10:09:51 +02:00
2023-05-21 21:38:23 -07:00
2023-04-27 21:26:34 +02:00
2023-05-22 15:37:07 +02:00
2023-05-29 20:39:07 -07:00
2023-06-05 04:44:35 -07:00
2023-05-13 18:10:19 -07:00
2023-04-24 18:39:41 -07:00

🦜🔗 LangChain Go

go.dev reference scorecard

Building applications with LLMs through composability

🤔 What is this?

This is the Go language implementation of LangChain.

📖 Documentation

🎉 Examples

See ./examples for example usage.

import (
	"github.com/tmc/langchaingo/llms/openai"
)

func main() {
	llm, err := openai.New()
	if err != nil {
		log.Fatal(err)
	}
	completion, err := llm.Call("What would be a good company name for a company that makes colorful socks?")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(completion)
}
$ go run .

Socktastic!
S
Description
LangChain for Go, the easiest way to write LLM-based programs in Go
Readme MIT 20 MiB
Latest
2026-03-15 11:58:21 -04:00
Languages
Go 99.8%
Makefile 0.2%