-
Notifications
You must be signed in to change notification settings - Fork 6
Healthcare Support Portal feat: Oso + PGVector + Galileo #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
|
Right now noticing the document store is having an issue, fixing here + running back by the Oso team. |
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
|
@jimbobbennett mind taking a peek at this, i'm running black on it now. |
Focadecombate
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
avirath-kumar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SE cookbook review
| **Add Galileo for AI observability and monitoring:** | ||
| 1. Get your Galileo API key from [app.galileo.ai](https://app.galileo.ai) | ||
| 2. Add to `packages/rag/.env`: `GALILEO_API_KEY=your-galileo-key` | ||
| 3. Test: `uv run python test_config.py` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
likely same issue as line 173 - not loading .env file so returns invalid api key format, wrong DB URL, etc
test_config.py needs load_dotenv()
|
|
||
| **5b. Test the Web Interface:** | ||
| 1. 🌐 Open **http://localhost:3000** | ||
| 2. 🔑 Login with: `[email protected]` / `secure_password` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
username should be dr_smith not [email protected]
| # Get authentication token | ||
| TOKEN=$(curl -s -X POST "http://localhost:8001/api/v1/auth/login" \ | ||
| -H "Content-Type: application/x-www-form-urlencoded" \ | ||
| -d "[email protected]&password=secure_password" | \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same issue with username in the auth api call -> should be dr_smith not [email protected]
updated script
`TOKEN=$(curl -s -X POST "http://localhost:8001/api/v1/auth/login"
-H "Content-Type: application/x-www-form-urlencoded"
-d "username=dr_smith&password=secure_password" |
python3 -c "import sys, json; print(json.load(sys.stdin)['access_token'])")
echo "Got auth token: ${TOKEN:0:20}..."`
| **5b. Test the Web Interface:** | ||
| 1. 🌐 Open **http://localhost:3000** | ||
| 2. 🔑 Login with: `[email protected]` / `secure_password` | ||
| 3. 📄 Upload a PDF document (medical guideline, research paper, etc.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UI bugs
- "Good afternoon, Dr. dr_smith" in UI on homepage
- doc upload via ui button not working - UI error on click
- can't access documents section of the UI at all - UI error
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
Signed-off-by: Erin Mikail Staples <[email protected]>
| **Step 1: Check Dependencies** | ||
| ```bash | ||
| # Run the validation script | ||
| ./validate_environment.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lots of bash scripts here - can we offer something that also works on Windows? Most enterprise customers use Windows.
| cd sdk-examples/python/rag/healthcare-support-portal | ||
|
|
||
| # 2. Run automated setup | ||
| chmod +x setup.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we update this in the repo to remove this step?
| ``` | ||
|
|
||
| **Add Galileo for AI observability and monitoring:** | ||
| 1. Get your Galileo API key from [app.galileo.ai](https://app.galileo.ai) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Console URL? It's not in the .env file
| GALILEO_ENABLED=true | ||
| GALILEO_API_KEY=your-galileo-api-key-here | ||
| GALILEO_PROJECT_NAME=healthcare-rag | ||
| GALILEO_ENVIRONMENT=development |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is GALILEO_ENVIRONMENT?
| # Galileo 2.0 Observability Configuration | ||
| GALILEO_ENABLED=true | ||
| GALILEO_API_KEY=your-galileo-api-key-here | ||
| GALILEO_PROJECT_NAME=healthcare-rag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a log stream name, or console URL?
|
|
||
| ```bash | ||
| # Start database, backend services, and frontend | ||
| ./run_all.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I need to stop this, or keep it running?
| **5b. Test the Web Interface:** | ||
| 1. 🌐 Open **http://localhost:3000** | ||
| 2. 🔑 Login with: `dr_smith` / `secure_password` | ||
| 3. 📄 Upload a PDF document (medical guideline, research paper, etc.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How? Any sample docs I can use?
| 1. 🌐 Open **http://localhost:3000** | ||
| 2. 🔑 Login with: `dr_smith` / `secure_password` | ||
| 3. 📄 Upload a PDF document (medical guideline, research paper, etc.) | ||
| 4. 🤖 Ask a question: *"What are the key recommendations in this document?"* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How? Where do I ask a question?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is way too big - can we strip out a lot of it as it's daunting. We need to get users quickly running the example and seeing traces.
| 3. 📄 Upload a PDF document (medical guideline, research paper, etc.) | ||
| 4. 🤖 Ask a question: *"What are the key recommendations in this document?"* | ||
| 5. ✅ Verify you get an AI response with document sources! | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see anything in Galileo after asking a question. What log stream does it log to, as this is not set.
RAG + authentication example
SC-39081
Tutorial with OSO for authentication, PGVector for DB and RAG.
Before submitting
.env.examplefilePR checklist
Description
Brief description of what this example demonstrates.
Type of example
Language
Key features
Testing
Screenshots/Demo
Loom video here: https://www.loom.com/share/0da829a1c03a4538b4608a619e206c5e?sid=a31df0c3-db6c-4fea-9702-80e630a8bfc1