we needed to append the system path before the import of the helper_functions

This commit is contained in:
Justin Grammens
2024-10-22 17:32:54 -05:00
parent 0c414d67fd
commit 7cabea69ec

View File

@@ -3,12 +3,13 @@ import sys
import argparse
import time
from dotenv import load_dotenv
from helper_functions import *
from evaluation.evalute_rag import *
# Add the parent directory to the path since we work with notebooks
sys.path.append(os.path.abspath(os.path.join(os.getcwd(), '..')))
from helper_functions import *
from evaluation.evalute_rag import *
# Load environment variables from a .env file (e.g., OpenAI API key)
load_dotenv()
os.environ["OPENAI_API_KEY"] = os.getenv('OPENAI_API_KEY')