Spaces:
Sleeping
Sleeping
| # 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! π | |