Coder Social home page Coder Social logo

jwandekoken / langchain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from langchain-ai/langchain

0.0 0.0 0.0 197.66 MB

๐Ÿฆœ๐Ÿ”— Build context-aware reasoning applications

Home Page: https://python.langchain.com

License: MIT License

Shell 0.16% JavaScript 0.01% Python 67.19% XSLT 0.09% TeX 0.01% Makefile 0.23% HTML 0.04% Jupyter Notebook 31.98% Dockerfile 0.02% MDX 0.27%

langchain's Introduction

๐Ÿฆœ๏ธ๐Ÿ”— LangChain

โšก Build context-aware reasoning applications โšก

Release Notes CI Downloads License: MIT Twitter Open in Dev Containers Open in GitHub Codespaces GitHub star chart Dependency Status Open Issues

Looking for the JS/TS library? Check out LangChain.js.

To help you ship LangChain apps to production faster, check out LangSmith. LangSmith is a unified developer platform for building, testing, and monitoring LLM applications. Fill out this form to speak with our sales team.

Quick Install

With pip:

pip install langchain

With conda:

conda install langchain -c conda-forge

๐Ÿค” What is LangChain?

LangChain is a framework for developing applications powered by language models. It enables applications that:

  • Are context-aware: connect a language model to sources of context (prompt instructions, few shot examples, content to ground its response in, etc.)
  • Reason: rely on a language model to reason (about how to answer based on provided context, what actions to take, etc.)

This framework consists of several parts.

  • LangChain Libraries: The Python and JavaScript libraries. Contains interfaces and integrations for a myriad of components, a basic run time for combining these components into chains and agents, and off-the-shelf implementations of chains and agents.
  • LangChain Templates: A collection of easily deployable reference architectures for a wide variety of tasks.
  • LangServe: A library for deploying LangChain chains as a REST API.
  • LangSmith: A developer platform that lets you debug, test, evaluate, and monitor chains built on any LLM framework and seamlessly integrates with LangChain.
  • LangGraph: LangGraph is a library for building stateful, multi-actor applications with LLMs, built on top of (and intended to be used with) LangChain. It extends the LangChain Expression Language with the ability to coordinate multiple chains (or actors) across multiple steps of computation in a cyclic manner.

The LangChain libraries themselves are made up of several different packages.

  • langchain-core: Base abstractions and LangChain Expression Language.
  • langchain-community: Third party integrations.
  • langchain: Chains, agents, and retrieval strategies that make up an application's cognitive architecture.

Diagram outlining the hierarchical organization of the LangChain framework, displaying the interconnected parts across multiple layers.

๐Ÿงฑ What can you build with LangChain?

โ“ Retrieval augmented generation

๐Ÿ’ฌ Analyzing structured data

๐Ÿค– Chatbots

And much more! Head to the Use cases section of the docs for more.

๐Ÿš€ How does LangChain help?

The main value props of the LangChain libraries are:

  1. Components: composable tools and integrations for working with language models. Components are modular and easy-to-use, whether you are using the rest of the LangChain framework or not
  2. Off-the-shelf chains: built-in assemblages of components for accomplishing higher-level tasks

Off-the-shelf chains make it easy to get started. Components make it easy to customize existing chains and build new ones.

Components fall into the following modules:

๐Ÿ“ƒ Model I/O:

This includes prompt management, prompt optimization, a generic interface for all LLMs, and common utilities for working with LLMs.

๐Ÿ“š Retrieval:

Data Augmented Generation involves specific types of chains that first interact with an external data source to fetch data for use in the generation step. Examples include summarization of long pieces of text and question/answering over specific data sources.

๐Ÿค– Agents:

Agents involve an LLM making decisions about which Actions to take, taking that Action, seeing an Observation, and repeating that until done. LangChain provides a standard interface for agents, a selection of agents to choose from, and examples of end-to-end agents.

๐Ÿ“– Documentation

Please see here for full documentation, which includes:

๐Ÿ’ Contributing

As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.

For detailed information on how to contribute, see here.

๐ŸŒŸ Contributors

langchain contributors

langchain's People

Contributors

169 avatar 3coins avatar agola11 avatar baskaryan avatar cbornet avatar chyroc avatar dev2049 avatar efriis avatar eltociear avatar eyurtsev avatar hemidactylus avatar hinthornw avatar hwchase17 avatar jacoblee93 avatar kacperlukawski avatar leo-gan avatar lkuligin avatar mbchang avatar mspronesti avatar mthwrobinson avatar nfcampos avatar obi1kenobi avatar ofermend avatar olgavrou avatar rlancemartin avatar sepiatone avatar shorthillsai avatar timothyasp avatar tomasonjo avatar vowelparrot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.