File size: 1,525 Bytes
1f725d8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import os

PROJECT_NAME = "."

folders = [
    "src/ingestion",
    "src/chunking",
    "src/embeddings",
    "src/vectorstore",
    "src/retrievers",
    "src/chains",
    "src/prompts",
    "src/llm",
    "src/evaluation",
    "src/utils",
    "src/config",

    "api",
    "data/raw",
    "data/processed",
    "vector_db",
    "experiments",
    "monitoring",
    "notebooks",
    "tests",

    "deployment",
    "configs"
]

files = {
    "src/ingestion/ingest_pipeline.py": "",
    "src/chunking/text_chunker.py": "",
    "src/embeddings/embedding_model.py": "",
    "src/vectorstore/vector_db.py": "",
    "src/retrievers/retriever.py": "",
    "src/chains/rag_chain.py": "",
    "src/prompts/prompt_templates.py": "",
    "src/llm/llm_loader.py": "",
    "src/evaluation/rag_metrics.py": "",
    "src/utils/helpers.py": "",
    "src/config/settings.py": "",

    "api/routes.py": "",
    "api/main.py": "",

    "deployment/Dockerfile": "",
    "deployment/docker-compose.yml": "",

    "configs/rag_config.yaml": "",

    ".env": "",
    "requirements.txt": "",
    "README.md": ""
}

# Create project root
os.makedirs(PROJECT_NAME, exist_ok=True)

# Create folders
for folder in folders:
    path = os.path.join(PROJECT_NAME, folder)
    os.makedirs(path, exist_ok=True)

# Create files
for file_path, content in files.items():
    full_path = os.path.join(PROJECT_NAME, file_path)
    with open(full_path, "w") as f:
        f.write(content)

print(f"✅ RAG LLMOps project '{PROJECT_NAME}' created successfully!")