File size: 482 Bytes
484b456
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from pathlib import Path

folders_and_files = [
    "Research/experiments.ipynb",
    "Web/website_store.txt",
    "StreamlitApp.py",
    "requirements.txt",
    "README.md",
    "LICENSE",
    "vectore_store.py"
]

base_dir = Path("RAG_APPLICATIONS_FROM_ANY_WEBSITE")

for file_path_str in folders_and_files:
    file_path = base_dir / file_path_str
    file_path.parent.mkdir(parents=True, exist_ok=True)
    file_path.touch(exist_ok=True)
    print(f"Created file: {file_path}")