| """ |
| Insta-AutoApp Configuration |
| All constants and configuration values for the application. |
| """ |
|
|
| import os |
| from dotenv import load_dotenv |
|
|
| load_dotenv() |
|
|
| |
| |
| |
| HF_API_TOKEN = os.getenv("HF_API_TOKEN", "") |
| HF_MODEL_ID = os.getenv("HF_MODEL_ID", "Qwen/Qwen2.5-72B-Instruct") |
| HF_API_URL = f"https://api-inference.huggingface.co/models/{HF_MODEL_ID}" |
|
|
| |
| |
| |
| TOP_K = int(os.getenv("TOP_K", "5")) |
| EMBEDDING_MODEL = "sentence-transformers/all-MiniLM-L6-v2" |
| CHUNK_SIZE = 500 |
| CHUNK_OVERLAP = 50 |
|
|
| |
| |
| |
| FAISS_INDEX_PATH = "data/index.faiss" |
| FAISS_DOCSTORE_PATH = "data/index.pkl" |
|
|
| |
| |
| |
| MAX_RETRIES = 3 |
| RETRY_DELAY = 2.5 |
| REQUEST_TIMEOUT = 30 |
|
|
| |
| |
| |
| TRIM_OPTIONS = [ |
| "Base", |
| "Big Bend", |
| "Black Diamond", |
| "Badlands", |
| "Outer Banks", |
| "Wildtrak", |
| "Raptor" |
| ] |
|
|
| ENGINE_OPTIONS = [ |
| "2.3L EcoBoost", |
| "2.7L EcoBoost" |
| ] |
|
|
| PACKAGE_OPTIONS = [ |
| "None", |
| "Sasquatch", |
| "Lux", |
| "Sasquatch + Lux" |
| ] |
|
|
| TOP_TYPE_OPTIONS = [ |
| "Soft Top", |
| "Hard Top", |
| "Modular Top" |
| ] |
|
|
| MILEAGE_MIN = 0 |
| MILEAGE_MAX = 300000 |
| MILEAGE_DEFAULT = 0 |
|
|
| |
| |
| |
| URGENCY_LEVELS = [ |
| "Safe", |
| "Monitor", |
| "Urgent", |
| "Do Not Drive" |
| ] |
|
|
| |
| SAFETY_CRITICAL_KEYWORDS = [ |
| "brake", "braking", "stopping", |
| "steering", "steer", |
| "overheat", "overheating", "temperature", |
| "drivetrain", "transmission", "4x4", "4wd" |
| ] |
|
|
| |
| |
| |
| FALLBACK_FOLLOWUP_QUESTIONS = [ |
| "What driving mode were you in when this occurred? (2H, 4H, 4L, or a GOAT mode)", |
| "Approximately how long has this symptom been occurring?" |
| ] |
|
|
| |
| |
| |
| APP_TITLE = "Insta-AutoApp" |
| APP_DESCRIPTION = "AI-Powered Symptom Triage for 2023 Ford Bronco" |
|
|
| DISCLAIMER_BANNER = ( |
| "⚠️ Insta-AutoApp provides triage guidance only, not professional mechanical diagnosis. " |
| "Always consult a Ford-certified mechanic for safety-critical issues." |
| ) |
|
|
| DISCLAIMER_RESPONSE = ( |
| "DISCLAIMER: This is triage guidance only, not a professional mechanical diagnosis. " |
| "For safety-critical issues, consult a Ford-certified mechanic." |
| ) |
|
|
| ERROR_API_UNAVAILABLE = ( |
| "The AI triage service is temporarily unavailable. " |
| "Please try again in a few minutes." |
| ) |
|
|
| ERROR_NOT_IN_MANUAL = ( |
| "This issue is not clearly covered in the OEM manual. " |
| "For your safety, we recommend contacting a Ford dealer or certified mechanic for inspection." |
| ) |
|
|