This portal helps investors, analysts, and policymakers explore Ghana's economic landscape using official Bank of Ghana reports. Ask about sector performance, macroeconomic indicators, or regulatory changes. All answers are grounded in the latest uploaded report.
Live Link: https://ghana-investment-insights.streamlit.app/
- Upload and analyze official Bank of Ghana PDF reports
- Ask questions about Ghana's economy, sectors, or regulations
- Get answers grounded in real, up-to-date data
- Clean, business-focused web interface (Streamlit)
- Persistent vector search with ChromaDB
RAGchatbot/
├── app.py # Streamlit UI (Ghana Investment Insights Portal)
├── requirements.txt # Python dependencies
├── .env # For your GROQ_API_KEY
├── data/ # Place your Bank of Ghana PDF here
├── screenshots/ # App screenshots
├── src/
│ ├── main.py # Core pipeline: PDF ingestion, embedding, retrieval
- Clone the repository
- Install dependencies:
pip install -r requirements.txt
- Set up your environment:
- Copy
.env_exampleto.envand add your Groq API key:GROQ_API_KEY=your-groq-api-key-here
- Place your Bank of Ghana PDF in the
data/folder (e.g.,Summary-of-Economic-and-Financial-Data-May-2025.pdf).
- Copy
Start the portal:
streamlit run app.pyOpen the local URL in your browser. Type your question and click "Get Insights". The portal will answer using only the uploaded Bank of Ghana report.
This app is ready for deployment on Streamlit Cloud:
- Push to GitHub with your code (excluding
.env) - Connect to Streamlit Cloud at https://share.streamlit.io/
- Add your GROQ_API_KEY in the Streamlit Cloud secrets manager
- Deploy - the app includes
runtime.txtand sqlite compatibility fixes for Cloud
Note: The app includes automatic sqlite3 compatibility handling for Streamlit Cloud's managed environment.
- What sectors are growing fastest in Ghana?
- What is the current inflation rate?
- What are the latest trends in the banking sector?
MIT

