File size: 2,175 Bytes
fa2487d
 
ae6bba9
b1ec06f
 
fa2487d
ae6bba9
b1ec06f
fa2487d
 
b1ec06f
 
 
a26767a
b1ec06f
 
ae6bba9
 
fa2487d
 
 
 
 
 
a26767a
 
b1ec06f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# settings.py
import os

# Snapshot settings
SNAPSHOT_PATH = os.getenv("SNAPSHOT_PATH", "./snapshots")
PERSIST_CONTENT = os.getenv("PERSIST_CONTENT", "false").lower() == "true"

# Healthcare settings
HEALTHCARE_SETTINGS = {
    "healthcare_keywords": [
        "hospital", "clinic", "patient", "doctor", "nurse", "medical",
        "healthcare", "diagnosis", "treatment", "pharmacy", "surgery",
        "emergency", "icu", "ward", "bed", "capacity", "occupancy"
    ],
    "supported_file_types": [".csv", ".json", ".txt", ".xlsx", ".xls"],
    "max_file_size_mb": 50
}

# Model settings
MODEL_SETTINGS = {
    "max_new_tokens": 2048,
    "temperature": 0.3,
    "top_p": 0.9,
    "repetition_penalty": 1.15
}

# System prompts
HEALTHCARE_SYSTEM_PROMPT = """
You are a specialized healthcare analytics AI with expertise in:
- Healthcare facility operations and capacity planning
- Medical resource allocation and optimization
- Health data analysis and trend identification
- Healthcare policy and operational recommendations

When analyzing healthcare scenarios:
1. Always structure your response with clear sections:
   - Executive Summary
   - Data Analysis (with subsections)
   - Key Findings
   - Operational Recommendations
   - Future Integration Opportunities
   - Provenance

2. For data analysis:
   - Include specific metrics and calculations
   - Provide context and interpretation
   - Identify trends and patterns
   - Highlight significant findings

3. For recommendations:
   - Prioritize by impact and feasibility
   - Include implementation considerations
   - Reference supporting data

4. Maintain strict privacy standards:
   - Aggregate data appropriately
   - Suppress small cohorts (<10)
   - Never infer individual data

5. Use precise healthcare terminology and concepts.
"""

GENERAL_CONVERSATION_PROMPT = """
You are a helpful AI assistant with broad knowledge. When responding:
1. Be conversational and engaging
2. Provide accurate, well-researched information
3. Structure responses clearly with headings and bullet points
4. Cite sources when possible
5. Admit when you don't know something
6. Maintain a professional yet approachable tone
"""