GitHub 火线榜

GitHub 火线榜 · 仓库档案

tmc/langchaingo

LangChain for Go, the easiest way to write LLM-based programs in Go (简介来自仓库自身文档。)

数据截至 10月26日tmc

最好成绩

#463

总榜 · Go 分面

9744

累计 Star

1159

Fork 总数

0

近 30 天在榜天数

项目状态许可证: MIT最近 push: 10月22日Open Issues(含 PR): 427

自 2026-10-25 起采集;未知 = 尚未采集到

把上榜徽章放进你的 README · tmc/langchaingo[![把上榜徽章放进你的 README](https://git.vaiox.xyz/api/badge/tmc/langchaingo.svg)](https://git.vaiox.xyz/zh/repo/tmc/langchaingo)
<a href="https://git.vaiox.xyz/zh/repo/tmc/langchaingo"><img src="https://git.vaiox.xyz/api/badge/tmc/langchaingo.svg" alt="把上榜徽章放进你的 README" height="20"></a>

项目文档

🎉 Join our new official Discord community! Connect with other LangChain Go developers, get help and contribute: Join Discord

🦜️🔗 LangChain Go

go.dev reference scorecard Open in Dev Containers

⚡ Building applications with LLMs through composability, with Go! ⚡

🤔 What is this?

This is the Go language implementation of LangChain.

📖 Documentation

🎉 Examples

See ./examples for example usage.

package main

import (
  "context"
  "fmt"
  "log"

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

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

Resources

Join the Discord server for support and discussions: Join Discord

Here are some links to blog posts and articles on using Langchain Go:

Contributors

There is a momentum for moving the development of langchaingo to a more community effort, if you are interested in being a maintainer or you are a contributor please join our Discord and let us know.

当前上榜

  • 463

    总榜 · 史上最强 · Go

    9744 星 · 1159 fork · 累计 Star

    总榜 · Go →

近 30 天势头

近 30 天没有上榜记录。

同类项目 · 共享主题

← 回到榜单