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

Added configuration to adjust how contexts are displayed #620

Merged
merged 7 commits into from
Oct 22, 2024

Conversation

whitead
Copy link
Collaborator

@whitead whitead commented Oct 21, 2024

Added two new prompt configuration variables to better control the formatting of the context string.

Fixed non-executing prompt validation fields. Led to eliminating a broken test.

Made it so contexts are sorted by score (reverse) and alphabetical

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Oct 21, 2024
@dosubot dosubot bot added the enhancement New feature or request label Oct 21, 2024
paperqa/settings.py Outdated Show resolved Hide resolved
tests/test_paperqa.py Outdated Show resolved Hide resolved
tests/test_paperqa.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@jamesbraza jamesbraza left a comment

Choose a reason for hiding this comment

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

Nice work

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 21, 2024
@whitead whitead enabled auto-merge (squash) October 21, 2024 22:10
@whitead whitead disabled auto-merge October 22, 2024 00:01
@whitead whitead merged commit 4f760b0 into main Oct 22, 2024
3 of 5 checks passed
@whitead whitead deleted the context-display-config branch October 22, 2024 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants