Giter Site home page Giter Site logo

afondiel / langchain-for-llm-application-dev-deeplearningai Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 20 KB

Crash course on LangChain for LLM Application Developement by DeepLearningAI

Jupyter Notebook 100.00%
bard chatgpt gpt-3 gpt-4 langchain large-language-models llm palm deeplearning-ai google lambda llama nllb200 openai sparrow

langchain-for-llm-application-dev-deeplearningai's Introduction

LangChain for LLM Application Developement - DeepLearningAI

Overview

Crash course on LangChain for LLM Application Developement by DeepLearning.AI and lectured by Andrew Ng and Harrison Chase LangChain Founder.

Course Plan

Setup & Dependencies

Setup & import your openai key:

import os
import openai

from dotenv import load_dotenv, find_dotenv
_ = load_dotenv(find_dotenv()) # read local .env file
openai.api_key = os.environ['OPENAI_API_KEY']
  • OpenAI API call
def get_completion(prompt, model="gpt-3.5-turbo"):
    messages = [{"role": "user", "content": prompt}]
    response = openai.ChatCompletion.create(
        model=model,
        messages=messages,
        temperature=0, 
    )
    return response.choices[0].message["content"]

Lab - Notebooks

Chapter Exercises
Lesson1: Models, Prompts and Parsers Open notebook in Colab
Lesson2: Memory Open notebook in Colab
Lesson3: Chains Open notebook in Colab
Lesson4: Question & Answer Open notebook in Colab
Lesson5: Evaluation Open notebook in Colab
Lesson6: Agents Open notebook in Colab

References

Main Course :

LangChain resources :

Others short Free Courses available on DeepLearning.AI :

langchain-for-llm-application-dev-deeplearningai's People

Contributors

afondiel avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ad2000x

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.