{"id":28412590,"url":"https://github.com/techfreak2003/bia","last_synced_at":"2025-06-24T13:31:27.258Z","repository":{"id":291816723,"uuid":"978887145","full_name":"TechFreak2003/BIA","owner":"TechFreak2003","description":"BIA (Blood Report Insights Agent) - AI Agent to analyze blood reports and provide detailed health insights.","archived":false,"fork":false,"pushed_at":"2025-05-25T16:42:57.000Z","size":139,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T11:37:46.229Z","etag":null,"topics":["ai","aiagent","grok","llama3","llama3-70b-8192","pdfplumber","python","streamlit","supabase","supabase-auth"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TechFreak2003.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-06T16:55:38.000Z","updated_at":"2025-05-25T16:43:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"1660bbf2-b3cb-4ab2-a2db-77d8c1c35742","html_url":"https://github.com/TechFreak2003/BIA","commit_stats":null,"previous_names":["techfreak2003/bia"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TechFreak2003/BIA","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechFreak2003%2FBIA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechFreak2003%2FBIA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechFreak2003%2FBIA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechFreak2003%2FBIA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechFreak2003","download_url":"https://codeload.github.com/TechFreak2003/BIA/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechFreak2003%2FBIA/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261685466,"owners_count":23194110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","aiagent","grok","llama3","llama3-70b-8192","pdfplumber","python","streamlit","supabase","supabase-auth"],"created_at":"2025-06-02T23:14:35.819Z","updated_at":"2025-06-24T13:31:27.238Z","avatar_url":"https://github.com/TechFreak2003.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 🩺 BIA (Blood Report Insights Agent)\n\nAI Agent will analyze blood reports and provide detailed health insights.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/TechFreak2003/hia/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/TechFreak2003/hia\"\u003e\u003c/a\u003e \n  \u003ca href=\"https://github.com/TechFreak2003/hia/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/TechFreak2003/hia\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/TechFreak2003/hia/blob/main/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#-features\"\u003eFeatures\u003c/a\u003e |\n  \u003ca href=\"#%EF%B8%8F-tech-stack\"\u003eTech Stack\u003c/a\u003e |\n  \u003ca href=\"#-installation\"\u003eInstallation\u003c/a\u003e |\n  \u003ca href=\"#-contributing\"\u003eContributing\u003c/a\u003e |\n  \u003ca href=\"#%EF%B8%8F-author\"\u003eAuthor\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/TechFreak2003/hia\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/TechFreak2003/hia/main/public/HIA_demo.gif\" alt=\"Usage Demo\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## 🌟 Features\n\n- Intelligent agent-based architecture with multi-model cascade system\n- In-context learning from previous analyses and knowledge base building\n- Medical report analysis with personalized health insights\n- PDF upload, validation and text extraction (up to 20MB)\n- Secure user authentication and session management\n- Session history with report analysis tracking\n- Modern, responsive UI with real-time feedback\n\n## 🛠️ Tech Stack\n\n- **Frontend Framework**: Streamlit\n- **AI Integration**: Multi-model architecture via Groq\n  - Primary: LLaMA-3.3-70B-Versatile\n  - Secondary: LLaMA-3-8B-8192\n  - Tertiary: Mixtral-8x7B-32768\n  - Fallback: Gemma-7B-IT\n- **Database**: Supabase\n- **PDF Processing**: PDFPlumber\n- **Authentication**: Supabase Auth\n\n## 🚀 Installation\n\n#### Requirements 📋\n\n- Python 3.8+\n- Streamlit 1.30.0+\n- Supabase account\n- Groq API key\n- PDFPlumber\n- Python-magic-bin (Windows) or Python-magic (Linux/Mac)\n\n#### Getting Started 📝\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/TechFreak2003/hia.git\ncd hia\n```\n\n2. Install dependencies:\n\n```bash\npip install -r requirements.txt\n```\n\n3. Required environment variables (in `.streamlit/secrets.toml`):\n\n```toml\nSUPABASE_URL = \"your-supabase-url\"\nSUPABASE_KEY = \"your-supabase-key\"\nGROQ_API_KEY = \"your-groq-api-key\"\n```\n\n4. Set up Supabase database schema:\n\nThe application requires the following tables in your Supabase database:\n\n![database schema](https://github.com/TechFreak2003/BIA/blob/main/public/db/schema.png)\n\nYou can use the SQL script provided at `public/db/script.sql` \u003ca href=\"https://github.com/TechFreak2003/BIA/blob/main/public/db/script.sql\"\u003e[link]\u003c/a\u003e to set up the required database schema.\n\n(PS: You can turn off the email confirmation on signup in Supabase settings -\u003e signup -\u003e email)\n\n5. Run the application:\n\n```bash\nstreamlit run src\\main.py\n```\n\n## 📁 Project Structure\n\n```\nhia/\n├── requirements.txt\n├── README.md\n├── src/\n│   ├── main.py                 # Application entry point\n│   ├── auth/                   # Authentication related modules\n│   │   ├── auth_service.py     # Supabase auth integration\n│   │   └── session_manager.py  # Session management\n│   ├── components/             # UI Components\n│   │   ├── analysis_form.py    # Report analysis form\n│   │   ├── auth_pages.py       # Login/Signup pages\n│   │   ├── footer.py           # Footer component\n│   │   └── sidebar.py          # Sidebar navigation\n│   ├── config/                 # Configuration files\n│   │   ├── app_config.py       # App settings\n│   │   └── prompts.py          # AI prompts\n│   ├── services/               # Service integrations\n│   │   └── ai_service.py       # AI service integration\n│   ├── agents/                 # Agent-based architecture components\n│   │   ├── agent_manager.py    # Agent management\n│   │   └── model_fallback.py   # Model fallback logic\n│   └── utils/                  # Utility functions\n│       ├── validators.py       # Input validation\n│       └── pdf_extractor.py    # PDF processing\n```\n\n## 👥 Contributing\n\nContributions are welcome! Please read our [Contributing Guidelines](CONTRIBUTING.md) for details on how to submit pull requests, the development workflow, coding standards, and more.\n\nWe appreciate all contributions, from reporting bugs and improving documentation to implementing new features.\n\n## 👨‍💻 Contributors\n\nThanks to all the amazing contributors who have helped improve this project!\n\n| Avatar | Name | GitHub | Role | Contributions |\n|--------|------|--------|------|---------------|\n| \u003cimg src=\"https://github.com/TechFreak2003.png\" width=\"50px\" height=\"50px\" alt=\"TechFreak2003\"/\u003e | Suvrodeep Das | [TechFreak2003](https://github.com/TechFreak2003) | Project Creator \u0026 Maintainer | Core implementation, Documentation |\n\n\u003c!-- To future contributors: Your profile will be added here when your PR is merged! --\u003e\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## 🙋‍♂️ Author\n\nCreated by [Suvrodeep Das](https://suvrodeepdas.dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechfreak2003%2Fbia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechfreak2003%2Fbia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechfreak2003%2Fbia/lists"}