properly loading .env file with dotenv
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import os
|
||||
from typing import List, Optional
|
||||
from dotenv import load_dotenv
|
||||
from langchain_core.retrievers import BaseRetriever
|
||||
from langchain_core.callbacks import CallbackManagerForRetrieverRun
|
||||
from langchain_core.documents import Document
|
||||
@@ -9,6 +10,9 @@ from loguru import logger
|
||||
|
||||
from vector_storage import initialize_vector_store
|
||||
|
||||
# Load environment variables
|
||||
load_dotenv()
|
||||
|
||||
|
||||
class VectorStoreRetriever(BaseRetriever):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user