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

Add some improvements to llms.py #250

Open
nonprofittechy opened this issue Jan 27, 2024 · 0 comments
Open

Add some improvements to llms.py #250

nonprofittechy opened this issue Jan 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nonprofittechy
Copy link
Member

I'm noticing extract_fields sometimes get back N/A or None values instead of strings. We can tweak the prompt, but this also helps:

define_fields_from_dict({k: v for k,v in answers.items() if (v is not None) and str(v).lower() != "n/a"})

The GoalSatisficationList is a bit too lazy. We should be able to tweak how aggressive we want to be in getting good responses. It's a big difference if it's a student reflection or a legal document. Check the prompt to see if it can be improved but also we should add a parameter somewhere for custom instructions or just to tune how aggressive it will be.

@nonprofittechy nonprofittechy added the enhancement New feature or request label Jan 27, 2024
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