File size: 545 Bytes
5322617
 
183168e
 
 
5322617
183168e
 
5322617
 
183168e
 
 
 
 
 
 
5322617
 
183168e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import os

# Base directory
BASE_DIR = os.path.dirname(os.path.abspath(__file__))

# Database configuration
DB_NAME = "vaccine_coverage_study.db"
DB_PATH = os.path.join(BASE_DIR, DB_NAME)

# RAG Pipeline configuration
DATA_DIR = os.path.join(BASE_DIR, "data")
METADATA_FILE = os.path.join(DATA_DIR, "metadata_map.json")
PDF_DIR = os.path.join(DATA_DIR, "pdfs")

# Create directories if they don't exist
os.makedirs(DATA_DIR, exist_ok=True)
os.makedirs(PDF_DIR, exist_ok=True)

# OpenAI configuration
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")