Giter Club home page Giter Club logo

maven-pe-for-llms-9's Introduction

Prompt Engineering for LLMs - Notebooks and Exercises

Welcome to the notebooks and exercises for the Prompt Engineering for LLMs course.

1. Sign up for an OpenAI Key

To run the notebooks in this repo, you are required to sign up for an OpenAI paid account.

Sign up for a paid account here: https://platform.openai.com/. Once done, you can generate an API key.

2. Check out the repo

git clone https://github.com/dair-ai/maven-pe-for-llms-9.git
cd maven-pe-for-llms-9

If you already have the repo, go into it and make sure you have the latest.

cd maven-pe-for-llms-9
git pull origin master

If you have downloaded the zipped file instead, unzip it and go into the directory.

cd maven-pe-for-llms-9

3. Setup the environment

Conda

If you don't have conda, you can install it here.

Once installed, run the following command to create a new environment called pe-for-llms.

conda create -n pe-for-llms python=3.9

Next, activate the conda environment.

conda activate pe-for-llms

Python environment

If you don't want to use conda, you can create a virtual environment using Python's venv module.

python3 -m venv .venv

Next, activate your environment (the command below is for Linux)

source .venv/bin/activate

4. Install the packages

Next, install the dependencies inside the requirements.txt file.

pip install -r requirements.txt

5. Run the Preparation Exercise

Run the prepare exercise notebook (found inside the exercises folder). Before attempting the preparation exercise, add a .env file to your root folder and add your OPENAI_API_KEY.

That's it! You're all set to start working on the notebooks and exercises.

maven-pe-for-llms-9's People

Contributors

omarsar avatar

Stargazers

Corey Alejandro avatar  avatar Erko Bridee avatar  avatar id-2 avatar Alex Lane 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.