GithubHelp home page GithubHelp logo

rapidis / healthgpt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stanfordbdhg/healthgpt

0.0 0.0 0.0 7.9 MB

Query your Apple Health data with natural language ๐Ÿ’ฌ ๐Ÿฉบ

Ruby 3.72% Swift 96.28%

healthgpt's Introduction

HealthGPT

Example Conversation

HealthGPT is an experimental iOS app that allows users to interact with their health data stored in the Apple Health app using natural language.

Built on top of CardinalKit and the CardinalKitTemplateApplication and OpenAI. HealthGPT offers an easy-to-extend solution for those looking to make large language model powered apps within the Apple Health ecosystem.

Features

  • Chat-style interface for user-friendly health data interaction
  • Integration with the Apple Health app to ensure seamless first-party data usage
  • Extensible architecture built on CardinalKit for easy customization
  • GPT-3.5 + GPT-4 access through the OpenAI Swift module
  • Out of the box support for querying sleep, step count, active energy, exercise minutes, heart rate, and body mass.

Disclaimer

HealthGPT is provided for general informational purposes only and is not intended as a substitute for professional medical advice, diagnosis, or treatment. Large language models, such as those provided by OpenAI, are known to hallucinate and at times return false information. The use of HealthGPT is at your own risk. Always consult a qualified healthcare provider for personalized advice regarding your health and well-being. Aggregated HealthKit data for the past 14 days will be uploaded to OpenAI. Please refer to the OpenAI privacy policy for more information.

Set Up

  1. Clone this repository.
  2. Open HealthGPT.xcodeproj in Xcode. Wait for all dependencies to install and indexing to finish.
  3. Replace the OpenAI API key placeholder in Supporting Files/OpenAI-Info.plist with your own from OpenAI's dashboard. You can also paste your key into the app during onboarding.
  4. Run the app (on device or in the simulator) and play with HealthGPT on your own data ๐Ÿš€

Note: if you're using the simulator, you will need to manually add data in the Health app. Otherwise, all of your results will read zero.

You can add queries for additional HealthKit quantities and categories as follows:

  1. Edit HealthGPT/HealthGPT/HealthDataFetcher.swift to create an appropriate query for your data type.
  2. Update the prompt in HealthGPT/HealthGPT/MessageInputView.swift to pass the newly acquired data to the OpenAI API.

For any other quick changes (such as adding an onboarding flow), refer to the CardinalKitTemplateApplication repo.

Contributing

Contributions to this project are welcome. Please make sure to read the contribution guidelines and the contributor covenant code of conduct first.

Stanford Byers Center for Biodesign Logo Stanford Byers Center for Biodesign Logo

healthgpt's People

Contributors

pschmiedmayer avatar varunshenoy avatar vishnuravi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.