/oreilly_live_training_llm_apps

Notebooks for the live trainining about llm app development

Primary LanguageJupyter Notebook

O'Reilly Live Trainining - Building Text Based Applications with the ChatGPT API and Langchain

Setup

Conda

  • Install anaconda
  • Create an environment: conda env create -f environment.yml
  • Activate your environment with: conda activate oreilly_env
  • Setup your openai API key

Pip

  1. Create a Virtual Environment: Navigate to your project directory. If using Python 3's built-in venv:

    python -m venv oreilly_env

    If you're using virtualenv:

    virtualenv oreilly_env
  2. Activate the Virtual Environment:

    • On Windows:
      .\oreilly_env\Scripts\activate
    • On macOS and Linux:
      source oreilly_env/bin/activate
  3. Install Dependencies from requirements.txt:

    pip install python-dotenv
    pip install -r requirements.txt
  4. Setup your openai API key

Remember to deactivate the virtual environment once you're done by simply typing:

deactivate

Setup your .env file

  • Change the .env.example file to .env and add your OpenAI API key.