{"id":28167393,"url":"https://github.com/deepbiolab/healthbot","last_synced_at":"2025-06-15T10:02:51.568Z","repository":{"id":292146104,"uuid":"979929344","full_name":"deepbiolab/healthbot","owner":"deepbiolab","description":"AI HealthBot Agent to provide personalized, on-demand patient education.","archived":false,"fork":false,"pushed_at":"2025-05-08T10:34:45.000Z","size":425,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T11:39:20.921Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/deepbiolab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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-08T09:42:22.000Z","updated_at":"2025-05-08T10:34:48.000Z","dependencies_parsed_at":"2025-05-08T11:49:35.436Z","dependency_job_id":null,"html_url":"https://github.com/deepbiolab/healthbot","commit_stats":null,"previous_names":["deepbiolab/healthbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepbiolab%2Fhealthbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepbiolab%2Fhealthbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepbiolab%2Fhealthbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepbiolab%2Fhealthbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepbiolab","download_url":"https://codeload.github.com/deepbiolab/healthbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254355394,"owners_count":22057356,"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":[],"created_at":"2025-05-15T14:12:36.776Z","updated_at":"2025-06-15T10:02:51.558Z","avatar_url":"https://github.com/deepbiolab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HealthBot: AI-Powered Patient Education System\n\nHealthBot is an Agentic-based healthcare assistant designed to provide reliable health information, explain medical concepts in simple language, and test users' understanding through interactive quizzes.\n\n## Project Overview\n\nHealthBot leverages the power of LangGraph, LangChain, and OpenAI's language models to create an interactive educational experience. The system:\n\n![](./assets/arch.svg)\n\n1. Asks users what health topic they'd like to learn about\n2. Searches for reliable information from trusted medical sources\n3. Summarizes the information in patient-friendly language\n4. Tests comprehension with targeted quiz questions\n5. Provides personalized feedback with citations from the summary\n\n## Features\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"./assets/user-query.png\" alt=\"User Query\" width=\"100%\"/\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"./assets/bot-summary.png\" alt=\"Bot Summary\" width=\"100%\"/\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"./assets/quiz.png\" alt=\"Quiz\" width=\"100%\"/\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"./assets/ai-grade.png\" alt=\"AI Grade\" width=\"100%\"/\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n- **Reliable Information**: Searches only reputable medical websites (Mayo Clinic, NIH, WHO, CDC, etc.)\n- **Patient-Friendly Language**: Converts complex medical information into easy-to-understand summaries\n- **Interactive Learning**: Tests comprehension with customized quiz questions\n- **Personalized Feedback**: Provides detailed feedback with citations from the summary\n\n## Project Structure\n\n```\nhealthbot\n├── src/                        # Source code directory\n│   ├── __init__.py             # Makes src a Python package\n│   ├── state.py                # Defines HealthBot state class\n│   ├── tools.py                # Defines Tavily search tool\n│   ├── models.py               # Initializes language models\n│   ├── user_interface.py       # User interaction functions\n│   ├── utils.py                # Utility functions\n│   ├── nodes.py                # Workflow node definitions\n│   └── workflow.py             # Workflow graph construction\n├── main.py                     # Command-line interface\n├── app.py                      # Streamlit web interface\n└── README.md                   # Project documentation\n```\n\n## Installation\n\nTo run HealthBot, you'll need Python 3.11:\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/deepbiolab/healthbot.git\n   cd healthbot\n   ```\n\n2. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. Create a `.env` file in the project root with your API keys:\n   ```\n   OPENAI_API_KEY=your_openai_api_key\n   TAVILY_API_KEY=your_tavily_api_key\n   ```\n\n## Usage\n\n### Command Line Interface\n\nRun HealthBot from the command line:\n\n```bash\npython main.py\n```\n\nThis will start an interactive session where you can:\n- Enter a health topic you'd like to learn about\n- Read a patient-friendly summary\n- Take a quiz to test your understanding\n- Receive personalized feedback\n- Choose to learn about another topic or exit\n\n### Web Interface\n\nRun HealthBot as a web application:\n\n```bash\nstreamlit run app.py\n```\n\nThis will launch a Streamlit web interface that provides the same functionality in a more user-friendly format.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepbiolab%2Fhealthbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepbiolab%2Fhealthbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepbiolab%2Fhealthbot/lists"}