generated from StanfordSpezi/SpeziTemplateApplication
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# *LLM Cheief Complaint Functionality, Prompt, and Summary View * ## ♻️ Current situation & Problem Before the pull request, we had a minimal implementation of the LLM chatbot. Our summary appeared but it looked ugly, and the LLM did not ask very detailed or specific questions. ## ⚙️ Release Notes The LLM makes a summary of the chief complaint with a textbox that the patient is able to edit. The summary is now much more robust, and the LLM asks the patient more relevant questions than it did before. It's not limited anymore to just duration and severity. The textbox is now editable. ## 📚 Documentation We commented out the naviagtion stack for now and plan on incorporating that after merging. We changed the LLM function call to now be more non-parametric and dynamic. We got rid of the parameters and instructed it to give us a summary instead. With less structure, we are able to harness all of the LLM's abilities. ## ✅ Testing We have tested the LLM on a variety of medical concerns that are not included in the examples given in the system prompt, and we have gotten really great results with specific questions to the complaint. ## 📝 Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md). --------- Co-authored-by: nriedman <[email protected]>
- Loading branch information
Showing
7 changed files
with
218 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// AllergyView.swift | ||
// Intake | ||
// | ||
// Created by Nick Riedman on 2/5/24. | ||
// | ||
// This source file is part of the Intake based on the Stanford Spezi Template Application project | ||
// | ||
// SPDX-FileCopyrightText: 2023 Stanford University | ||
// | ||
// SPDX-License-Identifier: MIT | ||
// | ||
|
||
import Foundation | ||
import SwiftUI | ||
|
||
struct AllergyViewTest: View { | ||
var body: some View { | ||
VStack { | ||
Text("Success!") | ||
.padding() | ||
.multilineTextAlignment(.center) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.