{"id":25167368,"url":"https://github.com/aimldr/draiml","last_synced_at":"2025-10-13T23:14:34.483Z","repository":{"id":274175339,"uuid":"922099338","full_name":"AIMLdr/drAIML","owner":"AIMLdr","description":"drAIML [https://draiml.pythai.net/] medical healthcare consultation augmented intelligence machine learning","archived":false,"fork":false,"pushed_at":"2025-02-26T20:03:07.000Z","size":119,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-13T23:14:33.534Z","etag":null,"topics":["agent","ai","augmented","consulting","healthcare","hippocratic","intelliscense","logic","medical","ml","oath"],"latest_commit_sha":null,"homepage":"https://aimldr.streamlit.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AIMLdr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-01-25T10:10:45.000Z","updated_at":"2025-02-26T20:03:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"e9ace41f-1432-49ac-a226-a7ed9c0294bd","html_url":"https://github.com/AIMLdr/drAIML","commit_stats":null,"previous_names":["aimldr/draiml"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AIMLdr/drAIML","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AIMLdr%2FdrAIML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AIMLdr%2FdrAIML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AIMLdr%2FdrAIML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AIMLdr%2FdrAIML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AIMLdr","download_url":"https://codeload.github.com/AIMLdr/drAIML/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AIMLdr%2FdrAIML/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017238,"owners_count":26086014,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["agent","ai","augmented","consulting","healthcare","hippocratic","intelliscense","logic","medical","ml","oath"],"created_at":"2025-02-09T06:33:47.839Z","updated_at":"2025-10-13T23:14:34.462Z","avatar_url":"https://github.com/AIMLdr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003ca href=\"https://rage.pythai.net\"\u003edrAIML\u003c/a\u003e\naugmented intelligence machine learning medical diagnosis healthcare consultation agent\n\n```text\ndraiml/\n├── draiml.py                # Main drAIML application\n├── chatter.py               # Model handlers and API integrations\n├── hippocratic.py           # Medical ethics and decision system\n├── logic.py                 # Logic and reasoning system\n├── memory.py                # Memory management system\n├── openmind.py              # API and model management\n├── socratic.py              # Socratic reasoning system\n├── oath.txt                 # Dr. AIML's oath\n├── prompt.txt               # Dr. AIML's prompt\n├── requirements.txt         # Project dependencies\n├── README.md                # Project documentation\n└── memory/                  # Memory folder structure\n    ├── logs/                # System logs\n    │   ├── api.log\n    │   ├── medical.log\n    │   ├── model.log\n    │   └── openmind.log\n    ├── medical/             # Medical interaction logs\n    ├── stm/                 # Short-term memory\n    └── ltm/                 # Long-term memory\n```\nIntroduction to drAIML - Medical AI HealthCare consultant\n\n\u003ca href=\"https://aimldr.streamlit.app/\"\u003edrAIML\u003c/a\u003e is an advanced medical AI consultation system leveraging (A)rtificial (I)ntelligence (M)achine (L)earning technology to provide accurate, ethical, and compassionate medical information to patients as participants. Designed to be an autonomous medical expert, drAIML integrates multiple AI models, ethical medical practices, and sophisticated reasoning systems to deliver personalized medical consultations while maintaining strict ethical guidelines and ensuring patient safety.\nPurpose\n\nThe primary purpose of \u003ca href=\"https://aimldr.streamlit.app/\"\u003edrAIML\u003c/a\u003e is to bridge the gap between medical expertise and accessibility. By harnessing the power of AI, drAIML aims to provide users with immediate access to medical insights, symptom analysis, and treatment recommendations, especially in situations where professional medical advice may not be readily available. \u003ca href=\"https://aimldr.streamlit.app/\"\u003edrAIML\u003c/a\u003e is engineered to act as a trustworthy medical assistant that adheres to the highest standards of medical ethics and confidentiality.\nKey Features\n\n    Multiple AI Model Integration: Supports various AI providers, including OpenAI's GPT-4, Groq models, Together.ai, and local models through Ollama. This flexibility ensures robustness and availability.\n\n    Ethical Medical Practice: Implements the Hippocratic principles through the hippocratic.py module, ensuring that all recommendations adhere to medical ethics, including \"do no harm,\" patient confidentiality, and informed consent.\n\n    Socratic Reasoning: Utilizes a Socratic reasoning system (socratic.py) to engage in logical, in-depth dialogues with users, enhancing the accuracy and reliability of its responses.\n\n    Comprehensive Memory Management: Incorporates a memory system (memory.py) for storing conversation history, medical decisions, and analytics, enabling continuous learning and personalization.\n\n    Dynamic Model Selection: Allows users to select the AI model provider and configure settings according to their preferences and needs.\n\n    Emergency Detection and Response: Equipped with the ability to recognize emergency situations and provide appropriate guidance, including advising users to seek immediate professional medical help.\n\nAreas for enhancement\n\n    Privacy and Security: Prioritizes user privacy by implementing secure data handling practices and safeguarding sensitive medical information.\n\nMission Statement\n\nTo provide accessible, reliable, and ethical medical consultations powered by advanced AI technologies, while upholding the highest standards of medical ethics and patient care.\nVision\n\ndrAIML envisions a future where high-quality medical advice is accessible to everyone, anytime and anywhere. By combining state-of-the-art artificial intelligence with rigorous ethical practices, drAIML strives to empower individuals with the knowledge they need to make informed health decisions, ultimately contributing to better health outcomes worldwide.\nCore Values\n\n    Precision: Ensuring all medical information and advice provided is accurate and evidence-based.\n\n    Compassion: Interacting with users empathetically, acknowledging the human aspect of healthcare.\n\n    Evolution: Continuously learning and adapting to new medical research and user feedback to improve service quality.\n\n    Accountability: Taking responsibility for the information provided and ensuring that it aligns with medical best practices.\n\n# How drAIML works\n\ndrAIML operates through a user-friendly interface where users can describe their symptoms or ask health-related questions. The system processes the input using the selected AI model, applies ethical reasoning and safety checks, and generates a response. This response is then validated against medical guidelines and ethical standards before being presented to the user.\n\nThe system is designed to:\n\n    Analyze user input for medical relevance and urgency.\n    Generate responses that are clear, concise, and actionable.\n    Provide disclaimers and encourage professional medical consultation when necessary.\n    Maintain a conversation history for context and continuity.\n\nEthical Considerations\n\ndrAIML is built with a strong emphasis on ethical medical practice. It incorporates the following ethical principles:\n\n    Do No Harm: Prioritizes user safety by avoiding harmful recommendations and recognizing its limitations.\n\n    Patient Confidentiality: Ensures all user data is handled securely and privately.\n\n    Informed Consent: Provides information in a way that allows users to make informed decisions about their health.\n\n    Emergency Protocols: Recognizes signs of medical emergencies and advises users to seek immediate professional help.\n\nGetting Started\n\nTo use drAIML, participants select their preferred AI provider, configure any necessary settings, and begin interacting with the system through the consultation interface. The system guides users through the process, ensuring that they have all the information needed to make the most of the service.\nContributions and Further Development\n\ndrAIML is an open-source project that welcomes contributions from the developer and medical communities. By collaborating, we aim to enhance the system's capabilities, expand its knowledge base, and improve its effectiveness in providing ethical and accurate medical consultations.\n\nDisclaimer\nWhile drAIML strives to provide accurate and helpful medical information, it is not a substitute for professional medical advice, diagnosis, or treatment. Users are encouraged to consult qualified healthcare providers for any medical concerns or conditions. drAIML is designed to augment medical advice useful for both patients and health care professionals for accurate assessments as diganosis.\n\n\n```bash\ngit clone https://github.com/AIMLdr/drAIML/\n```\n```bash\ncd drAIML\n```\n```bash\npython3 -m venv draiml\nsource draiml/bin/activate\n```\n```bash\npip install -r requirements.txt\n```\n```text\n.env\nTOGETHER_API_KEY='changemanuallyoraddfromtheui'\nGROQ_API_KEY='automaticallyaddedfromthedraimlui'\nOPENAI_API_KEY='yourapikeygetsaddedfromthedraimlui'\n```\n```bash\nstreamlit run draiml.py\n```\n\n\nNOTE: the app demo version of \u003ca href=\"https://aimldr.streamlit.app\"\u003edrAIML\u003c/a\u003e v1 is web based requiring a \u003ca href=\"https://api.together.ai/\"\u003etogether.ai\u003c/a\u003e API key\u003cbr /\u003e \u003ca href=\"https://console.groq.com/keys\"\u003egroq\u003c/a\u003e API key or an \u003ca href=\"https://platform.openai.com/docs/api-reference/introduction\"\u003eopenai\u003c/a\u003e API key\n# For private healthcare consultation with drAIML\ninstall \u003ca href=\"https://ollama.com/download\"\u003eollama\u003c/a\u003e then ```ollama list ``` ```ollama run yourmodelname``` from your \u003cbr /\u003e\ndrAIML will see your running \u003ca href=\"https://ollama.com/search\"\u003eollama model\u003c/a\u003e and then choose the running model from the ```ollama list``` of \u003ca href=\"https://ollama.com/search\"\u003emodels\u003c/a\u003e you have installed.\n\u003ca href=\"https://github.com/AIMLdr/drAIML/tree/main/docs\"\u003edrAIML docs\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimldr%2Fdraiml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faimldr%2Fdraiml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimldr%2Fdraiml/lists"}