File size: 326 Bytes
997f52c
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import json
from pathlib import Path

BASE_DIR = Path(__file__).resolve().parents[1]
DOCS_PATH = BASE_DIR / "rag" / "artifacts" / "faculty_documents.json"

def load_faculty_documents():
    with open(DOCS_PATH, "r", encoding="utf-8") as f:
        docs = json.load(f)

    return {d["faculty_id"]: d for d in docs}