GitHub Hot Board

GitHub Hot Board · Archivo del repositorio

tmc/langchaingo

LangChain for Go, the easiest way to write LLM-based programs in Go (Esta descripción procede del propio repositorio.)

Go#ai#go#golang

Datos al October 28tmc

Mejor puesto

#464

Histórico · Go por idioma

9.7K

Estrellas totales

1.2K

Forks totales

0

Días en rankings (30 d)

Licencia: MITÚltimo push: October 22Issues abiertos (PR incl.): 429Recolectado desde 2026-10-25; desconocido = aún no recopilado

Documentación del proyecto

🎉 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.

Clasificaciones actuales

Evolución de los últimos 30 días

Sin registros en los últimos 30 días.

Pon la insignia en tu README · tmc/langchaingo[![Pon la insignia en tu README](https://git.vaiox.xyz/api/badge/tmc/langchaingo.svg)](https://git.vaiox.xyz/es/repo/tmc/langchaingo)

Badge · 任何仓库都可以挂 —— 未上榜的仓库显示灰章,上完榜会自动点亮。

<a href="https://git.vaiox.xyz/es/repo/tmc/langchaingo"><img src="https://git.vaiox.xyz/api/badge/tmc/langchaingo.svg" alt="Pon la insignia en tu README" height="20"></a>

← Volver a los rankings

GitHub Hot BoardMáquina del tiempoDescubrir联系我们 · Contact