aita_core.config — Configuration
The configuration module defines the CourseConfig dataclass and provides
global config management via set_config() / get_config().
- class aita_core.config.CourseConfig(course_id: str, course_name: str, course_short_name: str, course_description: str, system_prompt: str, week_topics: dict, topic_num_to_week: dict, hw_num_to_week: dict, lab_num_to_week: dict, study_guide_to_week: dict, example_prompts: dict, base_dir: str, course_materials_dir: str, faiss_db_dir: str, docs_dir: str, backup_dir: str, data_dir: str, admin_password: str, cookie_name: str, cookie_key: str, redirect_uri: str, admin_emails: list = <factory>, google_client_secret_file: str = '', semester_start: str = '', test_mode: bool = False, exam_scope: dict = <factory>, textbook_url: str = '', textbook_chapter_to_week: dict = <factory>, embedding_model: str = 'text-embedding-3-large', embedding_dimensions: int = 3072, llm_model: str = 'gpt-4o-mini', llm_temperature: float = 0, chunk_size: int = 2048, chunk_overlap: int = 256, retrieval_k: int = 5)[source]
Bases:
object- Parameters:
course_id (str)
course_name (str)
course_short_name (str)
course_description (str)
system_prompt (str)
week_topics (dict)
topic_num_to_week (dict)
hw_num_to_week (dict)
lab_num_to_week (dict)
study_guide_to_week (dict)
example_prompts (dict)
base_dir (str)
course_materials_dir (str)
faiss_db_dir (str)
docs_dir (str)
backup_dir (str)
data_dir (str)
admin_password (str)
cookie_name (str)
cookie_key (str)
redirect_uri (str)
admin_emails (list)
google_client_secret_file (str)
semester_start (str)
test_mode (bool)
exam_scope (dict)
textbook_url (str)
textbook_chapter_to_week (dict)
embedding_model (str)
embedding_dimensions (int)
llm_model (str)
llm_temperature (float)
chunk_size (int)
chunk_overlap (int)
retrieval_k (int)
- get_current_week()[source]
Compute current week from today’s date and semester_start.
Returns 1 if semester_start is not set or date is before semester start. Clamps to max week in week_topics.
- Return type:
- auto_detect_exam_scope()[source]
Auto-detect exam scope from week_topics by finding review/exam weeks.
- Return type:
- aita_core.config.set_config(config)[source]
- Parameters:
config (CourseConfig)