Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chain LLM Queries to Identify Required HealthKit Data #10

Open
1 task done
PSchmiedmayer opened this issue Apr 19, 2023 · 1 comment
Open
1 task done

Chain LLM Queries to Identify Required HealthKit Data #10

PSchmiedmayer opened this issue Apr 19, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@PSchmiedmayer
Copy link
Member

PSchmiedmayer commented Apr 19, 2023

Problem

We currently package all the available HealthKit data to the LLM query for a user's request.

Solution

  1. Query the GPT API to ask what health data would be needed to answer the question (a fixed set of types that the user gave permissions to and the needed date range)
  2. Query the HealthKit API (with the selected type and date range)
  3. Pass the requested data including the question to the GPT API

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines
@PSchmiedmayer PSchmiedmayer added the enhancement New feature or request label Apr 19, 2023
@PSchmiedmayer
Copy link
Member Author

We should explore the functionality to query data added to the conversation in the context of StanfordSpezi/SpeziLLM#10 to include the function calling API of OpenAI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant