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

improve corpus UX and fix docs #498

Merged
merged 1 commit into from
Aug 21, 2024
Merged

improve corpus UX and fix docs #498

merged 1 commit into from
Aug 21, 2024

Conversation

pmeier
Copy link
Member

@pmeier pmeier commented Aug 21, 2024

  • Fix the doc builds so CI is green again. This does not add proper docs just stubs so we can see if other PRs to the corpus-dev branch break the documentation. This supersedes fix doc builds after recent changes #494.
  • Remove the corpus_name=None sentinel and use corpus_name="default" instead. See Support for metadata filter suggestions in the web UI #493 (comment)
  • Add the default value for corpus_name="default" when creating a chat to avoid forcing users to pass something. The default handling is thus pushed to the author of the source storage.
  • Add the default value for input=None when creating a chat. This way users with a corpus of documents can just ask away. I've added proper error handling in case we are unable to retrieve any sources.
  • Add support for passing a single document or path as input when creating a chat

@pmeier pmeier requested a review from nenb August 21, 2024 10:37
Copy link
Member Author

Choose a reason for hiding this comment

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

Changes in this file are mostly to properly support the corpus feature. Previously the corpus_name was ignored and everything was stored in the global corpus instead.

Copy link
Member Author

Choose a reason for hiding this comment

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

Just minor cleanup in this file. Instead of hardcoding the corpus name in multiple places, I added a corpus_name variable and used that in the appropriate places.

@pmeier
Copy link
Member Author

pmeier commented Aug 21, 2024

This was "reviewed" already in #493. Thus, I'm going to self-merge when CI is green.

@nenb nenb merged commit 745966b into corpus-dev Aug 21, 2024
21 checks passed
@nenb nenb deleted the corpus-dev-ux branch August 21, 2024 12:40
@pmeier pmeier mentioned this pull request Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants