langchaingo  by tmc

Go SDK for building LLM-powered applications

created 2 years ago
7,265 stars

Top 7.2% on sourcepulse

GitHubView on GitHub
Project Summary

LangChain Go provides a Go implementation of the LangChain framework, enabling developers to build applications powered by large language models (LLMs). It offers composability for LLM-based programs, targeting Go developers looking to integrate LLM capabilities into their projects.

How It Works

LangChain Go follows the LangChain philosophy of composability, allowing users to chain together different components like LLMs, prompt templates, and output parsers. This modular approach facilitates the creation of complex LLM workflows by abstracting away the intricacies of interacting with various LLM providers and managing conversational memory.

Quick Start & Requirements

  • Primary install / run command: go run . (after cloning the repository and navigating to the example directory).
  • Prerequisites: Go toolchain.
  • Documentation: Documentation Site, API Reference, Examples.

Highlighted Details

  • Supports multiple LLM providers, including OpenAI and Ollama.
  • Offers components for prompt management, memory, and document loading.
  • Provides examples for common LLM application patterns.

Maintenance & Community

  • Active community with a Discord server for support and contributions.
  • Links: Discord

Licensing & Compatibility

  • License: MIT License.
  • Compatibility: Permissive license suitable for commercial and closed-source applications.

Limitations & Caveats

The project is a Go implementation of a framework that is rapidly evolving. While the core concepts are present, specific integrations or advanced features might lag behind other language implementations. Users should consult the documentation and examples for the most up-to-date capabilities.

Health Check
Last commit

2 days ago

Responsiveness

1 week

Pull Requests (30d)
13
Issues (30d)
9
Star History
860 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.