tryAGI/LangChain

C# implementation of LangChain. We try to be as close to the original as possible in terms of abstractions, but are open to new entities.

What it solves

LangChain .NET is a C# implementation of the LangChain framework, designed to help developers build applications powered by Large Language Models (LLMs) through composability. It provides a set of abstractions that allow developers to integrate LLMs with external data sources, such as PDFs and vector databases, to create complex workflows (chains) of AI behavior.

How it works

The framework operates by providing a modeluimplementation for various LLM providers (like OpenAI) and tools for document loading, text splitting, and embedding generation. It allows developers to create "chains" using a pipe-like syntax to sequence operations—such as retrieving similar documents from a vector database and passing them as context to an LLM to answer a question (RAG).

Who it’s for

C# and .NET developers who want to build LLM-powered applications with a flexible, modular approach similar to the original LangChain, without being tied to a Microsoft-specific ecosystem like Semantic Kernel.

Highlights

  • Composability: Uses a chainable syntax to build complex AI workflows.
  • RAG Support: Built-in support for document loaders (e.g., PDF) and vector databases (e.g., SQLite).
  • ** uma a l//** Provider Agnostic: Aims to provide a maximum choice of available options and third-party libraries.
  • .NET Ecosystem: Fully implemented in C# for seamless integration into .NET projects.

Related

  • Project
  • Project
  • Project
  • Project
  • Project