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

Trouble with /learn command #633

Open
k-a-mendoza opened this issue Feb 8, 2024 · 0 comments
Open

Trouble with /learn command #633

k-a-mendoza opened this issue Feb 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@k-a-mendoza
Copy link

k-a-mendoza commented Feb 8, 2024

I'm using a macbook air with an apple Silicon M1 on Ventura.
python 3.9.18
jupyter 1.0.0 pyhd8ed1ab_10 conda-forge
jupyter-ai 2.9.1 pypi_0 pypi
jupyter-ai-magics 2.9.1 pypi_0 pypi

Using the jupyterlab jupyter-ai extension, I'm trying to execute the /learn command on some of my subdirectories. I assume:

  1. the current working directory is the one the jupyter-lab was launched from
  2. Usage of the command is

I tried
/learn "directory with space relative to the jupyter-lab launching directory"

/learn directory\ without\ space\ relative\ to\ the\ jupyter-lab\ launching\ directory

/learn -c 500 -o 50 directory with space..."

/learn -c 500 -o 50 directory\ without\ space..

For each of these commands, I get a general response from the extension

usage: /learn [-h] [-a] [-v] [-d] [-l] [-c CHUNK_SIZE] [-o CHUNK_OVERLAP] ...

and from the terminal:

/learn chat handler resolved in 3 ms.
usage: /learn [-h] [-a] [-v] [-d] [-l] [-c CHUNK_SIZE] [-o CHUNK_OVERLAP] ...

positional arguments:
  path

optional arguments:
  -h, --help            show this help message and exit
  -a, --all-files
  -v, --verbose
  -d, --delete
  -l, --list
  -c CHUNK_SIZE, --chunk-size CHUNK_SIZE
  -o CHUNK_OVERLAP, --chunk-overlap CHUNK_OVERLAP

there is no change adding the verbose or help flags. Also adding -h and --help produced the same behavior.

Seems kinda strange no? a simple root cause may be the working directory jupyter-ai thinks its in isn't the one i think its in. Another cause may be some behind the scenes formatting assuming a bash shell, while the default shell on my macbook is zshell.

I guess this may be related to returning more specific error codes upon command failure, but i did not see any equivalent in the issues log.

@k-a-mendoza k-a-mendoza added the bug Something isn't working label Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant