-
-
Notifications
You must be signed in to change notification settings - Fork 334
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
/learn skips hidden files/dirs by default, unless "-a" is specified #427
Conversation
for more information, see https://pre-commit.ci
Co-authored-by: Piyush Jain <[email protected]>
Co-authored-by: Piyush Jain <[email protected]>
3ea112a
to
8a1f8c9
Compare
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JasonWeill
Thanks for adding -a option. Great job on fixing this. 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Tested locally with some files / information being hidden, some not. Works as expected, learns hidden files / information only when -a
is passed.
@meeseeksdev please backport to 1.x |
…, unless "-a" is specified
…-a" is specified (#451) Co-authored-by: Jason Weill <[email protected]>
…upyterlab#427) * Omits hidden files/dirs by default, unless "-a" is specified * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update packages/jupyter-ai/jupyter_ai/document_loaders/directory.py Co-authored-by: Piyush Jain <[email protected]> * Update packages/jupyter-ai/jupyter_ai/document_loaders/directory.py Co-authored-by: Piyush Jain <[email protected]> * Renames long arg from "all" to "all-files" * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Renames `all` arg in `split` * Updates subdirectory and filename exclusion logic * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Piyush Jain <[email protected]>
…upyterlab#427) * Omits hidden files/dirs by default, unless "-a" is specified * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update packages/jupyter-ai/jupyter_ai/document_loaders/directory.py Co-authored-by: Piyush Jain <[email protected]> * Update packages/jupyter-ai/jupyter_ai/document_loaders/directory.py Co-authored-by: Piyush Jain <[email protected]> * Renames long arg from "all" to "all-files" * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Renames `all` arg in `split` * Updates subdirectory and filename exclusion logic * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Piyush Jain <[email protected]>
Fixes #424.
Omits hidden files and directories by default when calling
/learn
, unless-a
or--all-files
is specified, in which all supported files under the given directory are parsed.Created a directory
learnme
with a file.secret.txt
, reading "The capital of Slobonia is Asterphase".With
/learn -a learnme
, the information is learned.