This repository and its contents were inspired by the excellent course LangChain for LLM Application Development offered by DeepLearning.AI.
Special thanks to:
- Andrew Ng: Founder of DeepLearning.AI and Co-founder of Coursera, for his visionary leadership in AI education.
- Harrison Chase: Co-Founder and CEO of LangChain, for his expertise and contributions to advancing language model applications.
This repository is dedicated to the development of applications using LangChain for Large Language Models (LLMs). It provides various examples and tutorials to help users understand and implement LangChain in their projects.
To install the required dependencies, run the following command:
pip install -r requirements.txt
This repository contains several Jupyter notebooks that demonstrate different aspects of LangChain for LLM application development.
This notebook covers the following topics:
- Direct API calls to Gemini
- API calls through LangChain:
- Prompts
- Models
- Output parsers
This notebook covers the following topics:
- ConversationBufferMemory
- ConversationBufferWindowMemory
- ConversationTokenBufferMemory
- ConversationSummaryMemory
This notebook covers the following topics:
- LLMChain
- Sequential Chains
- SimpleSequentialChain
- SequentialChain
- Router Chain
This notebook covers the following topics:
- Q&A over Documents
- Using embeddings for document retrieval
- Building a retrieval-based QA system
This notebook covers the following topics:
- Example generation
- Manual evaluation (and debugging)
- LLM-assisted evaluation
- LangChain evaluation platform
This notebook covers the following topics:
- Using built-in LangChain tools: DuckDuckGo search and Wikipedia
- Defining your own tools
We welcome contributions to this repository. If you have any improvements or new examples to add, please follow these steps:
- Fork the repository
- Create a new branch for your feature or bugfix
- Commit your changes
- Push the branch to your fork
- Create a pull request
This project is licensed under the MIT License. See the LICENSE file for more details.