Giter Site home page Giter Site logo

iamrk04 / llm-solutions-playbook Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 8.93 MB

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.

License: MIT License

Jupyter Notebook 99.17% Python 0.83%
agents chains chatbot evaluation langchain llm parsers prompt-engineering prompts memory

llm-solutions-playbook's Introduction

LLM-Solutions-Playbook

Python code style: black license: MIT

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.

Requirements

Python 3.11 Dependencies (listed in requirements.txt)

Installation

Clone this repository to your local machine. Install the required dependencies by running pip install -r requirements.txt.

Usage

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.

Get OpenAI API Key

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.

Use OpenAI API Key

Follow the instructions below to use your OpenAI API Key securely within code:

  1. Create a file named .env in the root directory of this repository.
  2. 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 is abc123, then the contents of the .env file should be OPENAI_API_KEY="abc123".
  3. 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")

Get Activeloop 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.

Contributing

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.

License

This project is licensed under the MIT License.

Disclaimer

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.

Additional Resources

llm-solutions-playbook's People

Contributors

iamrk04 avatar

Stargazers

 avatar  avatar  avatar

Watchers

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