tmc/langchaingo

LangChain for Go, the easiest way to write LLM-based programs in Go

What it solves

It provides a way for developers to build applications powered by Large Language Models (LLMs) using the Go programming language, bringing the composability patterns of the LangChain ecosystem to the Go environment.

How it works

It acts as a Go implementation of the LangChain framework, allowing developers to integrate LLMs (such as OpenAI, Gemini, or local models via Ollama) into their software by providing a structured way to generate completions from prompts.

Who it’s for

Go developers who want to build AI-powered applications without switching to Python or JavaScript.

Highlights

  • Support for multiple LLM providers including OpenAI, Gemini, and Ollama.
  • Focus on composability for building complex LLM workflows.
  • Comprehensive API reference and community-driven development.

Related

  • Project
  • Project
  • Project
  • Project