GithubHelp home page GithubHelp logo

cnq50 / langchain-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from luckzack/langchain-examples

0.0 0.0 0.0 14.19 MB

🦜通过演示 LangChain 最具有代表性的应用范例,带你快速上手 LangChain 各个使用场景。(包含完整代码和数据集)

License: MIT License

Shell 1.88% Python 18.42% Jupyter Notebook 79.70%

langchain-examples's Introduction

十几个范例带你快速上手 LangChain(包含完整代码和数据集,持续更新~)

Fiber

通过演示 LangChain 最具有代表性的应用范例,带你快速上手 LangChain 各个使用场景。这些范例大都简洁易懂,非常具有实操价值。


准备

Notebook 配置

from IPython.display import display, HTML
display(HTML("<style>.container { width:90% !important; }</style>"))
# 帮助你的ipynb看起来更舒服

必备依赖

!pip install langchain
!pip install openai
!pip install dotenv

环境变量

Rename .env.template to .env and fill environment variables as below:

# openai
OPENAI_API_KEY="xxx"

# azure
AZURE_OPENAI_BASE_URL = "xxx"
AZURE_OPENAI_API_KEY = "xxx"
AZURE_DEPLOYMENT_NAME_COMPLETE="xxx"
AZURE_DEPLOYMENT_NAME_CHAT="xxx"
AZURE_DEPLOYMENT_NAME_EMBEDDING="xxx"

# minimax
MINIMAX_GROUP_ID = "xxx"
MINIMAX_API_KEY = "xxx"

 I  ❤️
🦜⛓️

langchain-examples's People

Contributors

luckzack 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.