File size: 1,319 Bytes
4b63357
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""
Configuration file for the Inclusive World Curriculum Assistant
"""

# Model Configuration
MODEL_CONFIG = {
    "model_name": "microsoft/DialoGPT-medium",
    "embedding_model": "sentence-transformers/all-MiniLM-L6-v2",
    "max_new_tokens": 256,
    "temperature": 0.7,
    "top_p": 0.95,
    "repetition_penalty": 1.15,
    "torch_dtype": "float16",
    "device_map": "auto",
    "trust_remote_code": True
}

# Vector Database Configuration
VECTOR_DB_CONFIG = {
    "chunk_size": 1000,
    "chunk_overlap": 200,
    "persist_directory": "./chroma_db",
    "search_kwargs": {"k": 3}
}

# File Processing Configuration
FILE_CONFIG = {
    "slides_directory": "Slides",
    "supported_formats": [".pdf"],
    "max_preview_length": 500
}

# UI Configuration
UI_CONFIG = {
    "page_title": "Inclusive World Curriculum Assistant",
    "page_icon": "🎓",
    "layout": "wide",
    "initial_sidebar_state": "expanded"
}

# Curriculum Topics (for quick access)
CURRICULUM_TOPICS = [
    "Variables and Data Types",
    "Control Structures (if/else)",
    "Loops (for, while)",
    "Functions and Methods",
    "Arrays and Lists",
    "Object-Oriented Programming",
    "Error Handling",
    "File Operations",
    "Web Development Basics",
    "Database Fundamentals",
    "API Development",
    "Testing Strategies"
]