Skip to content

Commit cc18301

Browse files
update mentiones of dr. smith + authentication
1 parent 7753f34 commit cc18301

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

python/rag/healthcare-support-portal/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ uv run python -m common.seed_data
246246
**🔍 Expected Output:**
247247
```bash
248248
✅ Created demo users:
249-
- Doctor: dr_smith@hospital.com / secure_password
249+
- Doctor: dr_smith / secure_password
250250
- Nurse: [email protected] / secure_password
251251
- Admin: [email protected] / secure_password
252252
✅ Sample patients created
@@ -255,7 +255,7 @@ uv run python -m common.seed_data
255255

256256
**5b. Test the Web Interface:**
257257
1. 🌐 Open **http://localhost:3000**
258-
2. 🔑 Login with: `dr_smith@hospital.com` / `secure_password`
258+
2. 🔑 Login with: `dr_smith` / `secure_password`
259259
3. 📄 Upload a PDF document (medical guideline, research paper, etc.)
260260
4. 🤖 Ask a question: *"What are the key recommendations in this document?"*
261261
5. ✅ Verify you get an AI response with document sources!
@@ -265,7 +265,7 @@ uv run python -m common.seed_data
265265
# Get authentication token
266266
TOKEN=$(curl -s -X POST "http://localhost:8001/api/v1/auth/login" \
267267
-H "Content-Type: application/x-www-form-urlencoded" \
268-
-d "username=dr_smith@hospital.com&password=secure_password" | \
268+
-d "username=dr_smith&password=secure_password" | \
269269
python3 -c "import sys, json; print(json.load(sys.stdin)['access_token'])")
270270

271271
echo "Got auth token: ${TOKEN:0:20}..."
@@ -297,7 +297,7 @@ curl -X POST "http://localhost:8003/api/v1/chat/ask" \
297297
**👥 Demo Accounts:**
298298
| Role | Email | Password | Department | Permissions |
299299
|------|--------|----------|------------|-------------|
300-
| Doctor | `dr_smith@hospital.com` | `secure_password` | Cardiology | Full access to cardiology docs |
300+
| Doctor | `dr_smith` | `secure_password` | Cardiology | Full access to cardiology docs |
301301
| Nurse | `[email protected]` | `secure_password` | Emergency | Access to procedures & protocols |
302302
| Admin | `[email protected]` | `secure_password` | Administration | System-wide access |
303303

python/rag/healthcare-support-portal/TUTORIAL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,14 +338,14 @@ uv run python -m common.seed_data
338338
```
339339

340340
**You now have three types of users:**
341-
- **Dr. Smith** (`dr_smith@hospital.com` / `secure_password`) - Cardiologist
341+
- **Dr. Smith** (`dr_smith` / `secure_password`) - Cardiologist
342342
- **Nurse Johnson** (`[email protected]` / `secure_password`) - Emergency Department
343343
- **Admin Wilson** (`[email protected]` / `secure_password`) - Hospital Administrator
344344

345345
### Your First Login
346346

347347
1. **Go to http://localhost:3000**
348-
2. **Login as Dr. Smith**: `dr_smith@hospital.com` / `secure_password`
348+
2. **Login as Dr. Smith**: `dr_smith` / `secure_password`
349349
3. **Look around the interface** - notice how it's tailored for medical professionals
350350

351351
### Understanding the AI's Brain - Document Processing
@@ -921,7 +921,7 @@ curl http://localhost:8003/health # RAG service
921921
- **OpenAI Usage:** https://platform.openai.com/usage
922922

923923
### Demo Accounts
924-
- **Doctor:** `dr_smith@hospital.com` / `secure_password`
924+
- **Doctor:** `dr_smith` / `secure_password`
925925
- **Nurse:** `[email protected]` / `secure_password`
926926
- **Admin:** `[email protected]` / `secure_password`
927927

python/rag/healthcare-support-portal/packages/rag/src/rag_service/config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import os
22

3+
from dotenv import load_dotenv
34
from pydantic_settings import BaseSettings
45

6+
load_dotenv()
7+
58

69
class Settings(BaseSettings):
710
app_name: str = "Healthcare Support Portal - RAG Service"

python/rag/healthcare-support-portal/packages/rag/test_config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
import sys
1414
from typing import Dict, Any
1515

16+
from dotenv import load_dotenv
17+
18+
load_dotenv()
19+
1620

1721
def test_environment_variables() -> Dict[str, Any]:
1822
"""Test that all required environment variables are set."""

0 commit comments

Comments
 (0)