Giter VIP home page Giter VIP logo

langchain-demo's Introduction

LangChain Demo Project

This project demonstrates the use of LangChain, a Python library for building applications with language models.

Getting Started

To get started with this project, you need to install several packages. You can do this by running the following commands in your terminal:

pip install -U langchain==0.2.0
pip install -U langchain-core==0.2.0
pip install -U langchain-community==0.2.0
pip install -U langchain-openai==0.1.7
pip install -U langchain-experimental==0.0.59
pip install -U wikipedia
pip install -U yfinance
pip install -U tabulate
pip install python-dotenv

Project Structure

This project contains a Jupyter notebook demo.ipynb that demonstrates various features of LangChain, including:

  • Prompt Templates: Predefined recipes for generating prompts for language models.
  • Output Parsers: Transform the output of a language model to a more suitable format.
  • Chaining: Execute a sequence of steps or operations in a specific order to accomplish a task.
  • Memory: Refer to information introduced earlier in the conversation.
  • Tools and Toolkits: Interfaces that an agent, chain, or language model can use to interact with the world.
  • Agents: Use a language model to choose a sequence of actions to take.

Running the Demo

To run the demo, open the demo.ipynb notebook in Jupyter Notebook and run the cells in order.

langchain-demo's People

Contributors

xeroxis-xs avatar

Watchers

 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.