Merge pull request #61 from justingrammens/fix_simple_rag_py_import_helper_functions

we needed to append the system path before the import of the helper_f…
This commit is contained in:
NirDiamant
2024-10-24 22:41:22 +03:00
committed by GitHub

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')