{"id":18428968,"url":"https://github.com/afondiel/langchain-for-llm-application-dev-deeplearningai","last_synced_at":"2025-04-07T17:32:19.670Z","repository":{"id":178971776,"uuid":"662639696","full_name":"afondiel/LangChain-For-LLM-Application-Dev-DeepLearningAI","owner":"afondiel","description":"Crash course on LangChain for LLM Application Developement by DeepLearningAI","archived":false,"fork":false,"pushed_at":"2024-04-13T19:16:52.000Z","size":20,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T09:00:40.996Z","etag":null,"topics":["bard","chatgpt","deeplearning-ai","google","gpt-3","gpt-4","lambda","langchain","large-language-models","llama","llm","nllb200","openai","palm","sparrow"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afondiel.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-05T15:03:36.000Z","updated_at":"2024-09-27T12:31:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"7169e55c-2a79-4cad-9f20-3aace9146a64","html_url":"https://github.com/afondiel/LangChain-For-LLM-Application-Dev-DeepLearningAI","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"96f09874ff45eebda174e14c09b440d367c1e674"},"previous_names":["afondiel/langchain-for-llm-application-dev-deeplearningai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afondiel%2FLangChain-For-LLM-Application-Dev-DeepLearningAI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afondiel%2FLangChain-For-LLM-Application-Dev-DeepLearningAI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afondiel%2FLangChain-For-LLM-Application-Dev-DeepLearningAI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afondiel%2FLangChain-For-LLM-Application-Dev-DeepLearningAI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afondiel","download_url":"https://codeload.github.com/afondiel/LangChain-For-LLM-Application-Dev-DeepLearningAI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223286332,"owners_count":17120001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bard","chatgpt","deeplearning-ai","google","gpt-3","gpt-4","lambda","langchain","large-language-models","llama","llm","nllb200","openai","palm","sparrow"],"created_at":"2024-11-06T05:15:11.049Z","updated_at":"2024-11-06T05:15:11.591Z","avatar_url":"https://github.com/afondiel.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LangChain for LLM Application Developement - DeepLearningAI\n\n\n## Overview\n\nCrash course on LangChain for LLM Application Developement by [DeepLearning.AI](https://learn.deeplearning.ai/langchain/lesson/1/introduction) and lectured by `Andrew Ng` and `Harrison Chase` [LangChain](https://python.langchain.com/docs/get_started/introduction.html) Founder.\n\n## Course Plan\n\n- [Lesson0: Introduction](#)\n- [Lesson1: Models, Prompts and Parsers](#)\n- [Lesson2: Memory](#)\n- [Lesson3: Chains](#)\n- [Lesson4: Question \u0026 Answer](#)\n- [Lesson5: Evaluation](#)\n- [Lesson6: Agents](#)\n- [Conclusion](#)\n\n\n## Setup \u0026 Dependencies\n\nSetup \u0026 import your openai key: \n\n- [OpenAI Key](https://platform.openai.com/account/api-keys)\n\n```python\nimport os\nimport openai\n\nfrom dotenv import load_dotenv, find_dotenv\n_ = load_dotenv(find_dotenv()) # read local .env file\nopenai.api_key = os.environ['OPENAI_API_KEY']\n```\n\n- OpenAI API call \n\n```python\ndef get_completion(prompt, model=\"gpt-3.5-turbo\"):\n    messages = [{\"role\": \"user\", \"content\": prompt}]\n    response = openai.ChatCompletion.create(\n        model=model,\n        messages=messages,\n        temperature=0, \n    )\n    return response.choices[0].message[\"content\"]\n```\n## Lab - Notebooks\n\n|Chapter|Exercises|\n|--|--|\n|[Lesson1: Models, Prompts and Parsers](./lab/L1-Model_prompt_parser.ipynb)|[![Open notebook in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/afondiel/LangChain-For-LLM-Application-Dev-DeepLearningAI/blob/main/lab/L1-Model_prompt_parser.ipynb)|\n|[Lesson2: Memory](./lab/L2-Memory.ipynb)|[![Open notebook in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/afondiel/LangChain-For-LLM-Application-Dev-DeepLearningAI/blob/main/lab/L2-Memory.ipynb)|\n|[Lesson3: Chains](./lab/L3-Chains.ipynb)|[![Open notebook in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/afondiel/LangChain-For-LLM-Application-Dev-DeepLearningAI/blob/main/lab/L3-Chains.ipynb)|\n|[Lesson4: Question \u0026 Answer](./lab/L4-QnA.ipynb)|[![Open notebook in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/afondiel/LangChain-For-LLM-Application-Dev-DeepLearningAI/blob/main/lab/L4-QnA.ipynb)|\n|[Lesson5: Evaluation](./lab/L5-Evaluation.ipynb)|[![Open notebook in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/afondiel/LangChain-For-LLM-Application-Dev-DeepLearningAI/blob/main/lab/L5-Evaluation.ipynb)|\n|[Lesson6: Agents](./lab/L6-Agents.ipynb)|[![Open notebook in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/afondiel/LangChain-For-LLM-Application-Dev-DeepLearningAI/blob/main/lab/L6-Agents.ipynb)|\n\n## References\n\nMain Course : \n- https://learn.deeplearning.ai/langchain/lesson/1/introduction\n\nLangChain resources : \n- https://learn.deeplearning.ai/langchain/lesson/1/introduction\n\nOthers short Free Courses available on DeepLearning.AI : \n- https://learn.deeplearning.ai/\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafondiel%2Flangchain-for-llm-application-dev-deeplearningai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafondiel%2Flangchain-for-llm-application-dev-deeplearningai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafondiel%2Flangchain-for-llm-application-dev-deeplearningai/lists"}