Unlock the potential of AI-driven solutions and delve into the world of Large Language Models. Explore cutting-edge concepts, real-world applications, and best practices to build powerful systems with these state-of-the-art models.
This repository showcases the transformative capabilities of Large Language Models and LangChain. Dive into a curated collection of Jupyter notebooks that demonstrate:
- the practical applications of these technologies, highlighting their time-saving potential and the power of AI-driven solutions.
- cutting-edge concepts and best practices to build powerful systems with these state-of-the-art models.
Unleash your creativity and explore the included resources to kickstart your journey and delve deeper into these groundbreaking technologies.
Python 3.11 Dependencies (listed in requirements.txt)
Clone this repository to your local machine.
Install the required dependencies by running pip install -r requirements.txt
.
The notebooks directory is organized into sub-directories, each dedicated to a specific topic. You can explore these sub-directories in any order based on your interests. Each sub-directory contains a collection of Jupyter notebooks that delve into the concepts related to its respective topic. The notebooks are sequentially ordered within each sub-directory, so it is recommended to follow the suggested order. The notebooks are designed to be self-contained, allowing you to run them independently without dependencies on other notebooks.
To use the OpenAI API, you will need to create an account and obtain an API key. You can create an account here. Once you have created an account, you can find your API key on the API Keys page.
Follow the instructions below to use your OpenAI API Key securely within code:
- Create a file named
.env
in the root directory of this repository. - Define the environment variable
OPENAI_API_KEY
in the.env
file and set it equal to your OpenAI API key. For example, if your API key isabc123
, then the contents of the.env
file should beOPENAI_API_KEY="abc123"
. - Use the following code to load your API key from the
.env
file:
import os
from dotenv import load_dotenv
import openai
load_dotenv()
openai.api_key = os.getenv("OPENAI_API_KEY")
- Signup/Login to Activeloop.
- Create API token from the home page.
- Copy the API token and paste it in the .env file like this
ACTIVELOOP_TOKEN="<token>"
. - Use the similar code as shown above to load your API token from the
.env
file.
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request. See the CONTRIBUTING.md file for more information.
This project is licensed under the MIT License.
Please note that this software is provided as-is, and the author and contributors shall not be held responsible for any consequences or damages arising from its use. Refer to the DISCLAIMER.md file for more information.