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

Llm chat/finalize #41

Merged
merged 30 commits into from
Feb 7, 2024
Merged

Llm chat/finalize #41

merged 30 commits into from
Feb 7, 2024

Conversation

ninaboord
Copy link
Contributor

@ninaboord ninaboord commented Feb 7, 2024

*LLM Chief 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 and Contributing Guidelines:

Copy link
Contributor

@nriedman nriedman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stellar work Nina way to go!

Copy link

codecov bot commented Feb 7, 2024

Codecov Report

Attention: 55 lines in your changes are missing coverage. Please review.

Comparison is base (4c61cbe) 39.34% compared to head (849f7b1) 42.01%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #41      +/-   ##
==========================================
+ Coverage   39.34%   42.01%   +2.68%     
==========================================
  Files          34       35       +1     
  Lines        1045     1107      +62     
==========================================
+ Hits          411      465      +54     
- Misses        634      642       +8     
Files Coverage Δ
Intake/IntakeDelegate.swift 96.67% <100.00%> (-0.66%) ⬇️
Intake/Home.swift 82.36% <80.00%> (+6.04%) ⬆️
Intake/ChiefComplaint/AllergyViewTest.swift 0.00% <0.00%> (ø)
Intake/ChiefComplaint/LLMInteraction.swift 82.66% <87.50%> (+46.43%) ⬆️
Intake/ChiefComplaint/SummaryView.swift 0.00% <0.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4c61cbe...849f7b1. Read the comment docs.

@nriedman nriedman merged commit 4294074 into main Feb 7, 2024
7 checks passed
@nriedman nriedman deleted the llmChat/finalize branch February 7, 2024 20:23
@nriedman nriedman restored the llmChat/finalize branch February 7, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants