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 filter data #67

Merged
merged 34 commits into from
Mar 11, 2024
Merged

Llm filter data #67

merged 34 commits into from
Mar 11, 2024

Conversation

apgupta3303
Copy link
Contributor

@apgupta3303 apgupta3303 commented Mar 11, 2024

LLM Filter Data*

♻️ Current situation & Problem

Link any open issues or pull requests (PRs) related to this PR. Please ensure that all non-trivial PRs are first tracked and discussed in an existing GitHub issue or discussion.

⚙️ Release Notes

*This PR creates a class that filters the data by removing things within "()". It uses and LLM and starts to cut down on filtering by content, but the system prompts need to be more tailored towards filtering the data better. It applies this class to conditions and allergies

📚 Documentation

Please ensure that you properly document any additions in conformance to Spezi Documentation Guide.
You can use this section to describe your solution, but we encourage contributors to document your reasoning and changes using in-line documentation.

✅ Testing

Please ensure that the PR meets the testing requirements set by CodeCov and that new functionality is appropriately tested.
This section describes important information about the tests and why some elements might not be testable.

📝 Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

Copy link

codecov bot commented Mar 11, 2024

Codecov Report

Attention: Patch coverage is 16.95906% with 284 lines in your changes are missing coverage. Please review.

Project coverage is 10.15%. Comparing base (081ea98) to head (583795d).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #67      +/-   ##
==========================================
- Coverage   10.85%   10.15%   -0.70%     
==========================================
  Files          60       62       +2     
  Lines        3365     3570     +205     
==========================================
- Hits          365      362       -3     
- Misses       3000     3208     +208     
Files Coverage Δ
Intake/Allergy Records/AddAllergy.swift 0.00% <ø> (ø)
Intake/Intake.swift 100.00% <100.00%> (ø)
Intake/IntakeDelegate.swift 96.43% <ø> (-0.34%) ⬇️
Intake/Home.swift 92.08% <96.43%> (-0.07%) ⬇️
Intake/Allergy Records/ReactionPDF.swift 0.00% <0.00%> (ø)
Intake/Surgery/SurgeryView.swift 0.00% <0.00%> (ø)
Intake/Allergy Records/ReactionSectionView.swift 0.00% <0.00%> (ø)
Intake/Medical History/MedicalHistoryView.swift 0.00% <0.00%> (ø)
Intake/Allergy Records/AllergyRecords.swift 0.00% <0.00%> (ø)
Intake/LLMFiltering.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 081ea98...583795d. Read the comment docs.

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.

Looks good! Great work.

@apgupta3303 apgupta3303 merged commit 105eaf1 into main Mar 11, 2024
7 checks passed
@apgupta3303 apgupta3303 deleted the LLMFilterData branch March 11, 2024 19:41
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.

3 participants