Skip to content

aureathabet/ai-school-week-7.2-advanced-graph-techniques

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Week 7.2: Advanced Graph Techniques

Introduction

Designing and launching human-in-the-loop systems, complex agents within graphs, corrective/adaptive RAG, and ranking outputs using DyLAN.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed Python 3.6+.

Setup Instructions

Step 1: Clone the Repository

First, clone the repository to your local machine using the following command:

git clone [repository-url]
cd [repository-name]

Step 2: Create a Python Virtual Environment

Create a virtual environment using venv:

python3 -m venv venv

Step 3: Activate the Virtual Environment

Activate the virtual environment:

  • On Windows:
    venv\Scripts\activate
  • On MacOS/Linux:
    source venv/bin/activate

Step 4: Install Required Packages

Install the required packages using pip:

pip install -r requirements.txt

Step 5: Create a .env File

Create a .env file in the root directory of the project. Use the .env.sample file as a reference:

cp .env.sample .env

Step 6: Update .env File

Open the .env file and update the key values as necessary.

Step 7: Export the Variables Inside Your Environment

Run the environment setup script:

export OPENAI_API_KEY=[your-key-here]
export COHERE_API_KEY=[your-key-here]
export TAVILY_API_KEY=[your-key-here]
export LANGCHAIN_API_KEY=[your-key-here]
export LANGCHAIN_TRACING_V2=true
export LANGCHAIN_PROJECT=default

Usage

Running In-Class Examples

To run any in-class examples, execute the specific file directly from the command line. For example:

python3 in_class_examples/[file-name]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.9%
  • Python 0.1%