GithubHelp home page GithubHelp logo

langchain-js-full-course's Introduction

LangChain-JS-Crash-course

This repository contains a series of example scripts showcasing the usage of Langchain, a JavaScript library for creating conversational AI applications.

  • 00_basics.js: Introduces the basics of using the OpenAI API without Langchain.
  • 01_first_chain.js: Demonstrates how to create your first conversation chain in Langchain.
  • 02_simplesequentialchain.js: Provides a simple example of creating a sequential conversation chain.
  • 03_sequentialchain.js: Gives a more detailed walkthrough of creating and utilizing a sequential conversation chain in Langchain.
  • 04_parsers.js: Shows how to use parsers to process input and output in a conversation chain.
  • 05_indexes.js: Explains how to create and use indexes in Langchain for efficient retrieval of information.
  • 06_usestore.js: Guides on how to utilize the Vector Databases in Langchain for maintaining and retrieving information which was not trained into the model.
  • 07_chat.js: Showcases how to create a chat bot in Langchain, forming the basis of a conversational AI application.
  • 08_agents.js: Illustrates how to create and use agents in Langchain, which are autonomous entities that can interact within a conversation chain.

To run these examples, clone the git repository and run npm install to install die dependencies. You need to create a .env file and add your API Key for OpenAI like this: OPENAI_API_KEY=sk-...

This codes utilizes ES6 modules, to allow import statements and async/await within NodeJS.

langchain-js-full-course's People

Contributors

coding-crashkurse 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.