Skip to content

BioLens is an AI-powered medical intelligence tool that analyzes blood reports using a multi-model AI system. It provides personalized health insights, secure authentication, and real-time feedback, all within a modern Streamlit interface. πŸš€πŸ©Ί

License

Notifications You must be signed in to change notification settings

ArchitJ6/BioLens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🩺 BioLens - AI-Powered Medical Intelligence

BioLens is an advanced AI-driven application that analyzes blood reports and provides detailed health insights. Built with a multi-model cascade system, BioLens ensures in-depth medical analysis and personalized recommendations.


🌟 Features

βœ… Intelligent AI-driven report analysis with multi-model processing
βœ… In-context learning for personalized insights
βœ… Secure user authentication & session tracking
βœ… PDF report upload, validation, and text extraction (up to 20MB)
βœ… Real-time feedback & session history tracking
βœ… Modern, responsive UI powered by Streamlit


πŸ› οΈ Tech Stack

πŸ”Ή Frontend: Streamlit πŸ–₯️
πŸ”Ή AI Models: Multi-model architecture via Groq πŸ€–

  • Primary: LLaMA-3.3-70B-Versatile
  • Secondary: LLaMA-3-8B-8192
  • Tertiary: Mixtral-8x7B-32768
  • Fallback: Gemma-7B-IT

πŸ”Ή Database: Supabase πŸ—„οΈ
πŸ”Ή PDF Processing: PDFPlumber πŸ“„
πŸ”Ή Authentication: Supabase Auth πŸ”‘


πŸš€ Installation

πŸ“‹ Requirements

  • Python 3.12.8 🐍
  • Streamlit 1.44.0
  • Supabase account πŸ”
  • Groq API key πŸ”‘
  • PDFPlumber πŸ“„

πŸ“ Setup

1️⃣ Clone the repository:

git clone https://github.com/ArchitJ6/BioLens.git
cd BioLens

2️⃣ Install dependencies:

pip install -r requirements.txt

3️⃣ Configure environment variables:
Create a .streamlit/secrets.toml file and add:

SUPABASE_URL = "your-supabase-url"
SUPABASE_KEY = "your-supabase-key"
GROQ_API_KEY = "your-groq-api-key"

4️⃣ Run the application:

streamlit run src/app.py

πŸ“‚ Folder Structure

πŸ“¦ BioLens
β”œβ”€β”€ πŸ“‚ .streamlit
β”‚   β”œβ”€β”€ config.toml
β”‚   β”œβ”€β”€ secrets.toml

β”œβ”€β”€ πŸ“‚ public
β”‚   β”œβ”€β”€ πŸ“‚ database
β”‚   β”‚   β”œβ”€β”€ README.md
β”‚
β”œβ”€β”€ πŸ“‚ src
β”‚   β”œβ”€β”€ πŸ“‚ agents
β”‚   β”‚   β”œβ”€β”€ analysisAgent.py
β”‚   β”‚   β”œβ”€β”€ modelManager.py
β”‚   β”‚   β”œβ”€β”€ services.py
β”‚   β”‚   β”œβ”€β”€ __init__.py
β”‚   β”‚
β”‚   β”œβ”€β”€ πŸ“‚ auth
β”‚   β”‚   β”œβ”€β”€ service.py
β”‚   β”‚   β”œβ”€β”€ session.py
β”‚   β”‚   β”œβ”€β”€ __init__.py
β”‚   β”‚
β”‚   β”œβ”€β”€ πŸ“‚ components
β”‚   β”‚   β”œβ”€β”€ auth.py
β”‚   β”‚   β”œβ”€β”€ footer.py
β”‚   β”‚   β”œβ”€β”€ form.py
β”‚   β”‚   β”œβ”€β”€ header.py
β”‚   β”‚   β”œβ”€β”€ sidebar.py
β”‚   β”‚   β”œβ”€β”€ __init__.py
β”‚   β”‚
β”‚   β”œβ”€β”€ πŸ“‚ config
β”‚   β”‚   β”œβ”€β”€ prompt.py
β”‚   β”‚   β”œβ”€β”€ sample.py
β”‚   β”‚   β”œβ”€β”€ __init__.py
β”‚   β”‚
β”‚   β”œβ”€β”€ πŸ“‚ utils
β”‚   β”‚   β”œβ”€β”€ pdfHelper.py
β”‚   β”‚   β”œβ”€β”€ validators.py
β”‚   β”‚   β”œβ”€β”€ __init__.py
β”‚   β”‚
β”‚   β”œβ”€β”€ app.py
β”‚
β”œβ”€β”€ .gitignore
β”œβ”€β”€ LICENSE
β”œβ”€β”€ README.md
β”œβ”€β”€ requirements.txt

πŸ“– Database Setup

For details on setting up the database, refer to the Database README.


🎯 Usage Demo

πŸš€ Upload a blood report (PDF) and receive a detailed AI-driven health analysis with personalized recommendations.


🀝 Contributing

Contributions are welcome! Feel free to fork the repo and submit a pull request. 😊


πŸ“œ License

This project is licensed under the terms of the MIT License.


⚠️ Disclaimer

This AI-generated analysis is for informational purposes only and is not a substitute for professional medical advice. Always consult a healthcare provider for accurate diagnosis and treatment.


🌟 Show Your Support

If you found this project helpful, ⭐️ star the repository and share it with others!

Happy coding! πŸ’™

About

BioLens is an AI-powered medical intelligence tool that analyzes blood reports using a multi-model AI system. It provides personalized health insights, secure authentication, and real-time feedback, all within a modern Streamlit interface. πŸš€πŸ©Ί

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages