Enable Querying Recent Propositions#17
Merged
oshaikh13 merged 4 commits intoGeneralUserModels:mainfrom Oct 20, 2025
Merged
Conversation
Contributor
Author
|
Contributor
|
as always, great stuff michael ryan |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature to list the most recent propositions from the database, along with supporting changes to the CLI and backend. The main changes include adding a
--recentor-rCLI flag, implementing the backend logic to fetch recent propositions, and updating the application flow to support this new mode.CLI and User Experience Improvements:
--recent(-r) flag to the CLI ingum/cli.pyto allow users to list the most recent propositions instead of running a BM25 search. The help message and argument parsing were updated accordingly.--recentmode, including user guidance and output formatting for recent propositions.Backend and Data Access Enhancements:
get_recent_propositionsasync function ingum/db_utils.pyto fetch the most recent propositions from the database, with options for limiting results and filtering by time range.recentmethod to thegumclass ingum/gum.pyto expose the recent propositions functionality to the application layer.get_recent_propositionsfunction ingum/gum.pyto enable its use in therecentmethod.