Spaces:
Sleeping
Sleeping
File size: 1,960 Bytes
0a5c991 |
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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# Quick Start Guide π
## Step 1: Get API Keys
### 1.1 Get Pinecone API Key
1. Go to https://www.pinecone.io/
2. Sign up for a free account
3. Create a new project
4. Copy your API key from the dashboard
### 1.2 Get Google API Key
1. Go to https://makersuite.google.com/app/apikey
2. Sign in with your Google account
3. Create a new API key
4. Copy the API key
## Step 2: Set Up Environment
1. Copy `.env.example` to `.env`:
```bash
# On Windows PowerShell:
Copy-Item .env.example .env
# On Linux/Mac:
cp .env.example .env
```
2. Edit `.env` and add your API keys:
```env
PINECONE_API_KEY=your_actual_key_here
PINECONE_ENVIRONMENT=us-east1
GOOGLE_API_KEY=your_actual_key_here
```
## Step 3: Install Dependencies
```bash
pip install -r requirements.txt
```
## Step 4: Initialize Database
Run the setup script to load medical data into Pinecone:
```bash
python setup_database.py
```
**Note:** This may take a few minutes to download and process the data.
## Step 5: Run the Application
```bash
streamlit run app.py
```
## Step 6: Start Chatting!
1. Open your browser to the URL shown (usually http://localhost:8501)
2. Type a medical question in the chat box
3. Get answers with citations and confidence scores!
## Example Questions to Try
- "What are the symptoms of diabetes?"
- "How is high blood pressure treated?"
- "What causes chest pain?"
- "Explain heart disease risk factors"
## Troubleshooting
### Error: "No module named 'x'"
Run: `pip install -r requirements.txt`
### Error: "API Key not found"
Check your `.env` file exists and has correct keys
### Error: "Index not found"
Run: `python setup_database.py`
### Slow responses
- First query might be slower as models load
- Ensure you have good internet connection
## Next Steps
- Experiment with different medical questions
- Check out the citations and confidence scores
- Read the README.md for more details
- Customize `config.py` for your needs
Happy chatting! π
|