Spaces:
Sleeping
Sleeping
A newer version of the Streamlit SDK is available:
1.52.1
Quick Start Guide π
Step 1: Get API Keys
1.1 Get Pinecone API Key
- Go to https://www.pinecone.io/
- Sign up for a free account
- Create a new project
- Copy your API key from the dashboard
1.2 Get Google API Key
- Go to https://makersuite.google.com/app/apikey
- Sign in with your Google account
- Create a new API key
- Copy the API key
Step 2: Set Up Environment
- Copy
.env.exampleto.env:
# On Windows PowerShell:
Copy-Item .env.example .env
# On Linux/Mac:
cp .env.example .env
- Edit
.envand add your API keys:
PINECONE_API_KEY=your_actual_key_here
PINECONE_ENVIRONMENT=us-east1
GOOGLE_API_KEY=your_actual_key_here
Step 3: Install Dependencies
pip install -r requirements.txt
Step 4: Initialize Database
Run the setup script to load medical data into Pinecone:
python setup_database.py
Note: This may take a few minutes to download and process the data.
Step 5: Run the Application
streamlit run app.py
Step 6: Start Chatting!
- Open your browser to the URL shown (usually http://localhost:8501)
- Type a medical question in the chat box
- 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.pyfor your needs
Happy chatting! π